Package com.inductiveautomation.rm.base
Class RMGrouping
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.base.RMGrouping
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- RMPropertyChanger,- java.lang.Cloneable
 
 public class RMGrouping extends RMObject implements Archivable This object represents an individual grouping with attributes like key, sorts, topN sort, etc.
- 
- 
Constructor SummaryConstructors Constructor Description RMGrouping()Creates an empty grouping.RMGrouping(java.lang.String aKey)Creates a grouping with the given key.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMGroupingaddSort(RMSort aSort)Adds the given sort to the grouping.voidaddSort(RMSort aSort, int anIndex)Adds the given sort to the grouping.voidaddSort(java.lang.String aSortKey)Adds a sort to the grouping for the given sort key.voidaddSorts(java.util.List<RMSort> aList)Adds the list of sorts to the grouping.RMGroupingclone()Standard clone implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.booleangetHasDetails()Returns whether the grouping has a details.booleangetHasHeader()Returns whether the grouping has a header.booleangetHasSummary()Returns whether the grouping has a summary.booleangetIncludeAllValues()Returns whether the grouping includes all values.booleangetIncludeValues()Returns whether to include values explicitly provided.java.lang.StringgetKey()Returns the grouping key.RMSortgetSelectedSort()Returns the currently selected grouping's sort (while editing only).intgetSelectedSortIndex()Returns the currently selected grouping's currently selected sort (for editing, mostly).RMSortgetSort(int anIndex)Returns the individual sort at the given index.intgetSortCount()Returns the number of sorts in the grouping.booleangetSortOnValues()Returns whether to sort on values explicitly provided.java.util.List<RMSort>getSorts()Returns the groupings list of sorts.RMTopNSortgetTopNSort()Returns the top N sort for the grouping.java.util.ListgetValues()Returns a list of explicit values for this grouping.java.lang.StringgetValuesString()Returns the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.voidmoveSort(int fromIndex, int toIndex)Moves a sort from the source index to the destination index.voidremoveAllSorts()RMSortremoveSort(int anIndex)Removes the sort at the given index.intremoveSort(RMSort aSort)Removes the given sort from the grouping.voidsetHasDetails(boolean aValue)Sets whether the grouping has a details.voidsetHasHeader(boolean aValue)Sets whether the grouping has a header.voidsetHasSummary(boolean aValue)Sets whether the grouping has a summary.voidsetIncludeAllValues(boolean aValue)Sets whether the grouping includes all values.voidsetIncludeValues(boolean aFlag)Sets whether to include values explicitly provided.voidsetKey(java.lang.String aValue)Sets the grouping key.voidsetSelectedSortIndex(int anIndex)Sets the currently selected grouping's currently selected sort (for editing, mostly).voidsetSortOnValues(boolean aFlag)Sets whether to sort on values explicitly provided.voidsetTopNSort(RMTopNSort aSort)Sets the top N sort for the grouping.voidsetValuesString(java.lang.String aString)Sets the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.java.lang.StringtoString()Returns string representation of grouping.RXElementtoXML(RXArchiver anArchiver)XML Archival.- 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getKeypublic java.lang.String getKey() Returns the grouping key.
 - 
setKeypublic void setKey(java.lang.String aValue) Sets the grouping key.
 - 
getSortspublic java.util.List<RMSort> getSorts() Returns the groupings list of sorts.
 - 
getSortCountpublic int getSortCount() Returns the number of sorts in the grouping.
 - 
getSortpublic RMSort getSort(int anIndex) Returns the individual sort at the given index.
 - 
addSortpublic RMGrouping addSort(RMSort aSort) Adds the given sort to the grouping.
 - 
addSortpublic void addSort(RMSort aSort, int anIndex) Adds the given sort to the grouping.
 - 
removeSortpublic RMSort removeSort(int anIndex) Removes the sort at the given index.
 - 
removeAllSortspublic void removeAllSorts() 
 - 
addSortspublic void addSorts(java.util.List<RMSort> aList) Adds the list of sorts to the grouping.
 - 
addSortpublic void addSort(java.lang.String aSortKey) Adds a sort to the grouping for the given sort key.
 - 
removeSortpublic int removeSort(RMSort aSort) Removes the given sort from the grouping.
 - 
moveSortpublic void moveSort(int fromIndex, int toIndex)Moves a sort from the source index to the destination index.
 - 
getTopNSortpublic RMTopNSort getTopNSort() Returns the top N sort for the grouping.
 - 
setTopNSortpublic void setTopNSort(RMTopNSort aSort) Sets the top N sort for the grouping.
 - 
getIncludeAllValuespublic boolean getIncludeAllValues() Returns whether the grouping includes all values.
 - 
setIncludeAllValuespublic void setIncludeAllValues(boolean aValue) Sets whether the grouping includes all values.
 - 
getValuesStringpublic java.lang.String getValuesString() Returns the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.
 - 
setValuesStringpublic void setValuesString(java.lang.String aString) Sets the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.
 - 
getValuespublic java.util.List getValues() Returns a list of explicit values for this grouping.
 - 
getSortOnValuespublic boolean getSortOnValues() Returns whether to sort on values explicitly provided.
 - 
setSortOnValuespublic void setSortOnValues(boolean aFlag) Sets whether to sort on values explicitly provided.
 - 
getIncludeValuespublic boolean getIncludeValues() Returns whether to include values explicitly provided.
 - 
setIncludeValuespublic void setIncludeValues(boolean aFlag) Sets whether to include values explicitly provided.
 - 
getHasHeaderpublic boolean getHasHeader() Returns whether the grouping has a header.
 - 
setHasHeaderpublic void setHasHeader(boolean aValue) Sets whether the grouping has a header.
 - 
getHasDetailspublic boolean getHasDetails() Returns whether the grouping has a details.
 - 
setHasDetailspublic void setHasDetails(boolean aValue) Sets whether the grouping has a details.
 - 
getHasSummarypublic boolean getHasSummary() Returns whether the grouping has a summary.
 - 
setHasSummarypublic void setHasSummary(boolean aValue) Sets whether the grouping has a summary.
 - 
getSelectedSortIndexpublic int getSelectedSortIndex() Returns the currently selected grouping's currently selected sort (for editing, mostly).
 - 
setSelectedSortIndexpublic void setSelectedSortIndex(int anIndex) Sets the currently selected grouping's currently selected sort (for editing, mostly).
 - 
getSelectedSortpublic RMSort getSelectedSort() Returns the currently selected grouping's sort (while editing only).
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
clonepublic RMGrouping clone() Standard clone implementation.- Overrides:
- clonein class- RMListenerList
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML Archival.- Specified by:
- toXMLin interface- Archivable
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
 
- 
 
-