public class RowStateMap extends java.lang.Object implements java.util.Map<java.lang.Object,RowState>, java.io.Serializable
| Constructor and Description |
|---|
RowStateMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object o)
Put a empty state for a specific row object.
|
void |
clear()
Remove all row states from this map.
|
boolean |
containsKey(java.lang.Object key)
Get if this map contains a state for a particular row object
|
boolean |
containsValue(java.lang.Object value)
Get if this map contains a particular row state
|
java.util.Set |
entrySet()
Get the collection of all Map Entry objects, defining a key row object and value row state.
|
void |
filterStates(javax.faces.model.DataModel model)
This method will remove all entries from the map but those with keys in this data model.
|
void |
filterStates(java.util.List data)
This method will remove all entries from the map but those with keys in this list.
|
RowState |
get(java.lang.Object o)
Get the row state for a particular row object
|
java.util.List |
getEditable()
Get the row objects that are editable
|
java.util.List |
getEditing(javax.faces.component.UIComponent editor)
Get the row objects that have activated a particular CellEditor.
|
java.util.List |
getExpandable()
Get the row objects that are expandible
|
java.util.List |
getExpanded()
Get the row objects that are expanded
|
java.util.List |
getPanelExpanders()
Get the row objects that expand into panels
|
java.util.List |
getRowExpanders()
Get the row objects that expand into other rows
|
java.util.List |
getRowsWithSelectedCells()
Get the list of row objects with cells that are selected.
|
java.util.List |
getSelectable()
Get row objects that are selectable
|
java.util.List |
getSelected()
Get the list of selected row objects.
|
java.util.List |
getVisible()
Get the row objects that are not invisible
|
boolean |
isEmpty()
Get if this map is empty
|
java.util.Set |
keySet()
Get the set of all row objects with attached RowStates
|
RowState |
put(java.lang.Object o,
RowState s)
Put a new state for a specific row object.
|
void |
putAll(java.util.Map m)
Add all entries from the input map to this map.
|
RowState |
remove(java.lang.Object o)
Remove the row state for a particular row object.
|
void |
removeStates(java.util.List data)
This method will remove all entries from the map with keys in this list.
|
void |
setAllEditable(boolean value)
Set the editable state of all the row objects
|
void |
setAllEditing(javax.faces.component.UIComponent editor,
boolean add)
Set the editing state for the given CellEditor
|
void |
setAllExpandable(boolean value)
Set the expandable state of all the row objects
|
void |
setAllExpanded(boolean value)
Set the expanded state of all the row objects
|
void |
setAllPanelExpansion()
Set the expansion mode of all the row objects to panel
|
void |
setAllRowExpansion()
Set the expansion mode of all the row objects to row
|
void |
setAllSelectable(boolean value)
Set the selectable state of all the row objects
|
void |
setAllSelected(boolean value)
Set the selection state of all the row objects
|
void |
setAllVisible(boolean value)
Set the visible state of all the row objects
|
void |
setExpandableByTreeModel(TreeDataModel dataModel)
Synchronize the expanded row state with the expanded state stored in the node of the data model.
|
int |
size()
Get the number of states held in this map
|
void |
updateData(java.util.List data)
This method will look up state entries with keys in the input list, and update their
key with the copy from the input list.
|
void |
updateData(java.lang.Object o)
Replace a row object with one that hashes identically but is a distinct copy.
|
java.util.Collection |
values()
Get the collection of all RowStates
|
public RowState put(java.lang.Object o, RowState s)
put in interface java.util.Map<java.lang.Object,RowState>o - row objects - new statepublic void add(java.lang.Object o)
o - row objectpublic int size()
size in interface java.util.Map<java.lang.Object,RowState>public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Object,RowState>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Object,RowState>key - row objectpublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Object,RowState>value - row statepublic RowState get(java.lang.Object o)
get in interface java.util.Map<java.lang.Object,RowState>o - row objectpublic RowState remove(java.lang.Object o)
remove in interface java.util.Map<java.lang.Object,RowState>o - public void putAll(java.util.Map m)
putAll in interface java.util.Map<java.lang.Object,RowState>m - input mappublic void clear()
clear in interface java.util.Map<java.lang.Object,RowState>public java.util.Set keySet()
keySet in interface java.util.Map<java.lang.Object,RowState>public java.util.Collection values()
values in interface java.util.Map<java.lang.Object,RowState>public java.util.Set entrySet()
entrySet in interface java.util.Map<java.lang.Object,RowState>public void updateData(java.lang.Object o)
o - public void updateData(java.util.List data)
data - - A list of row data equal() to some key already in the rowStateMap, but with changes that require the current key to be replaced.public void removeStates(java.util.List data)
data - the row data to remove states forpublic void filterStates(java.util.List data)
data - the row data list to keep states forpublic void filterStates(javax.faces.model.DataModel model)
model - The data model to keep states forpublic void setExpandableByTreeModel(TreeDataModel dataModel)
dataModel - tree data modelpublic java.util.List getSelected()
public java.util.List getRowsWithSelectedCells()
public java.util.List getSelectable()
public java.util.List getEditable()
public java.util.List getExpanded()
public java.util.List getExpandable()
public java.util.List getVisible()
public java.util.List getEditing(javax.faces.component.UIComponent editor)
editor - active CellEditor targetpublic java.util.List getRowExpanders()
public java.util.List getPanelExpanders()
public void setAllSelected(boolean value)
value - selectedpublic void setAllSelectable(boolean value)
value - selectablepublic void setAllEditable(boolean value)
value - editablepublic void setAllExpanded(boolean value)
value - expandedpublic void setAllExpandable(boolean value)
value - expandablepublic void setAllVisible(boolean value)
value - visiblepublic void setAllRowExpansion()
public void setAllPanelExpansion()
public void setAllEditing(javax.faces.component.UIComponent editor,
boolean add)
editor - the CellEditoradd - activate or removeCopyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.