Class ManagedUiTableActionDescription
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.ManagedUiActionDescription
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.ManagedUiTableActionDescription
-
- All Implemented Interfaces:
IManagedUiAction,IManagedUiTableAction,java.io.Serializable
public class ManagedUiTableActionDescription extends ManagedUiActionDescription implements IManagedUiTableAction, java.io.Serializable
Object that declaratively describes a UI for an action related to a table (e.g. describing UI of a dialog that should be shown after clicking on a button when some table rows are selected).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManagedUiTableActionDescription(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IManagedUiTableActionaddBinding(java.lang.String inputLabel, java.lang.String columnTitle)Adds a binding between input field and table column.java.util.Map<java.lang.String,java.lang.String>getBindings()Returns map of bindings between input fields and table columns.java.util.List<java.lang.Integer>getSelectedRows()Returns list of indices of selected rows (empty if no row was selected).ManagedTableActionRowSelectionTypegetSelectionType()Returns selection type specifying when the action should be enabled.IManagedUiTableActionsetRowSelectionNotRequired()Sets the selection type toManagedTableActionRowSelectionType.NOT_REQUIRED.IManagedUiTableActionsetRowSelectionRequired()Sets the selection type toManagedTableActionRowSelectionType.REQUIRED.IManagedUiTableActionsetRowSelectionRequiredSingle()Sets the selection type toManagedTableActionRowSelectionType.REQUIRED_SINGLE.voidsetSelectedRows(java.util.List<java.lang.Integer> selectedRows)-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.ManagedUiActionDescription
addInputWidgets, getDescription, getInputValue, getInputWidgetDescriptions, getName, getPerson, setDescription, setInputWidgetDescriptions, setPerson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.systemsx.cisd.openbis.generic.shared.basic.dto.api.IManagedUiAction
addInputWidgets, getDescription, getInputValue, getInputWidgetDescriptions, getName, getPerson, setDescription
-
-
-
-
Method Detail
-
getSelectionType
public ManagedTableActionRowSelectionType getSelectionType()
Description copied from interface:IManagedUiTableActionReturns selection type specifying when the action should be enabled.- Specified by:
getSelectionTypein interfaceIManagedUiTableAction
-
setRowSelectionNotRequired
public IManagedUiTableAction setRowSelectionNotRequired()
Description copied from interface:IManagedUiTableActionSets the selection type toManagedTableActionRowSelectionType.NOT_REQUIRED.- Specified by:
setRowSelectionNotRequiredin interfaceIManagedUiTableAction- Returns:
- this (for method chaining)
-
setRowSelectionRequired
public IManagedUiTableAction setRowSelectionRequired()
Description copied from interface:IManagedUiTableActionSets the selection type toManagedTableActionRowSelectionType.REQUIRED.- Specified by:
setRowSelectionRequiredin interfaceIManagedUiTableAction- Returns:
- this (for method chaining)
-
setRowSelectionRequiredSingle
public IManagedUiTableAction setRowSelectionRequiredSingle()
Description copied from interface:IManagedUiTableActionSets the selection type toManagedTableActionRowSelectionType.REQUIRED_SINGLE.- Specified by:
setRowSelectionRequiredSinglein interfaceIManagedUiTableAction- Returns:
- this (for method chaining)
-
getSelectedRows
public java.util.List<java.lang.Integer> getSelectedRows()
Description copied from interface:IManagedUiTableActionReturns list of indices of selected rows (empty if no row was selected).- Specified by:
getSelectedRowsin interfaceIManagedUiTableAction
-
setSelectedRows
public void setSelectedRows(java.util.List<java.lang.Integer> selectedRows)
-
addBinding
public IManagedUiTableAction addBinding(java.lang.String inputLabel, java.lang.String columnTitle)
Description copied from interface:IManagedUiTableActionAdds a binding between input field and table column.- Specified by:
addBindingin interfaceIManagedUiTableAction
-
getBindings
public java.util.Map<java.lang.String,java.lang.String> getBindings()
Description copied from interface:IManagedUiTableActionReturns map of bindings between input fields and table columns.- Specified by:
getBindingsin interfaceIManagedUiTableAction
-
-