Class SortTable
java.lang.Object
java.util.Observable
com.nomagic.magicreport.engine.Tool
com.nomagic.magicreport.engine.tools.SortTool
com.nomagic.reportwizard.tools.dialog.SortTable
- All Implemented Interfaces:
ITool,IVariable,Serializable,Cloneable
class for sort table data.
- Since:
- Jun 16, 2009
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.nomagic.magicreport.engine.tools.SortTool
SortTool.AscendingSort, SortTool.DescendingSort, SortTool.FirstNumberAscendingSort, SortTool.FirstNumberDescendingSort, SortTool.HumanAscendingSort, SortTool.HumanDescendingSortNested classes/interfaces inherited from interface com.nomagic.magicreport.engine.ITool
ITool.HTMLString, ITool.RetainedString, ITool.Void -
Field Summary
Fields inherited from class com.nomagic.magicreport.engine.tools.SortTool
CONTEXT_NAMEFields inherited from class com.nomagic.magicreport.engine.Tool
context, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the value for blank field.voidsetProperties(Properties properties) method for set value to blankValue.sort(Collection collection) sort collection from JTable to ascendant collection.sortDesc(Collection collection) sort collection from JTable to descendant collection.Methods inherited from class com.nomagic.magicreport.engine.tools.SortTool
defaultSort, getNextToken, getValue, humanSort, humanSort, humanSort, humanSort, humanSort, humanSort, humanSort, isForceNumber, setForceNumber, sort, sort, sort, sort, sort, sortByFirstNumber, sortByFirstNumber, sortByFirstNumber, sortByFirstNumber, sortByLocale, sortByLocaleMethods inherited from class com.nomagic.magicreport.engine.Tool
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContextMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
-
Constructor Details
-
SortTable
public SortTable()
-
-
Method Details
-
setProperties
method for set value to blankValue.- Specified by:
setPropertiesin interfaceITool- Overrides:
setPropertiesin classTool- Parameters:
properties- properties- See Also:
-
getBlankValue
Return the value for blank field.- Returns:
- value for blank field
-
sort
sort collection from JTable to ascendant collection. -
sortDesc
sort collection from JTable to descendant collection.- Parameters:
collection- collection from JTable- Returns:
- new collection
-