***  This class is subject to change.  ***

com.sas.swing.visuals.tableview.actions
Class SelectorAction

com.sas.swing.visuals.tableview.actions.SelectorAction
All Implemented Interfaces:
ActionStatusKeysInterface, SupplementalPropertyKeysInterface, BaseEntityInterface, BaseEntityValueInterface, EntityKeyInterface, java.awt.event.ActionListener, java.lang.Cloneable, java.rmi.Remote, java.util.EventListener, javax.swing.Action

public class SelectorAction

The SelectorAction class is a base class for all selectors to use.

Since:
3.0

Field Summary
static java.lang.String RB_KEY
           
 
Fields inherited from interface com.sas.swing.util.Action
ALIGNMENT_CENTER, ALIGNMENT_LEADING, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, ALIGNMENT_TRAILING, ALTERNATE_TEXT, COMMAND_CLASS, DISABLED_IMAGE_KEY, GROUP_NAME, IMAGE_KEY, LABEL, LARGE_DISABLED_ICON, LARGE_DISABLED_ICON_NAME, LARGE_ICON, LARGE_ICON_NAME, LONG_DISABLED_DESCRIPTION, LONG_NAME, MNEMONIC_INDEX, ROLLOVER_ICON_NAME, ROLLOVER_IMAGE_KEY, SHORT_DISABLED_DESCRIPTION, SMALL_DISABLED_ICON, SMALL_DISABLED_ICON_NAME, SMALL_ICON_NAME, STYLE_MAP, TARGET, TEXT_ALIGNMENT, TYPE, TYPE_BOOLEAN, TYPE_NORMAL, URL
 
Fields inherited from interface com.sas.actionprovider.ActionStatusKeysInterface
AREA_DISABLED, DISABLED, ENABLED, IS_CURRENT_STATE_DISABLED, MODEL_MEMBER_DISABLED, MODEL_STATE_DISABLED, MODEL_TYPE_DISABLED, UNSUPPORTED, VIEWER_DISABLED
 
Fields inherited from interface com.sas.actionprovider.SupplementalPropertyKeysInterface
COMMAND, CUSTOM, DYNAMIC, ENCODE, EXTERNAL
 
Constructor Summary
SelectorAction()
          Default constructor
SelectorAction(BaseCommand command)
          Default constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Executes the command with any dynamic properties that are also encapsulated by this Action.
 DynamicAttributeCommandInterface getCommand()
          Returns this Action's command instance.
 
Methods inherited from class com.sas.actionprovider.BaseAction
addPropertyChangeListener, applyCommandAttributes, clone, executeCommand, fireEvent, getActionStrategy, getActionType, getAttributeDescriptor, getAttributeDescriptors, getReturnStatus, getValue, isCustom, performAction, putValue, removePropertyChangeListener, setActionStrategy, setActionType, setAttribute, setCommand, setCustom, setReturnStatus
 
Methods inherited from class com.sas.entities.BaseEntity
containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, sameEntity, setAttribute, setAttributes, setEntityKey, toString
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values
Constructor Detail

SelectorAction

public SelectorAction()
Default constructor


SelectorAction

public SelectorAction(BaseCommand command)
Default constructor

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Executes the command with any dynamic properties that are also encapsulated by this Action. If an exception is thrown when the command is executed, it will be caught here and displayed to the user using the instance of the error handler that is set.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class TableViewAction
Parameters:
event - The event which indicates that a component-defined action occured. This high-level event is generated by a component (such as a Button) when the component-specific action occurs (such as being pressed). This parameter is not referenced in this method's implementation.

getCommand

public DynamicAttributeCommandInterface getCommand()
Returns this Action's command instance. If there is a non-null selector attribute set on the Action, then the command is acquired from that selector's panel. Otherwise, the current value of the Action's command attribute is returned.

The command is the object that gets executed when a user performs an Action.

Overrides:
getCommand in class BaseAction
Returns:
an Action's command instance.
See Also:
BaseAction.setCommand(com.sas.commands.DynamicAttributeCommandInterface)

***  This class is subject to change.  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.