-
- 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
public interface UiColumn<R,V> extends UiWidget, AttributeWriteTitle, AttributeWriteResizable
UiWidget
for a column of aUiAbstractDataWidget
.
By default a column isread-only
. If youset read-only
tofalse
, the cells in this column will be editable. In case youset read-only fixed
toBoolean.TRUE
, you can force the cells of this row to be immutable even for inline editing.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getFilterText()
Comparator<V>
getSortComparator()
io.github.mmm.base.sort.SortOrder
getSortOrder()
default boolean
isEditable()
boolean
isFiltering()
default boolean
isSortable()
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 Detail
-
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
-
-
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
void setSortComparator(Comparator<V> sortComparator)
- Parameters:
sortComparator
- the new value ofgetSortComparator()
. May benull
to disable sorting.- See Also:
Comparator.naturalOrder()
-
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:
UiWidget.isReadOnly()
-
setEditable
default void setEditable(boolean editable)
- Parameters:
editable
- the new value ofisEditable()
.- See Also:
UiWidget.setReadOnly(boolean)
-
-