boolean isComparableColumn(int column) { Property p = allPropertyColumns[propertyColumns[column]].getProperty(); Object o = p.getValue( ATTR_COMPARABLE_COLUMN ); if ( o != null && o instanceof Boolean ) return ((Boolean)o).booleanValue(); return false; }
/** * If true, column property should be comparable - allows sorting * @param column Index to the array of all properties */ boolean isComparableColumnEx(int column) { Property p = allPropertyColumns[column].getProperty(); Object o = p.getValue(ATTR_COMPARABLE_COLUMN); if ((o != null) && o instanceof Boolean) { return ((Boolean) o).booleanValue(); } return false; }
private int columnForProperty(String propName) { for (int i = 0; i < propertyColumns.length; i++) { if (allPropertyColumns[propertyColumns[i]].getProperty().getName().equals(propName)) { return i; } } return -1; }
/** Helper method to ask for a property representant of column. */ Property propertyForColumn(int column) { if ( column == -1 ) return treeColumnProperty; else return allPropertyColumns[propertyColumns[column]].getProperty(); }
/** Helper method to ask for a property representant of column. */ Property propertyForColumn(int column) { if ( column == -1 ) return treeColumnProperty; else return allPropertyColumns[propertyColumns[column]].getProperty(); }
/** Getter for property. * @param row table row index * @param column table column index * @return property at (row, column) */ public Object getValueAt(int row, int column) { return getPropertyFor(nodeRows[row], allPropertyColumns[propertyColumns[column]].getProperty()); }
boolean isComparableColumn(int column) { Property p = allPropertyColumns[propertyColumns[column]].getProperty(); Object o = p.getValue( ATTR_COMPARABLE_COLUMN ); if ( o != null && o instanceof Boolean ) return ((Boolean)o).booleanValue(); return false; }
boolean isSortingColumn(int column) { Property p = allPropertyColumns[propertyColumns[column]].getProperty(); Object o = p.getValue( ATTR_SORTING_COLUMN ); if ( o != null && o instanceof Boolean ) return ((Boolean)o).booleanValue(); return false; }
/** Getter for column name * @param column table column index * @return display name of property which represents column */ public String getColumnName(int column) { return allPropertyColumns[propertyColumns[column]].getProperty().getDisplayName(); }
void setSortOrderDescending(boolean descending) { if ( sortColumn != -1 ) { Property p = allPropertyColumns[ sortColumn ].getProperty(); p.setValue( ATTR_DESCENDING_ORDER, descending ? Boolean.TRUE : Boolean.FALSE ); } }
void setSortOrderDescending(boolean descending) { if (sortColumn != -1) { Property p = allPropertyColumns[sortColumn].getProperty(); p.setValue(ATTR_DESCENDING_ORDER, descending ? Boolean.TRUE : Boolean.FALSE); } }
/** * If true, column is currently used for sorting * @param Index to the array of all properties (the column may not be visible) */ boolean isSortingColumnEx(int column) { Property p = allPropertyColumns[column].getProperty(); Object o = p.getValue(ATTR_SORTING_COLUMN); if ((o != null) && o instanceof Boolean) { return ((Boolean) o).booleanValue(); } return false; }
/** Getter for column name * @param column table column index * @return display name of property which represents column */ public String getColumnName(int column) { return allPropertyColumns[propertyColumns[column]].getProperty().getDisplayName(); }
/** Getter for property. * @param row table row index * @param column table column index * @return property at (row, column) */ public Object getValueAt(int row, int column) { return getPropertyFor(nodeRows[row], allPropertyColumns[propertyColumns[column]].getProperty()); }
boolean isSortOrderDescending() { if ( sortColumn == -1 ) return false; Property p = allPropertyColumns[ sortColumn ].getProperty(); Object o = p.getValue( ATTR_DESCENDING_ORDER ); if ( o != null && o instanceof Boolean ) return ((Boolean)o).booleanValue(); return false; }
boolean isSortOrderDescending() { if ( sortColumn == -1 ) return false; Property p = allPropertyColumns[ sortColumn ].getProperty(); Object o = p.getValue( ATTR_DESCENDING_ORDER ); if ( o != null && o instanceof Boolean ) return ((Boolean)o).booleanValue(); return false; }
/** Getter for property. * @param row table row index * @param column table column index * @return property at (row, column) */ public Object getValueAt(int row, int column) { return getPropertyFor(nodeRows[row], allPropertyColumns[propertyColumns[column]].getProperty()); }
boolean isSortOrderDescending() { if (sortColumn == -1) { return false; } Property p = allPropertyColumns[sortColumn].getProperty(); Object o = p.getValue(ATTR_DESCENDING_ORDER); if ((o != null) && o instanceof Boolean) { return ((Boolean) o).booleanValue(); } return false; }
/** Getter for column name * @param column table column index * @return display name of property which represents column */ String getColumnNameEx(int column) { return allPropertyColumns[column].getProperty().getDisplayName(); }
/** * Helper method to ask for a property representant of column. * @param Index to the array of all properties. */ Property propertyForColumnEx(int column) { if (column == -1) { return treeColumnProperty; } else { return allPropertyColumns[column].getProperty(); } }