|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.commands.relational.SortCommand
public class SortCommand
The abstract class for sorting commands.
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Fields inherited from interface com.sas.util.SortDirectionInterface |
|---|
ASCENDING, DESCENDING, NOT_SORTED |
| Fields inherited from interface com.sas.actionprovider.CommandStatusInterface |
|---|
DISABLED, ENABLED, IS_CURRENT_STATE_DISABLED, MODEL_MEMBER_DISABLED, MODEL_STATE_DISABLED, MODEL_TYPE_DISABLED |
| Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
|---|
COMMAND_NAME_PREFIX |
| Constructor Summary | |
|---|---|
SortCommand()
Default constructor |
|
SortCommand(int direction)
Default constructor |
|
SortCommand(java.lang.String name)
Constructor that accepts a command name |
|
SortCommand(java.lang.String name,
int direction)
Constructor that accepts a command name |
|
SortCommand(java.lang.String name,
int direction,
boolean multipleColumnSorting)
Constructor that accepts a command name |
|
SortCommand(java.lang.String name,
int direction,
int maxSortableColumns)
Constructor that accepts a command name |
|
SortCommand(java.lang.String name,
int direction,
int maxSortableColumns,
boolean multipleColumnSorting)
Constructor that accepts a command name |
|
SortCommand(java.lang.String name,
java.lang.String actionClass)
Constructor that accepts a command name and an action class type |
|
SortCommand(java.lang.String name,
java.lang.String actionClass,
int direction,
int maxSortableColumns,
boolean multipleColumnSorting)
Constructor that accepts a command name and an action class type |
|
| Method Summary | |
|---|---|
void |
execute(java.lang.Object o)
This method implements the execute method on the CommandInterface, which is not implemented by the abstract BaseSortCommand class |
int |
getColumn()
|
int |
getCommandStatus(ActionSupportFilter filter)
Returns a int value indicating whether the command is enabled for the given area as specified by the current area information encapsulate in the ActionSupportFilter. |
int |
getDirection()
|
int |
getMaxSortableColumns()
|
com.sas.table.SortableInterface |
getModel()
|
protected boolean |
isColumnSortable(int column,
com.sas.table.SortableInterface model)
Determines if the given column is allowed to be sorted. |
protected boolean |
isColumnSorted(int column,
int direction,
com.sas.table.SortableInterface model)
Determines if the given column is allowed to be sorted. |
protected boolean |
isColumnSorted(int column,
com.sas.table.SortableInterface model)
Determines if the given column is allowed to be sorted. |
boolean |
isDisabledIfCurrentState()
|
boolean |
isMultipleColumnSortingEnabled()
|
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported for the area specified on the ActionSupportFilter argument. |
void |
setColumn(int column)
|
void |
setDirection(int direction)
|
void |
setDisabledIfCurrentState(boolean disabledIfCurrentState)
|
void |
setMaxSortableColumns(int maxSortableColumns)
|
void |
setModel(com.sas.table.SortableInterface model)
|
void |
setMultipleColumnSortingEnabled(boolean mulitpleColumnSorting)
|
| Methods inherited from class com.sas.commands.BaseCommand |
|---|
getLocale, getName, getNextCommandName, getText, isExecutable, isUndoable, setLocale, setName, setText, undo |
| Methods inherited from class com.sas.entities.BaseEntity |
|---|
clone, containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, removeAttribute, reset, sameEntity, setAttribute, setAttributes, setEntityKey, toString |
| Methods inherited from interface com.sas.entities.BaseEntityValueInterface |
|---|
getAttribute, setAttribute |
| Methods inherited from interface com.sas.util.Command |
|---|
clone |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public SortCommand()
public SortCommand(int direction)
public SortCommand(java.lang.String name)
public SortCommand(java.lang.String name,
int direction)
public SortCommand(java.lang.String name,
int direction,
int maxSortableColumns)
public SortCommand(java.lang.String name,
int direction,
boolean multipleColumnSorting)
public SortCommand(java.lang.String name,
int direction,
int maxSortableColumns,
boolean multipleColumnSorting)
public SortCommand(java.lang.String name,
java.lang.String actionClass)
name - the name of this commandactionClass - the name of the action class for this command
public SortCommand(java.lang.String name,
java.lang.String actionClass,
int direction,
int maxSortableColumns,
boolean multipleColumnSorting)
name - the name of this commandactionClass - the name of the action class for this command| Method Detail |
|---|
public void setModel(com.sas.table.SortableInterface model)
public com.sas.table.SortableInterface getModel()
public void setColumn(int column)
public int getColumn()
public void setDirection(int direction)
public int getDirection()
public void setMaxSortableColumns(int maxSortableColumns)
public int getMaxSortableColumns()
public void setMultipleColumnSortingEnabled(boolean mulitpleColumnSorting)
public boolean isMultipleColumnSortingEnabled()
public void setDisabledIfCurrentState(boolean disabledIfCurrentState)
public boolean isDisabledIfCurrentState()
public void execute(java.lang.Object o)
execute in interface com.sas.util.SimpleCommandexecute in class BaseCommando - The output stream to which the results of this command should be written.public boolean isSupported(ActionSupportFilter actionFilter)
isSupported in interface CommandSupportedInterfaceactionFilter - The object that describes the current area.
BaseAction.setReturnStatus(int)
protected boolean isColumnSortable(int column,
com.sas.table.SortableInterface model)
protected boolean isColumnSorted(int column,
int direction,
com.sas.table.SortableInterface model)
protected boolean isColumnSorted(int column,
com.sas.table.SortableInterface model)
public int getCommandStatus(ActionSupportFilter filter)
getCommandStatus in interface CommandStatusInterfacefilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||