summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-07-01 17:27:48 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-07-01 17:27:48 -0400
commit02bc52037e9ccccca672d6156d9c325c74fe28b3 (patch)
treedb022b83c90562f461f4a27412caa9936a8dfd04 /projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java
parentc75d7dbd613a47b217499f7a856c469a8bc59e2a (diff)
Update a whole bunch of things
Yeah... not a great commit message. t.b.h, I could maybe've split the commit into more parts; but that would be quite a lot off effort and would have a pretty decent chance of at least one of the commits leaving the repository in a non-working state. For the future, will want to try and commit more often so there aren't these mega-commits where it's just "a whole bunch of stuff changed"
Diffstat (limited to 'projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java')
-rw-r--r--projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java b/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java
index 26f2eda..36eb40f 100644
--- a/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java
+++ b/projects/net.wotonomy.ui.swing/src/main/java/net/wotonomy/ui/swing/TreeColumnAssociation.java
@@ -121,6 +121,7 @@ public class TreeColumnAssociation extends TableColumnAssociation {
* Binds the specified aspect of this association to the specified key on the
* specified display group.
*/
+ @Override
public void bindAspect(String anAspect, EODisplayGroup aDisplayGroup, String aKey) {
if (ChildrenAspect.equals(anAspect)) {
childrenDisplayGroup = aDisplayGroup;
@@ -137,6 +138,7 @@ public class TreeColumnAssociation extends TableColumnAssociation {
* Overridden to call createTree if necessary, call configureColumn, call
* createTreeAssociation if necessary, and then call to super.
*/
+ @Override
public void establishConnection() {
if (tree == null) {
tree = createTree();
@@ -161,7 +163,7 @@ public class TreeColumnAssociation extends TableColumnAssociation {
treeAssociation.establishConnection();
- table.setRowHeight(tree.getRowHeight());
+ table.setRowHeight(Math.max(1, tree.getRowHeight()));
super.establishConnection();
@@ -175,6 +177,7 @@ public class TreeColumnAssociation extends TableColumnAssociation {
* Breaks the connection between this association and its object. Override to
* stop listening for events from the object.
*/
+ @Override
public void breakConnection() {
super.breakConnection();
treeAssociation.breakConnection();