T
- public class ListController<T extends IRowItem>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ListController.SelectionType
The Enum SelectionType list the available selection modes of a list.
|
Constructor and Description |
---|
ListController(java.lang.String key,
ListController.SelectionType selectionType)
Instantiates a new list controller with a unique key identifying the associated ICEFace component, such as a
dataTable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEnhancedMultiple()
Returns true if the List selection mode is set to
SelectionType.MULTIPLE_ENHANCED . |
java.util.List<java.lang.Long> |
getIds()
Converts the list of IRowItems to a list of corresponding ID's.
|
java.lang.String |
getMultiple()
Returns true if the List selection mode is set to
SelectionType.MULTIPLE . |
java.util.List<T> |
getRowItems()
Gets the row items that act as input for this controller.
|
java.util.List<T> |
getSelection()
Gets a list of the currently selected row items.
|
void |
resetSelection()
Sets the selected items to not selected.
|
void |
selectedListener(com.icesoft.faces.component.ext.RowSelectorEvent event)
Select listener for the ICEFaces component associated with this controller.
|
void |
setInput(java.util.List<T> items)
Sets the items which acts as input for the ICEFace component.
|
public ListController(java.lang.String key, ListController.SelectionType selectionType)
key
- the key identifying the associated ICEFace componentselectionType
- the selection typepublic void setInput(java.util.List<T> items)
items
- the list of itemspublic java.util.List<T> getRowItems()
public java.util.List<T> getSelection()
public void selectedListener(com.icesoft.faces.component.ext.RowSelectorEvent event)
event
- the event that triggered this listenerpublic java.lang.String getMultiple()
SelectionType.MULTIPLE
.SelectionType.MULTIPLE
, false otherwisepublic java.lang.String getEnhancedMultiple()
SelectionType.MULTIPLE_ENHANCED
.SelectionType.MULTIPLE_ENHANCED
, false otherwisepublic java.util.List<java.lang.Long> getIds()
public void resetSelection()