/** * Sets the sortable property. <code>JXTable</code> sorting api respects this * property by disabling interactive sorting on this column if false. * * @param sortable boolean indicating whether or not this column can * be sorted in the table * @see #isSortable */ public void setSortable(boolean sortable) { boolean old = isSortable(); this.sortable = sortable; firePropertyChange("sortable", old, isSortable()); }
/** * Sets the sortable property. <code>JXTable</code> sorting api respects this * property by disabling interactive sorting on this column if false. * * @param sortable boolean indicating whether or not this column can * be sorted in the table * @see #isSortable */ public void setSortable(boolean sortable) { boolean old = isSortable(); this.sortable = sortable; firePropertyChange("sortable", old, isSortable()); }
/** * Sets the sortable property. <code>JXTable</code> sorting api respects this * property by disabling interactive sorting on this column if false. * * @param sortable boolean indicating whether or not this column can * be sorted in the table * @see #isSortable */ public void setSortable(boolean sortable) { boolean old = isSortable(); this.sortable = sortable; firePropertyChange("sortable", old, isSortable()); }
/** * Sets the sortable property. <code>JXTable</code> sorting api respects this * property by disabling interactive sorting on this column if false. * * @param sortable boolean indicating whether or not this column can * be sorted in the table * @see #isSortable */ public void setSortable(boolean sortable) { boolean old = isSortable(); this.sortable = sortable; firePropertyChange("sortable", old, isSortable()); }
/** * Sets the sortable property. <code>JXTable</code> sorting api respects this * property by disabling interactive sorting on this column if false. * * @param sortable boolean indicating whether or not this column can * be sorted in the table * @see #isSortable */ public void setSortable(boolean sortable) { boolean old = isSortable(); this.sortable = sortable; firePropertyChange("sortable", old, isSortable()); }
/** * Decides if the column with identifier can be interactively sorted. * <p> * Here: true if both this table and the column sortable property is * enabled, false otherwise. * * @param identifier the column's identifier * @return boolean indicating whether or not the column is sortable in this * table. */ protected boolean isSortable(Object identifier) { boolean sortable = isSortable(); TableColumnExt tableColumnExt = getColumnExt(identifier); if (tableColumnExt != null) { sortable = sortable && tableColumnExt.isSortable(); } return sortable; }
/** * Decides if the column at columnIndex can be interactively sorted. * <p> * Here: true if both this table and the column sortable property is * enabled, false otherwise. * * @param columnIndex column in view coordinates * @return boolean indicating whether or not the column is sortable in this * table. */ protected boolean isSortable(int columnIndex) { boolean sortable = isSortable(); TableColumnExt tableColumnExt = getColumnExt(columnIndex); if (tableColumnExt != null) { sortable = sortable && tableColumnExt.isSortable(); } return sortable; }
/** * {@inheritDoc} <p> * * Overridden to propagate sort-related column properties to the SortController and * to update string representation of column.<p> * * PENDING JW: check correct update on visibility change!<p> * PENDING JW: need cleanup of string rep after column removed (if it's a real remove) */ @Override public void columnAdded(TableColumnModelEvent e) { super.columnAdded(e); // PENDING JW: check for visibility event? TableColumn column = getColumn(e.getToIndex()); updateStringValueForColumn(column, column.getCellRenderer()); if (ignoreAddColumn) return; updateSortableAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).isSortable() : true); updateComparatorAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).getComparator() : null); }
/** * {@inheritDoc} <p> * * Overridden to propagate sort-related column properties to the SortController and * to update string representation of column.<p> * * PENDING JW: check correct update on visibility change!<p> * PENDING JW: need cleanup of string rep after column removed (if it's a real remove) */ @Override public void columnAdded(TableColumnModelEvent e) { super.columnAdded(e); // PENDING JW: check for visibility event? TableColumn column = getColumn(e.getToIndex()); updateStringValueForColumn(column, column.getCellRenderer()); if (ignoreAddColumn) return; updateSortableAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).isSortable() : true); updateComparatorAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).getComparator() : null); }
/** * {@inheritDoc} <p> * * Overridden to propagate sort-related column properties to the SortController and * to update string representation of column.<p> * * PENDING JW: check correct update on visibility change!<p> * PENDING JW: need cleanup of string rep after column removed (if it's a real remove) */ @Override public void columnAdded(TableColumnModelEvent e) { super.columnAdded(e); // PENDING JW: check for visibility event? TableColumn column = getColumn(e.getToIndex()); updateStringValueForColumn(column, column.getCellRenderer()); if (ignoreAddColumn) return; updateSortableAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).isSortable() : true); updateComparatorAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).getComparator() : null); }
/** * {@inheritDoc} <p> * * Overridden to propagate sort-related column properties to the SortController and * to update string representation of column.<p> * * PENDING JW: check correct update on visibility change!<p> * PENDING JW: need cleanup of string rep after column removed (if it's a real remove) */ @Override public void columnAdded(TableColumnModelEvent e) { super.columnAdded(e); // PENDING JW: check for visibility event? TableColumn column = getColumn(e.getToIndex()); updateStringValueForColumn(column, column.getCellRenderer()); if (ignoreAddColumn) return; updateSortableAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).isSortable() : true); updateComparatorAfterColumnChanged(column, column instanceof TableColumnExt ? ((TableColumnExt) column).getComparator() : null); }
/** * Propagates sort-related properties from table/columns to the sorter if it * is of type SortController, does nothing otherwise. * */ protected void configureSorterProperties() { // need to hack: if a structureChange is the result of a setModel // the rowsorter is not yet updated if (ignoreAddColumn || (!getControlsSorterProperties())) return; getSortController().setStringValueProvider(getStringValueRegistry()); // configure from table properties getSortController().setSortable(sortable); getSortController().setSortsOnUpdates(sortsOnUpdates); getSortController().setSortOrderCycle(getSortOrderCycle()); // configure from column properties List<TableColumn> columns = getColumns(true); for (TableColumn tableColumn : columns) { int modelIndex = tableColumn.getModelIndex(); getSortController().setSortable(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).isSortable() : true); getSortController().setComparator(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).getComparator() : null); } }
/** * Propagates sort-related properties from table/columns to the sorter if it * is of type SortController, does nothing otherwise. * */ protected void configureSorterProperties() { // need to hack: if a structureChange is the result of a setModel // the rowsorter is not yet updated if (ignoreAddColumn || (!getControlsSorterProperties())) return; getSortController().setStringValueProvider(getStringValueRegistry()); // configure from table properties getSortController().setSortable(sortable); getSortController().setSortsOnUpdates(sortsOnUpdates); getSortController().setSortOrderCycle(getSortOrderCycle()); // configure from column properties List<TableColumn> columns = getColumns(true); for (TableColumn tableColumn : columns) { int modelIndex = tableColumn.getModelIndex(); getSortController().setSortable(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).isSortable() : true); getSortController().setComparator(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).getComparator() : null); } }
/** * Propagates sort-related properties from table/columns to the sorter if it * is of type SortController, does nothing otherwise. * */ protected void configureSorterProperties() { // need to hack: if a structureChange is the result of a setModel // the rowsorter is not yet updated if (ignoreAddColumn || (!getControlsSorterProperties())) return; getSortController().setStringValueProvider(getStringValueRegistry()); // configure from table properties getSortController().setSortable(sortable); getSortController().setSortsOnUpdates(sortsOnUpdates); getSortController().setSortOrderCycle(getSortOrderCycle()); // configure from column properties List<TableColumn> columns = getColumns(true); for (TableColumn tableColumn : columns) { int modelIndex = tableColumn.getModelIndex(); getSortController().setSortable(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).isSortable() : true); getSortController().setComparator(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).getComparator() : null); } }
/** * Propagates sort-related properties from table/columns to the sorter if it * is of type SortController, does nothing otherwise. * */ protected void configureSorterProperties() { // need to hack: if a structureChange is the result of a setModel // the rowsorter is not yet updated if (ignoreAddColumn || (!getControlsSorterProperties())) return; getSortController().setStringValueProvider(getStringValueRegistry()); // configure from table properties getSortController().setSortable(sortable); getSortController().setSortsOnUpdates(sortsOnUpdates); getSortController().setSortOrderCycle(getSortOrderCycle()); // configure from column properties List<TableColumn> columns = getColumns(true); for (TableColumn tableColumn : columns) { int modelIndex = tableColumn.getModelIndex(); getSortController().setSortable(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).isSortable() : true); getSortController().setComparator(modelIndex, tableColumn instanceof TableColumnExt ? ((TableColumnExt) tableColumn).getComparator() : null); } }
setSortable(original.isSortable()); setComparator(original.getComparator()); copyClientPropertiesFrom(original);
setSortable(original.isSortable()); setComparator(original.getComparator()); copyClientPropertiesFrom(original);
setSortable(original.isSortable()); setComparator(original.getComparator()); copyClientPropertiesFrom(original);
setSortable(original.isSortable()); setComparator(original.getComparator()); copyClientPropertiesFrom(original);
setSortable(original.isSortable()); setComparator(original.getComparator()); copyClientPropertiesFrom(original);