public class RMGrouper extends RMObject
Constructor and Description |
---|
RMGrouper()
Creates an empty grouper.
|
Modifier and Type | Method and Description |
---|---|
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 aList)
Adds a given list of groupings to grouper's list of groupings.
|
java.lang.Object |
clone()
Standard clone implementation.
|
void |
copy(java.lang.Object anObj)
Copies attributes of given object.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement 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.
|
java.util.List |
getGroupingKeys()
Returns a list of keys for the current groupings.
|
RMGrouping |
getGroupingLast()
Returns the last grouping.
|
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.
|
java.lang.Object |
initWithArchiver(RMArchiver anArchiver)
Legacy unarchival.
|
void |
moveGrouping(int fromIndex,
int toIndex)
Moves a grouping from given fromIndex to given toIndex.
|
void |
removeGrouping(int anIndex)
Removes the grouping at the given index.
|
void |
removeGrouping(RMGrouping aGrouping)
Removes the given grouping.
|
void |
removeGroupingForKey(java.lang.String aKey)
Removes the grouping with the given key.
|
int |
size()
Returns the number of groupings in this grouper.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
public int getGroupingCount()
public int size()
public RMGrouping getGrouping(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 addGrouping(RMGrouping aGrouping, int anIndex)
public void addGroupings(java.util.List aList)
public RMGrouping addGroupingForKey(java.lang.String aKey)
public RMGrouping addGroupingForKey(java.lang.String aKey, int anIndex)
public void removeGrouping(int anIndex)
public void removeGrouping(RMGrouping aGrouping)
public void removeGroupingForKey(java.lang.String aKey)
public void moveGrouping(int fromIndex, int toIndex)
public java.util.List getGroupingKeys()
public RMGroup groupObjects(java.util.List aList)
public java.lang.Object clone()
public void copy(java.lang.Object anObj)
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
public java.lang.Object initWithArchiver(RMArchiver anArchiver)
initWithArchiver
in interface RMArchiver.Archiving
initWithArchiver
in class RMObject