Interface TableModel

    • Method Detail

      • getColumnComponentModel

        ColumnModel getColumnComponentModel()
        Returns this table model's column model.
        Returns:
        the column model of this table model
        See Also:
        ColumnModel
      • getValueAt

        java.lang.Object getValueAt​(int colIndex,
                                    int rowIndex)
        Returns the value of the cell at position (colIndex, rowIndex).
        Parameters:
        colIndex - zero based column position index
        rowIndex - zero based row position index
        Returns:
        the cell's value
      • isCellSelected

        boolean isCellSelected​(int colIndex,
                               int rowIndex)
        Returns whether the cell at position (colIndex, rowIndex) is selected or not.
        Parameters:
        colIndex - zero based column position index
        rowIndex - zero based row position index
        Returns:
        true if a cell exists at the specified position and is selected, false otherwise
      • isCellEditable

        boolean isCellEditable​(int colIndex,
                               int rowIndex)
        Returns whether the cell at position (colIndex, rowIndex) can be edited or not.
        Parameters:
        colIndex - zero based column position index
        rowIndex - zero based row position index
        Returns:
        true if a cell exists at the specified position and is editable, false otherwise
      • isCellSelectable

        boolean isCellSelectable​(int colIndex,
                                 int rowIndex)
        Returns whether the cell at position (colIndex, rowIndex) can be selected or not.
        Parameters:
        colIndex - zero based column position index
        rowIndex - zero based row position index
        Returns:
        true if a cell exists at the specified position and is selectable, false otherwise
      • getCellEditor

        UIEditor getCellEditor​(int columnIndex,
                               int rowIndex)
        Returns the editor associated with the cell at position (colIndex, rowIndex).
        Parameters:
        columnIndex - zero based column position index
        rowIndex - zero based row position index
        Returns:
        the cell's editor
        See Also:
        UIEditor
      • getCellRenderer

        CellRenderer getCellRenderer​(int columnIndex)
      • getNewInlineItemRenderer

        CellRenderer getNewInlineItemRenderer​(int columnIndex)
        Gets the new inline item renderer.
        Parameters:
        columnIndex - the column index
        Returns:
        the new inline item render
      • addTableModelListener

        void addTableModelListener​(TableModelListener listener)
        Registers listener with this table model if it is not already registered.
        Parameters:
        listener - the TableModelListener to register
      • removeTableModelListener

        void removeTableModelListener​(TableModelListener listener)
        Unregisters listener with this table model if it is registered.
        Parameters:
        listener - the TableModelListener to unregister
      • fireEvent

        void fireEvent​(java.lang.String eventName,
                       java.lang.Object value)
        This method provides the means necessary to fire generic events which are received by any registered TableModelListener.
        Parameters:
        eventName - name of event
        value - attached value