- 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.SortOrder
default boolean
boolean
default boolean
default void
setEditable
(boolean editable) void
setFiltering
(boolean filtering) void
setSortComparator
(Comparator<V> sortComparator) Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttached
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getId
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadTitle
getTitle
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteResizable
isResizable, setResizable
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTitle
setTitle
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltip
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
Methods 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:
true
if this column allows filtering,false
otherwise. 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
SortOrder
of this column ornull
if unsorted.
-
isSortable
default boolean isSortable()- Returns:
true
if asort comparator
is notnull
and the data can be sorted according to this column,false
otherwise.
-
getSortComparator
Comparator<V> getSortComparator()- Returns:
- the
Comparator
used to sort the values. May benull
to disable sorting.
-
setSortComparator
- Parameters:
sortComparator
- the new value ofgetSortComparator()
. May benull
to disable sorting.- See Also:
-
isEditable
default boolean isEditable()- Returns:
true
if 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:
-