コード例 #1
0
  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;
  }
コード例 #2
0
 public ColumnSizing(TreeTableColumn<?, ?> tc) {
   this.minWidth = tc.getMinWidth();
   this.maxWidth = tc.getMaxWidth();
   this.prefWidth = tc.getPrefWidth();
 }