|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.base.RMGrouping
public class RMGrouping
This object represents an individual grouping with attributes like key, sorts, topN sort, etc.
Constructor Summary | |
---|---|
RMGrouping()
Creates an empty grouping. |
|
RMGrouping(java.lang.String aKey)
Creates a grouping with the given key. |
Method Summary | |
---|---|
void |
addSort(RMSort anSO)
Adds the given sort to the grouping. |
void |
addSort(java.lang.String aSortKey)
Adds a sort to the grouping for the given sort key. |
void |
addSorts(java.util.List sos)
Adds the list of sorts to the grouping. |
java.lang.Object |
clone()
Standard clone implementation. |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement)
XML unarchival. |
boolean |
getHasDetails()
Returns whether the grouping has a details. |
boolean |
getHasHeader()
Returns whether the grouping has a header. |
boolean |
getHasSummary()
Returns whether the grouping has a summary. |
boolean |
getIncludeAllValues()
Returns whether the grouping includes all values. |
boolean |
getIncludeValues()
Returns whether to include values explicitly provided. |
java.lang.String |
getKey()
Returns the grouping key. |
RMSort |
getSelectedSort()
Returns the currently selected grouping's sort (while editing only). |
int |
getSelectedSortIndex()
Returns the currently selected grouping's currently selected sort (for editing, mostly). |
RMSort |
getSort(int anIndex)
Returns the individual sort at the given index. |
int |
getSortCount()
Returns the number of sorts in the grouping. |
boolean |
getSortOnValues()
Returns whether to sort on values explicitly provided. |
java.util.List |
getSorts()
Returns the groupings list of sorts. |
com.reportmill.base.RMTopNSort |
getTopNSort()
Returns the top N sort for the grouping. |
java.util.List |
getValues()
Returns a list of explicit values for this grouping. |
java.lang.String |
getValuesString()
Returns the values (in the form of comma separated keychain keys) explicitly defined to sort or to include. |
void |
moveSort(int sourceIndex,
int destIndex)
Moves a sort from the source index to the destination index. |
void |
removeSort(RMSort anSO)
Removes the given sort from the grouping. |
void |
setHasDetails(boolean aValue)
Sets whether the grouping has a details. |
void |
setHasHeader(boolean aValue)
Sets whether the grouping has a header. |
void |
setHasSummary(boolean aValue)
Sets whether the grouping has a summary. |
void |
setIncludeAllValues(boolean aValue)
Sets whether the grouping includes all values. |
void |
setIncludeValues(boolean aFlag)
Sets whether to include values explicitly provided. |
void |
setKey(java.lang.String aValue)
Sets the grouping key. |
void |
setSelectedSortIndex(int anIndex)
Sets the currently selected grouping's currently selected sort (for editing, mostly). |
void |
setSortOnValues(boolean aFlag)
Sets whether to sort on values explicitly provided. |
void |
setTopNSort(com.reportmill.base.RMTopNSort aSort)
Sets the top N sort for the grouping. |
void |
setValuesString(java.lang.String aString)
Sets the values (in the form of comma separated keychain keys) explicitly defined to sort or to include. |
java.lang.String |
toString()
Returns string representation of grouping. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver)
XML Archival. |
Methods inherited from class com.reportmill.base.RMObject |
---|
copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RMGrouping()
public RMGrouping(java.lang.String aKey)
Method Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String aValue)
public java.util.List getSorts()
public int getSortCount()
public RMSort getSort(int anIndex)
public void addSort(java.lang.String aSortKey)
public void addSort(RMSort anSO)
public void addSorts(java.util.List sos)
public void removeSort(RMSort anSO)
public void moveSort(int sourceIndex, int destIndex)
public com.reportmill.base.RMTopNSort getTopNSort()
public void setTopNSort(com.reportmill.base.RMTopNSort aSort)
public boolean getIncludeAllValues()
public void setIncludeAllValues(boolean aValue)
public java.lang.String getValuesString()
public void setValuesString(java.lang.String aString)
public java.util.List getValues()
public boolean getSortOnValues()
public void setSortOnValues(boolean aFlag)
public boolean getIncludeValues()
public void setIncludeValues(boolean aFlag)
public boolean getHasHeader()
public void setHasHeader(boolean aValue)
public boolean getHasDetails()
public void setHasDetails(boolean aValue)
public boolean getHasSummary()
public void setHasSummary(boolean aValue)
public int getSelectedSortIndex()
public void setSelectedSortIndex(int anIndex)
public RMSort getSelectedSort()
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in class com.reportmill.base.RMObject
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
public java.lang.String toString()
toString
in class java.lang.Object
|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |