public class RMGrouper
extends SnapObject
implements java.beans.PropertyChangeListener
Constructor and Description |
---|
RMGrouper()
Creates an empty grouper.
|
Modifier and Type | Method and Description |
---|---|
void |
addGrouping(RMGrouping aGrouping)
Adds a given grouping to grouper's list of groupings.
|
void |
addGrouping(RMGrouping aGrouping,
int anIndex)
Adds a given grouping to grouper's list of groupings.
|
RMGrouping |
addGroupingForKey(java.lang.String aKey)
Adds a new grouping with the given key.
|
RMGrouping |
addGroupingForKey(java.lang.String aKey,
int anIndex)
Adds a new grouping with the given key at the given index.
|
void |
addGroupings(java.util.List<RMGrouping> aList)
Adds a given list of groupings to grouper's list of groupings.
|
RMGrouper |
clone()
Standard clone implementation.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(XMLArchiver anArchiver,
XMLElement anElement)
XML unarchival.
|
RMGrouping |
getGrouping(int anIndex)
Returns the grouping at the given index.
|
RMGrouping |
getGrouping(java.lang.String aKey)
Returns the grouping with the given key.
|
int |
getGroupingCount()
Returns the number of groupings in this grouper.
|
java.lang.String |
getGroupingKey(int anIndex)
Return the key for the grouping at the given index.
|
RMGrouping |
getGroupingLast()
Returns the last grouping.
|
RMGrouping |
getSelectedGrouping()
Returns the currently selected grouping (while editing only).
|
int |
getSelectedGroupingIndex()
Returns the currently selected grouping's index (for editing, mostly).
|
RMGroup |
groupObjects(java.util.List aList)
Separates given objects into RMGroups defined by groupings.
|
int |
indexOf(java.lang.String aKey)
Returns the index for the grouping with the given key.
|
void |
moveGrouping(int fromIndex,
int toIndex)
Moves a grouping from given fromIndex to given toIndex.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Listen for property changes and forward to grouper's property change listeners.
|
RMGrouping |
removeGrouping(int anIndex)
Removes the grouping at the given index.
|
boolean |
removeGrouping(RMGrouping aGrouping)
Removes the given grouping.
|
void |
setSelectedGroupingIndex(int anIndex)
Sets the currently selected grouping by index (for editing, mostly).
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
public int getGroupingCount()
public RMGrouping getGrouping(int anIndex)
public void addGrouping(RMGrouping aGrouping)
public void addGrouping(RMGrouping aGrouping, int anIndex)
public RMGrouping removeGrouping(int anIndex)
public RMGrouping getGrouping(java.lang.String aKey)
public RMGrouping getGroupingLast()
public java.lang.String getGroupingKey(int anIndex)
public int indexOf(java.lang.String aKey)
public void addGroupings(java.util.List<RMGrouping> aList)
public RMGrouping addGroupingForKey(java.lang.String aKey)
public RMGrouping addGroupingForKey(java.lang.String aKey, int anIndex)
public boolean removeGrouping(RMGrouping aGrouping)
public void moveGrouping(int fromIndex, int toIndex)
public int getSelectedGroupingIndex()
public void setSelectedGroupingIndex(int anIndex)
public RMGrouping getSelectedGrouping()
public RMGroup groupObjects(java.util.List aList)
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public boolean equals(java.lang.Object anObj)
public RMGrouper clone()
public XMLElement toXML(XMLArchiver anArchiver)
public java.lang.Object fromXML(XMLArchiver anArchiver, XMLElement anElement)