Class SortCommand
- java.lang.Object
-
- net.sf.jasperreports.components.sort.actions.SortCommand
-
- All Implemented Interfaces:
java.io.Serializable,Command
public class SortCommand extends java.lang.Object implements Command
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRDesignDatasetdatasetstatic java.lang.StringPROPERTY_CREATE_SORT_FIELDS_FOR_GROUPSProperty that specifies whether additional sort fields should be created automatically to preserve the integrity of dataset groups, when interactive sorting is performed.protected SortDatasortData
-
Constructor Summary
Constructors Constructor Description SortCommand(JasperReportsContext jasperReportsContext, JRDesignDataset dataset, SortData sortData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidredo()voidundo()
-
-
-
Field Detail
-
PROPERTY_CREATE_SORT_FIELDS_FOR_GROUPS
public static final java.lang.String PROPERTY_CREATE_SORT_FIELDS_FOR_GROUPS
Property that specifies whether additional sort fields should be created automatically to preserve the integrity of dataset groups, when interactive sorting is performed. The groups need to have simple expressions using single field or single variable reference, for this feature to work properly.- See Also:
- Constant Field Values
-
dataset
protected JRDesignDataset dataset
-
sortData
protected SortData sortData
-
-
Constructor Detail
-
SortCommand
public SortCommand(JasperReportsContext jasperReportsContext, JRDesignDataset dataset, SortData sortData)
-
-
Method Detail
-
execute
public void execute() throws CommandException- Specified by:
executein interfaceCommand- Throws:
CommandException
-
-