Class GroupTool
java.lang.Object
java.util.Observable
com.nomagic.magicreport.engine.Tool
com.nomagic.magicreport.engine.tools.GroupTool
- All Implemented Interfaces:
ITool,IVariable,Serializable,Cloneable
Contains utilities functions for group an object. Context name of this class is "group". Public functions of
this class are able to access via template by using
$group- Since:
- Aug 1, 2007
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.nomagic.magicreport.engine.ITool
ITool.HTMLString, ITool.RetainedString, ITool.Void -
Field Summary
FieldsFields inherited from class com.nomagic.magicreport.engine.Tool
context, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()Removes all mappings.booleanReturns true if contains a group name.create()Create new instance of group tool.ReturnListof group object.Return a set of group name.init()Initialize a group tool.Add object into group.Remove the group for this group name.Remove all group.Methods inherited from class com.nomagic.magicreport.engine.Tool
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setPropertiesMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
-
Field Details
-
CONTEXT_NAME
Contains a context name.- See Also:
-
-
Constructor Details
-
GroupTool
public GroupTool()
-
-
Method Details
-
create
Create new instance of group tool.- Returns:
- a new instance of group tool
-
init
Initialize a group tool.- Returns:
- void
-
groupNames
Return a set of group name.- Returns:
Setof group name
-
contains
Returns true if contains a group name.- Parameters:
groupName- a group name- Returns:
- true if contains a group name.
-
put
Add object into group.- Parameters:
groupName- a group nameobject- a object being added- Returns:
- void
-
get
ReturnListof group object.- Parameters:
groupName- a group name- Returns:
Listof group object.
-
remove
Remove the group for this group name.- Parameters:
groupName- a group name- Returns:
- previous
Listof group object associated with group name, or null if there was no group for key.
-
removeAll
Remove all group.- Returns:
- void
-
clear
Removes all mappings.- Returns:
- void
-