com.sas.commands.relational
Class AddRowCommand
java.lang.Object
|
+--com.sas.entities.BaseEntity
|
+--com.sas.commands.BaseCommand
|
+--com.sas.commands.relational.AddRowCommand
- All Implemented Interfaces:
- BaseEntityInterface, BaseEntityValueInterface, Command, CommandSupportedInterface, ContentsChangedInterface, DynamicAttributeCommandInterface, EntityKeyInterface, PublicClonable, SimpleCommand, StringDataInterface
- public class AddRowCommand
- extends BaseCommand
- implements ContentsChangedInterface, CommandSupportedInterface
This class implements the hold Row command.
|
Constructor Summary |
AddRowCommand()
Default constructor |
AddRowCommand(String name)
Constructor that accepts a command name |
AddRowCommand(String name,
String actionClass)
Constructor that accepts a command name and an action class type |
|
Method Summary |
void |
execute(Object o)
This method implements the execute method on the CommandInterface, which is not
implemented by the abstract BaseCommand class |
HashMap |
getEventInfo()
Returns a Map of event keys to event values.
|
Object |
getEventSource()
Returns the target of this command which is the implicit source
of the Event that will be fired due to the changed state of the
target. |
int |
getRow()
|
TableView |
getTable()
|
boolean |
isContentsChanged()
Return a boolean indicating whether the operation carried
out during the command's last execution caused the command's
target object to change. |
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported
for the area specified on the ActionSupportFilter argument. |
void |
setEventSource(Object eventSource)
|
void |
setRow(int row)
|
void |
setTable(TableView table)
|
| 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 |
RB_KEY
public static final String RB_KEY
table
protected TableView table
row
protected int row
AddRowCommand
public AddRowCommand()
- Default constructor
AddRowCommand
public AddRowCommand(String name)
- Constructor that accepts a command name
AddRowCommand
public AddRowCommand(String name,
String actionClass)
- Constructor that accepts a command name and an action class type
execute
public void execute(Object o)
- This method implements the execute method on the CommandInterface, which is not
implemented by the abstract BaseCommand class
- Overrides:
execute in class BaseCommand
- Following copied from class:
com.sas.commands.BaseCommand
- Parameters:
o - The output stream to which the results of this command should be written.
isContentsChanged
public boolean isContentsChanged()
- Description copied from interface:
ContentsChangedInterface
- Return a boolean indicating whether the operation carried
out during the command's last execution caused the command's
target object to change.
- Specified by:
isContentsChanged in interface ContentsChangedInterface
- Following copied from interface:
com.sas.commands.ContentsChangedInterface
- Returns:
- boolean indicating whether the command's target changed.
getEventInfo
public HashMap getEventInfo()
- Description copied from interface:
ContentsChangedInterface
- Returns a Map of event keys to event values.
The keys and values on the map are dependent on the command
and the type of target object that it operates on.
- Specified by:
getEventInfo in interface ContentsChangedInterface
- Following copied from interface:
com.sas.commands.ContentsChangedInterface
- Returns:
- a Map of event keys to event values.
getEventSource
public Object getEventSource()
- Description copied from interface:
ContentsChangedInterface
- Returns the target of this command which is the implicit source
of the Event that will be fired due to the changed state of the
target.
- Specified by:
getEventSource in interface ContentsChangedInterface
- Following copied from interface:
com.sas.commands.ContentsChangedInterface
- Returns:
- the target Object of this command.
setEventSource
public void setEventSource(Object eventSource)
isSupported
public boolean isSupported(ActionSupportFilter actionFilter)
- Returns a boolean indicating whether the command is supported
for the area specified on the ActionSupportFilter argument.
- Specified by:
isSupported in interface CommandSupportedInterface
- Parameters:
actionFilter - The object that describes the current area.- Returns:
- a boolean indicating whether the command is supported.
setTable
public void setTable(TableView table)
getTable
public TableView getTable()
setRow
public void setRow(int row)
getRow
public int getRow()
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 01:50:56