Interface TethysUITableColumn<T,C,R>
- Type Parameters:
T- the data typeC- the column identityR- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceOnCell commit callback.static interfaceCharArray Column Definition.static interfaceCurrencyTableColumn.static interfaceDateTableColumn.static interfaceDateTableColumn.static interfaceDecimalTableColumn.static interfaceIconTableColumn.static interfaceIconTableColumn.static interfaceInteger Column Definition.static interfaceTethysUITableColumn.TethysUITableListColumn<T extends Comparable<? super T>,C, R> ListTableColumn.static interfaceTethysUITableColumn.TethysUITableListConfig<T extends Comparable<? super T>,R> ListTableColumn.static interfaceLong Column Definition.static interfaceMoney Column Definition.static interfacePrice Column Definition.static interfaceRate Column Definition.static interfaceRatio Column Definition.static interfaceRawDecimal Column Definition.static interfaceScrollTableColumn.static interfaceScrollTableColumn.static interfaceShort Column Definition.static interfaceString Column Definition.static interfaceUnits Column Definition.static interfaceValidated Column Definition. -
Method Summary
Modifier and TypeMethodDescriptionbooleando we rePaintColumn on commit?Get the cell-editable tester.Obtain the type of the column.getId()Obtain the id of the column.getName()Obtain the name of the column.get the column id which forces a rePaint.getTable()Obtain the table manager.getValueForRow(R pRow) Obtain value for row.booleanIs the column editable?booleanIs the column visible?setCellEditable(Predicate<R> pEditable) Set the cell-editable tester.setCellValueFactory(Function<R, T> pFactory) Set cell value Factory.setColumnWidth(int pWidth) Set the column width.setEditable(boolean pEditable) Set the edit-ability of the column.Set the name of the column.setOnCommit(TethysUITableColumn.TethysUIOnCellCommit<R, T> pOnCommit) Set the on-commit consumer.setRepaintColumnId(C pRePaintId) Set repaintColumnId.setRepaintColumnOnCommit(boolean pRePaint) Set repaintColumn on Commit.setVisible(boolean pVisible) Set the visibility of the column.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrar
-
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
Set the name of the column.- Parameters:
pName- the column name- Returns:
- the column
-
setColumnWidth
Set the column width.- Parameters:
pWidth- the width- Returns:
- the column
-
isVisible
boolean isVisible()Is the column visible?- Returns:
- true/false
-
setVisible
Set the visibility of the column.- Parameters:
pVisible- true/false- Returns:
- the column
-
isEditable
boolean isEditable()Is the column editable?- Returns:
- true/false
-
setEditable
Set the edit-ability of the column.- Parameters:
pEditable- true/false- Returns:
- the column
-
setCellValueFactory
Set cell value Factory.- Parameters:
pFactory- the cell factory- Returns:
- the column
-
getValueForRow
Obtain value for row.- Parameters:
pRow- the row- Returns:
- the value
-
setCellEditable
Set the cell-editable tester.- Parameters:
pEditable- the editable tester- Returns:
- the column
-
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
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
Set repaintColumnId.- Parameters:
pRePaintId- the repaint id- Returns:
- the column
-