com.sas.commands.relational
Class GotoRowCommand

com.sas.commands.relational.GotoRowCommand
All Implemented Interfaces:
CommandSupportedInterface, DynamicAttributeCommandInterface, BaseEntityInterface, BaseEntityValueInterface, EntityKeyInterface, com.sas.lang.StringDataInterface, com.sas.PublicClonable, com.sas.util.Command, com.sas.util.SimpleCommand, java.lang.Cloneable, java.rmi.Remote

public class GotoRowCommand

This class implements scrolling to a given row command.


Field Summary
 
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface
COMMAND_NAME_PREFIX
 
Constructor Summary
GotoRowCommand()
          Default constructor
GotoRowCommand(java.lang.String name)
          Constructor that accepts a command name
GotoRowCommand(java.lang.String name, java.lang.String actionClass)
          Constructor that accepts a command name and an action class type
 
Method Summary
 int getGotoRow()
          Gets the value of the goto row field.
 boolean isSupported(ActionSupportFilter actionFilter)
          Returns a boolean indicating whether the command is supported for the area specified on the ActionSupportFilter argument.
 void scrollExecute(java.lang.Object out)
          This method is called by the execute() method on the BaseScrollCommand.
 void setGotoRow(int row)
          Sets the value of the goto row field.
 
Methods inherited from class com.sas.commands.relational.BaseScrollCommand
execute, getModel, setModel
 
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
 

Constructor Detail

GotoRowCommand

public GotoRowCommand()
Default constructor


GotoRowCommand

public GotoRowCommand(java.lang.String name)
Constructor that accepts a command name

Parameters:
name - the name of this command

GotoRowCommand

public GotoRowCommand(java.lang.String name,
                      java.lang.String actionClass)
Constructor that accepts a command name and an action class type

Parameters:
name - the name of this command
actionClass - the name of the action class for this command
Method Detail

setGotoRow

public void setGotoRow(int row)
Sets the value of the goto row field.

Parameters:
row - the value of the goto row field

getGotoRow

public int getGotoRow()
Gets the value of the goto row field. Returns 0 if the goto row field is not displayed.

Returns:
the value of the goto row field

scrollExecute

public void scrollExecute(java.lang.Object out)
This method is called by the execute() method on the BaseScrollCommand. This method performs the scroll operation.

Overrides:
scrollExecute in class BaseScrollCommand
Parameters:
out - The output stream to which the results of this command should be written.

isSupported

public boolean isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported for the area specified on the ActionSupportFilter argument. The implementation on this class always return true. Extensions of this class should override this method if there are conditions where the command may not be available or supported.

Specified by:
isSupported in interface CommandSupportedInterface
Specified by:
isSupported in class BaseScrollCommand
Parameters:
actionFilter - The object that describes the current area.
Returns:
a boolean indicating whether the command is supported.
See Also:
BaseAction.setReturnStatus(int)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.