Type Parameters:
T - the data type
C - the column identity
R - the row type
All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
All Known Subinterfaces:
TethysUITableColumn.TethysUITableCharArrayColumn<C,R>, TethysUITableColumn.TethysUITableDateColumn<C,R>, TethysUITableColumn.TethysUITableIconColumn<T,C,R>, TethysUITableColumn.TethysUITableIntegerColumn<C,R>, TethysUITableColumn.TethysUITableListColumn<T,C,R>, TethysUITableColumn.TethysUITableLongColumn<C,R>, TethysUITableColumn.TethysUITableMoneyColumn<C,R>, TethysUITableColumn.TethysUITablePriceColumn<C,R>, TethysUITableColumn.TethysUITableRateColumn<C,R>, TethysUITableColumn.TethysUITableRatioColumn<C,R>, TethysUITableColumn.TethysUITableRawDecimalColumn<C,R>, TethysUITableColumn.TethysUITableScrollColumn<T,C,R>, TethysUITableColumn.TethysUITableShortColumn<C,R>, TethysUITableColumn.TethysUITableStringColumn<C,R>, TethysUITableColumn.TethysUITableUnitsColumn<C,R>
All Known Implementing Classes:
TethysUICoreTableColumn

public interface TethysUITableColumn<T,C,R> extends OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>
Column Definition.
  • Method Details

    • getTable

      TethysUITableManager<C,R> getTable()
      Obtain the table manager.
      Returns:
      the table manager
    • getId

      C getId()
      Obtain the id of the column.
      Returns:
      the column id
    • getCellType

      TethysUIFieldType getCellType()
      Obtain the type of the column.
      Returns:
      the column type
    • getName

      String getName()
      Obtain the name of the column.
      Returns:
      the column name
    • setName

      TethysUITableColumn<T,C,R> setName(String pName)
      Set the name of the column.
      Parameters:
      pName - the column name
      Returns:
      the column
    • setColumnWidth

      TethysUITableColumn<T,C,R> setColumnWidth(int pWidth)
      Set the column width.
      Parameters:
      pWidth - the width
      Returns:
      the column
    • isVisible

      boolean isVisible()
      Is the column visible?
      Returns:
      true/false
    • setVisible

      TethysUITableColumn<T,C,R> setVisible(boolean pVisible)
      Set the visibility of the column.
      Parameters:
      pVisible - true/false
      Returns:
      the column
    • isEditable

      boolean isEditable()
      Is the column editable?
      Returns:
      true/false
    • setEditable

      TethysUITableColumn<T,C,R> setEditable(boolean pEditable)
      Set the edit-ability of the column.
      Parameters:
      pEditable - true/false
      Returns:
      the column
    • setCellValueFactory

      TethysUITableColumn<T,C,R> setCellValueFactory(Function<R,T> pFactory)
      Set cell value Factory.
      Parameters:
      pFactory - the cell factory
      Returns:
      the column
    • getValueForRow

      T getValueForRow(R pRow)
      Obtain value for row.
      Parameters:
      pRow - the row
      Returns:
      the value
    • setCellEditable

      TethysUITableColumn<T,C,R> setCellEditable(Predicate<R> pEditable)
      Set the cell-editable tester.
      Parameters:
      pEditable - the editable tester
      Returns:
      the column
    • getCellEditable

      Predicate<R> getCellEditable()
      Get the cell-editable tester.
      Returns:
      the current tester
    • setOnCommit

      Set the on-commit consumer.
      Parameters:
      pOnCommit - the consumer
      Returns:
      the column
    • doRePaintColumnOnCommit

      boolean doRePaintColumnOnCommit()
      do we rePaintColumn on commit?
      Returns:
      true/false
    • setRepaintColumnOnCommit

      TethysUITableColumn<T,C,R> setRepaintColumnOnCommit(boolean pRePaint)
      Set repaintColumn on Commit.
      Parameters:
      pRePaint - the flag
      Returns:
      the column
    • getRePaintColumnId

      C getRePaintColumnId()
      get the column id which forces a rePaint.
      Returns:
      the column id
    • setRepaintColumnId

      TethysUITableColumn<T,C,R> setRepaintColumnId(C pRePaintId)
      Set repaintColumnId.
      Parameters:
      pRePaintId - the repaint id
      Returns:
      the column