Class SortCommand
- java.lang.Object
-
- net.sf.jasperreports.interactivity.sort.actions.SortCommand
-
- All Implemented Interfaces:
Serializable
,Command
public class SortCommand extends Object implements Command
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRDesignDataset
dataset
static 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.protected SortData
sortData
-
Constructor Summary
Constructors Constructor Description SortCommand(JasperReportsContext jasperReportsContext, JRDesignDataset dataset, SortData sortData)
-
-
-
Field Detail
-
PROPERTY_CREATE_SORT_FIELDS_FOR_GROUPS
public static final 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:
execute
in interfaceCommand
- Throws:
CommandException
-
-