Interface TethysUITableManager<C,R>
- Type Parameters:
C- the column identityR- the row type
- All Superinterfaces:
TethysUIComponent
- All Known Implementing Classes:
TethysUICoreTableManager
Tethys Table Manager.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceOnRow commit callback.static interfaceOnRow select callback. -
Method Summary
Modifier and TypeMethodDescriptionvoidCancel editing.Obtain an iterator over the column ids.declareCharArrayColumn(C pId) Declare charArray column.declareDateColumn(C pId) Declare date column.declareIconColumn(C pId, Class<T> pClazz) Declare icon column.declareIntegerColumn(C pId) Declare integer column.<T extends Comparable<? super T>>
TethysUITableColumn.TethysUITableListColumn<T, C, R> declareListColumn(C pId, Class<T> pClazz) Declare list column.declareLongColumn(C pId) Declare long column.declareMoneyColumn(C pId) Declare money column.declarePriceColumn(C pId) Declare price column.declareRateColumn(C pId) Declare rate column.declareRatioColumn(C pId) Declare ratio column.declareRawDecimalColumn(C pId) Declare rawDecimal column.declareScrollColumn(C pId, Class<T> pClazz) Declare scroll column.declareShortColumn(C pId) Declare short column.declareStringColumn(C pId) Declare string column.declareUnitsColumn(C pId) Declare units column.booleando we rePaintRow on commit?voidfire TableDataChanged.Obtain the column for the id.obtain onValidateError consumer.booleanIs the cell changed?booleanisDisabled(R pRow) Is the row disabled?booleanIs the table editable?booleanIs the cell in error?Obtain an iterator over the unsorted items.voidrepaintColumn(C pId) Repaint the column.voidRequestFocus.voidScroll the selected item (if any) to view.voidSelect a row.voidselectRowWithScroll(R pItem) Select a row and ensure that it is visible.setChanged(BiPredicate<C, R> pChanged) Set the changed predicate.setComparator(Comparator<R> pComparator) Set the comparator.setDisabled(Predicate<R> pDisabled) Set the disabled predicate.setEditable(boolean pEditable) Set the edit-ability of the table.setError(BiPredicate<C, R> pError) Set the error predicate.Set the filter.voidSet the table items.setOnCellEditState(Consumer<Boolean> pOnCellEditState) Set the on-cellEditState consumer.setOnCommit(TethysUITableManager.TethysUIOnRowCommit<R> pOnCommit) Set the on-commit consumer.setOnCommitError(Consumer<OceanusException> pOnCommitError) Set the on-commitError consumer.setOnSelect(TethysUITableManager.TethysUIOnRowSelect<R> pOnSelect) Set the on-select consumer.setOnValidateError(Consumer<String> pOnValidateError) Set the on-validateError consumer.setRepaintRowOnCommit(boolean pRePaint) Set repaintRow on Commit.Obtain an iterator over the sorted and filtered items.Methods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Method Details
-
isEditable
boolean isEditable()Is the table editable?- Returns:
- true/false
-
setEditable
Set the edit-ability of the table.- Parameters:
pEditable- true/false- Returns:
- the table
-
requestFocus
void requestFocus()RequestFocus. -
doRePaintRowOnCommit
boolean doRePaintRowOnCommit()do we rePaintRow on commit?- Returns:
- true/false
-
setRepaintRowOnCommit
Set repaintRow on Commit.- Parameters:
pRePaint- the flag- Returns:
- the table
-
setError
Set the error predicate.- Parameters:
pError- the error predicate- Returns:
- the table
-
isError
Is the cell in error?- Parameters:
pId- the column idpRow- the row- Returns:
- true/false
-
setChanged
Set the changed predicate.- Parameters:
pChanged- the changed predicate- Returns:
- the table
-
isChanged
Is the cell changed?- Parameters:
pId- the column idpRow- the row- Returns:
- true/false
-
setDisabled
Set the disabled predicate.- Parameters:
pDisabled- the disabled predicate- Returns:
- the table
-
isDisabled
Is the row disabled?- Parameters:
pRow- the row- Returns:
- true/false
-
setFilter
Set the filter.- Parameters:
pFilter- the filter- Returns:
- the table
-
setComparator
Set the comparator.- Parameters:
pComparator- the comparator- Returns:
- the table
-
setOnCommit
Set the on-commit consumer.- Parameters:
pOnCommit- the consumer- Returns:
- the table
-
setOnSelect
Set the on-select consumer.- Parameters:
pOnSelect- the consumer- Returns:
- the table
-
selectRow
Select a row.- Parameters:
pItem- the row to select
-
scrollSelectedToView
void scrollSelectedToView()Scroll the selected item (if any) to view. -
selectRowWithScroll
Select a row and ensure that it is visible.- Parameters:
pItem- the row to select
-
setOnCellEditState
Set the on-cellEditState consumer.- Parameters:
pOnCellEditState- the consumer- Returns:
- the table
-
setOnCommitError
Set the on-commitError consumer.- Parameters:
pOnCommitError- the consumer- Returns:
- the table
-
setOnValidateError
Set the on-validateError consumer.- Parameters:
pOnValidateError- the consumer- Returns:
- the tabke
-
getOnValidateError
obtain onValidateError consumer.- Returns:
- the consumer
-
cancelEditing
void cancelEditing()Cancel editing. -
setItems
Set the table items.- Parameters:
pItems- the items
-
fireTableDataChanged
void fireTableDataChanged()fire TableDataChanged. -
itemIterator
Obtain an iterator over the unsorted items.- Returns:
- the iterator.
-
viewIterator
Obtain an iterator over the sorted and filtered items.- Returns:
- the iterator.
-
columnIterator
Obtain an iterator over the column ids.- Returns:
- the iterator.
-
getColumn
Obtain the column for the id.- Parameters:
pId- the id of the column- Returns:
- the table column
-
repaintColumn
Repaint the column.- Parameters:
pId- the column id
-
declareStringColumn
Declare string column.- Parameters:
pId- the column id- Returns:
- the column
-
declareCharArrayColumn
Declare charArray column.- Parameters:
pId- the column id- Returns:
- the column
-
declareShortColumn
Declare short column.- Parameters:
pId- the column id- Returns:
- the column
-
declareIntegerColumn
Declare integer column.- Parameters:
pId- the column id- Returns:
- the column
-
declareLongColumn
Declare long column.- Parameters:
pId- the column id- Returns:
- the column
-
declareRawDecimalColumn
Declare rawDecimal column.- Parameters:
pId- the column id- Returns:
- the column
-
declareMoneyColumn
Declare money column.- Parameters:
pId- the column id- Returns:
- the column
-
declarePriceColumn
Declare price column.- Parameters:
pId- the column id- Returns:
- the column
-
declareRateColumn
Declare rate column.- Parameters:
pId- the column id- Returns:
- the column
-
declareUnitsColumn
Declare units column.- Parameters:
pId- the column id- Returns:
- the column
-
declareRatioColumn
Declare ratio column.- Parameters:
pId- the column id- Returns:
- the column
-
declareDateColumn
Declare date column.- Parameters:
pId- the column id- Returns:
- the column
-
declareScrollColumn
<T> TethysUITableColumn.TethysUITableScrollColumn<T,C, declareScrollColumnR> (C pId, Class<T> pClazz) Declare scroll column.- Type Parameters:
T- the data type- Parameters:
pId- the column idpClazz- the column class- Returns:
- the column
-
declareListColumn
<T extends Comparable<? super T>> TethysUITableColumn.TethysUITableListColumn<T,C, declareListColumnR> (C pId, Class<T> pClazz) Declare list column.- Type Parameters:
T- the data type- Parameters:
pId- the column idpClazz- the data class- Returns:
- the column
-
declareIconColumn
Declare icon column.- Type Parameters:
T- the data type- Parameters:
pId- the column idpClazz- the column class- Returns:
- the column
-