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,- Cloneable
This object represents an individual grouping with attributes like key, sorts, topN sort, etc.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an empty grouping.RMGrouping(String aKey) Creates a grouping with the given key.
- 
Method SummaryModifier and TypeMethodDescriptionAdds the given sort to the grouping.voidAdds the given sort to the grouping.voidAdds a sort to the grouping for the given sort key.voidAdds the list of sorts to the grouping.clone()Standard clone implementation.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.booleanReturns whether the grouping has a details.booleanReturns whether the grouping has a header.booleanReturns whether the grouping has a summary.booleanReturns whether the grouping includes all values.booleanReturns whether to include values explicitly provided.getKey()Returns the grouping key.Returns the currently selected grouping's sort (while editing only).intReturns the currently selected grouping's currently selected sort (for editing, mostly).getSort(int anIndex) Returns the individual sort at the given index.intReturns the number of sorts in the grouping.booleanReturns whether to sort on values explicitly provided.getSorts()Returns the groupings list of sorts.Returns the top N sort for the grouping.Returns a list of explicit values for this grouping.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.voidremoveSort(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.voidSets 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(String aString) Sets the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.toString()Returns string representation of grouping.toXML(RXArchiver anArchiver) XML Archival.Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMGroupingpublic RMGrouping()Creates an empty grouping.
- 
RMGroupingCreates a grouping with the given key.
 
- 
- 
Method Details- 
getKeyReturns the grouping key.
- 
setKeySets the grouping key.
- 
getSortsReturns the groupings list of sorts.
- 
getSortCountpublic int getSortCount()Returns the number of sorts in the grouping.
- 
getSortReturns the individual sort at the given index.
- 
addSortAdds the given sort to the grouping.
- 
addSortAdds the given sort to the grouping.
- 
removeSortRemoves the sort at the given index.
- 
removeAllSortspublic void removeAllSorts()
- 
addSortsAdds the list of sorts to the grouping.
- 
addSortAdds a sort to the grouping for the given sort key.
- 
removeSortRemoves the given sort from the grouping.
- 
moveSortpublic void moveSort(int fromIndex, int toIndex) Moves a sort from the source index to the destination index.
- 
getTopNSortReturns the top N sort for the grouping.
- 
setTopNSortSets 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.
- 
getValuesStringReturns the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.
- 
setValuesStringSets the values (in the form of comma separated keychain keys) explicitly defined to sort or to include.
- 
getValuesReturns 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).
- 
getSelectedSortReturns the currently selected grouping's sort (while editing only).
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
toXMLXML Archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
toStringReturns string representation of grouping.
 
-