|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.commands.relational.MoveColumnCommand
public class MoveColumnCommand
This class implements the move column command.
Field Summary | |
---|---|
protected int |
moveColumn
|
protected com.sas.table.MoveColumnInterface |
moveColumnInterface
|
static java.lang.String |
RB_KEY
|
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 | |
---|---|
MoveColumnCommand()
Default constructor |
|
MoveColumnCommand(int orientation)
Default constructor |
|
MoveColumnCommand(java.lang.String name)
Constructor that accepts a command name |
|
MoveColumnCommand(java.lang.String name,
int orientation)
Constructor that accepts a command name |
|
MoveColumnCommand(java.lang.String name,
java.lang.String actionClass)
Constructor that accepts a command name and an action class type |
|
MoveColumnCommand(java.lang.String name,
java.lang.String actionClass,
int orientation)
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 BaseCommand class |
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 |
getDistanceToMoveColumn()
Returns the distance the column will move, the default is to move the column only one column, but a user can change this if they want to move a column multiple columns at once. |
int |
getMoveColumn()
|
com.sas.table.MoveColumnInterface |
getMoveColumnInterface()
|
int |
getOrientation()
|
void |
setDistanceToMoveColumn(int newDistance)
|
void |
setMoveColumn(int column)
|
void |
setMoveColumnInterface(com.sas.table.MoveColumnInterface moveColumnInterface)
|
void |
setOrientation(int newOrientation)
|
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
protected com.sas.table.MoveColumnInterface moveColumnInterface
protected int moveColumn
Constructor Detail |
---|
public MoveColumnCommand()
public MoveColumnCommand(java.lang.String name)
public MoveColumnCommand(java.lang.String name, java.lang.String actionClass)
public MoveColumnCommand(int orientation)
public MoveColumnCommand(java.lang.String name, int orientation)
public MoveColumnCommand(java.lang.String name, java.lang.String actionClass, int orientation)
Method Detail |
---|
public void execute(java.lang.Object o)
execute
in interface com.sas.util.SimpleCommand
execute
in class BaseCommand
o
- The output stream to which the results of this command should be written.public int getCommandStatus(ActionSupportFilter filter)
getCommandStatus
in interface CommandStatusInterface
filter
- The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)
public void setMoveColumnInterface(com.sas.table.MoveColumnInterface moveColumnInterface)
public com.sas.table.MoveColumnInterface getMoveColumnInterface()
public void setMoveColumn(int column)
public int getMoveColumn()
public void setOrientation(int newOrientation)
public int getOrientation()
public void setDistanceToMoveColumn(int newDistance)
newDistance
- getDistanceToMoveColumn()
public int getDistanceToMoveColumn()
setDistanceToMoveColumn(int)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |