Documentation of 'org.jdesktop.swingx.util.CustomColumnFactory' Java class
CustomColumnFactory
org.jdesktop.swingx.util

Class CustomColumnFactory



  • public class CustomColumnFactory
    extends ColumnFactory
    A ColumnFactory is used by JXTable to create and configure all columns. It can be set per-application (before creating an JXTable) or per-table (before setting the model).

    Additional features:

    • changes the column titles to a more human readable form.
    • support list of identifiers to exclude from column creation
    • support list of identifiers to hide on column configuration
    • support pluggable maximal rowCount to measure
    • Constructor Detail

      • CustomColumnFactory

        public CustomColumnFactory()
    • Method Detail

      • addExcludeNames

        public void addExcludeNames(java.lang.Object... names)
        Parameters:
        names - the identifiers to exclude.
      • addHiddenNames

        public void addHiddenNames(java.lang.Object... names)
        Parameters:
        names - the identifiers to exclude.
      • setTitleStringValue

        public void setTitleStringValue(StringValue sv)
        Parameters:
        sv - the StringValue to use for column header "beautification".
      • configureTableColumn

        public void configureTableColumn(javax.swing.table.TableModel model,
                                         TableColumnExt columnExt)
        Configure column properties from TableModel. This implementation sets the column's headerValue property from the model's columnName.

        The factory's initial column configuration is passed through this method, so subclasses can override to customize.

        Overridden to set the column's identifier, beautify the display title.

        Overrides:
        configureTableColumn in class ColumnFactory
        Parameters:
        model - the TableModel to read configuration properties from
        columnExt - the TableColumnExt to configure.
        See Also:
        ColumnFactory.createAndConfigureTableColumn(TableModel, int)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.