public Map<IPropertyName, Object> getChangeMap() { final Map<IPropertyName, Object> result = new HashMap<>(); if (MathUtils.equals(treeTableColumn.getMinWidth(), originalSizing.getMinWidth()) == false) { result.put(minWidthName, treeTableColumn.getMinWidth()); } if (MathUtils.equals(treeTableColumn.getPrefWidth(), originalSizing.getPrefWidth()) == false) { result.put(prefWidthName, treeTableColumn.getPrefWidth()); } if (MathUtils.equals(treeTableColumn.getMaxWidth(), originalSizing.getMaxWidth()) == false) { result.put(maxWidthName, treeTableColumn.getMaxWidth()); } return result; }
public ColumnSizing(TreeTableColumn<?, ?> tc) { this.minWidth = tc.getMinWidth(); this.maxWidth = tc.getMaxWidth(); this.prefWidth = tc.getPrefWidth(); }