- Type Parameters:
R- type of the row data. Typically aBean.V- type of the value for the cells in this column.
- All Superinterfaces:
AttributeReadAttached,AttributeReadEnabled,AttributeReadId,AttributeReadTitle,AttributeReadValid,AttributeReadVisible,AttributeWriteEnabled,AttributeWriteId,AttributeWriteReadOnly,AttributeWriteResizable,AttributeWriteTitle,AttributeWriteTooltip,AttributeWriteVisible,io.github.mmm.event.EventSource<UiEvent,,UiEventListener> UiWidget
UiWidget for a column of a UiAbstractDataWidget.By default a column is
read-only. If you set read-only to
false, the cells in this column will be editable. In case you set read-only
fixed to Boolean.TRUE, you can force the cells of this row to be immutable even for inline editing.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionio.github.mmm.base.sort.SortOrderdefault booleanbooleandefault booleandefault voidsetEditable(boolean editable) voidsetFiltering(boolean filtering) voidsetSortComparator(Comparator<V> sortComparator) Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttachedMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadTitle
getTitleMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteResizable
isResizable, setResizableMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTitle
setTitleMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltipMethods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getModificationTimestamp, getParent, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isModified, isReadOnly, isValid, isVisible, isVisible, reset, setEnabled, setEnabled, setFocused, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
Method Details
-
isFiltering
boolean isFiltering()- Returns:
trueif this column allows filtering,falseotherwise. Typically filtering renders a text input at the bottom of the column header that allows to search for data in the cells. All rows that have values in this column which do not contain the filter text will be hidden from the data widget.
-
setFiltering
void setFiltering(boolean filtering) - Parameters:
filtering-
-
getFilterText
String getFilterText()- Returns:
- the current filter text for
filtering.
-
getSortOrder
io.github.mmm.base.sort.SortOrder getSortOrder()- Returns:
- the current
SortOrderof this column ornullif unsorted.
-
isSortable
default boolean isSortable()- Returns:
trueif asort comparatoris notnulland the data can be sorted according to this column,falseotherwise.
-
getSortComparator
Comparator<V> getSortComparator()- Returns:
- the
Comparatorused to sort the values. May benullto disable sorting.
-
setSortComparator
- Parameters:
sortComparator- the new value ofgetSortComparator(). May benullto disable sorting.- See Also:
-
isEditable
default boolean isEditable()- Returns:
trueif this column is editable so the end-user can potentially edit the cell values of this column with inline editing.- See Also:
-
setEditable
default void setEditable(boolean editable) - Parameters:
editable- the new value ofisEditable().- See Also:
-