Package org.linkki.core.ui.table.pmo
Interface SelectableTablePmo<ROW>
-
- All Superinterfaces:
ContainerPmo<ROW>
@BindTableSelection public interface SelectableTablePmo<ROW> extends ContainerPmo<ROW>
PMO for a table whose rows can be selected. In addition, a double click action can be bound to the rows.
-
-
Field Summary
-
Fields inherited from interface org.linkki.core.defaults.columnbased.pmo.ContainerPmo
DEFAULT_PAGE_LENGTH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ROWgetSelection()Returns the currently selected row.voidonDoubleClick()Action that should be executed when a double click is made on a row.voidsetSelection(ROW selectedRow)Sets the currently selected row.-
Methods inherited from interface org.linkki.core.defaults.columnbased.pmo.ContainerPmo
getAddItemButtonPmo, getFooterPmo, getItemPmoClass, getItems, getPageLength, isHierarchical
-
-
-
-
Method Detail
-
getSelection
ROW getSelection()
Returns the currently selected row.
-
setSelection
void setSelection(ROW selectedRow)
Sets the currently selected row.
-
onDoubleClick
void onDoubleClick()
Action that should be executed when a double click is made on a row.- Implementation Requirements:
- As a single click triggers the selection, implementer can assume that
setSelection(Object)has already been called before this method is invoked. Thus, it is safe to assume that the row that is being clicked on is identical togetSelection().
-
-