Class DefaultTableColumnModel<V>

    • Constructor Detail

      • DefaultTableColumnModel

        public DefaultTableColumnModel​(java.lang.Class<V> valueClass)
        Value class constructor.
        Parameters:
        valueClass - The class indicating the type of values held in the model.
        Throws:
        java.lang.NullPointerException - if the given value class is null.
      • DefaultTableColumnModel

        public DefaultTableColumnModel​(java.lang.Class<V> valueClass,
                                       java.lang.String label)
        Value class and label constructor.
        Parameters:
        valueClass - The class indicating the type of values held in the model.
        label - The text of the label, or null if there should be no label.
      • DefaultTableColumnModel

        public DefaultTableColumnModel​(java.lang.Class<V> valueClass,
                                       java.lang.String label,
                                       java.net.URI glyphURI)
        Value class, label, and glyph URI constructor.
        Parameters:
        valueClass - The class indicating the type of values held in the model.
        label - The text of the label, or null if there should be no label.
        glyphURI - The glyph URI, which may be a resource URI, or null if there is no glyph URI.
    • Method Detail

      • getValueClass

        public java.lang.Class<V> getValueClass()
        Specified by:
        getValueClass in interface TableColumnModel<V>
        Returns:
        The class representing the type of values this model can hold.
      • isEditable

        public boolean isEditable()
        Specified by:
        isEditable in interface TableColumnModel<V>
        Returns:
        Whether the cells in this table column model are editable and will allow the the user to change their values.
      • setEditable

        public void setEditable​(boolean newEditable)
        Description copied from interface: TableColumnModel
        Sets whether the cells in this table column model are editable and will allow the the user to change their values. This is a bound property of type Boolean.
        Specified by:
        setEditable in interface TableColumnModel<V>
        Parameters:
        newEditable - true if the table column cells should allow the user to change their values.
        See Also:
        EditComponent.EDITABLE_PROPERTY
      • getStyleID

        public java.lang.String getStyleID()
        Specified by:
        getStyleID in interface TableColumnModel<V>
        Returns:
        The style identifier, or null if there is no style ID.
      • getValidator

        public Validator<V> getValidator()
        Specified by:
        getValidator in interface TableColumnModel<V>
        Returns:
        The validator for cells in this column, or null if no validator is installed.
      • isVisible

        public boolean isVisible()
        Specified by:
        isVisible in interface TableColumnModel<V>
        Returns:
        Whether the column is visible.