|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionStrategyInterface
This interface is for defining the base API of all ActionStrategy classes used in the ActionProviderFramework.
ActionStrategy objects may do one or all of the following tasks for the Action object to which they are associated.
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
BaseAction.setActionStrategy(com.sas.actionprovider.strategies.ActionStrategyInterface)
Method Summary | |
---|---|
int |
getActionStatus(BaseAction action,
ActionSupportFilter filter)
Returns a status value indicating whether the Action is enabled for a specific area as described by various filter attributes. |
void |
initializeAction(BaseAction action,
java.lang.String areaType,
java.util.Locale locale)
Initializes all default settings for an Action. |
void |
setActionAttributes(BaseAction action,
ActionSupportFilter filter)
Sets all the dynamic attributes of the Action. |
void |
setLocaleDependentDefaultAttributes(BaseAction action,
java.lang.String areaType,
java.util.Locale locale)
Sets the Action's default locale dependent attribute values. |
Method Detail |
---|
void initializeAction(BaseAction action, java.lang.String areaType, java.util.Locale locale)
Initializes all default settings for an Action.
action
- The instance of the Action to be initialized.areaType
- The areaType of the Viewer where the Action will be presented.locale
- The localevoid setLocaleDependentDefaultAttributes(BaseAction action, java.lang.String areaType, java.util.Locale locale)
Sets the Action's default locale dependent attribute values.
action
- The instance of the Action to be initialized.areaType
- The areaType of the Viewer where the Action will be presented.locale
- The localevoid setActionAttributes(BaseAction action, ActionSupportFilter filter)
Sets all the dynamic attributes of the Action.
action
- The Action to set dynamic attribute values on.filter
- The ActionSupportFilter that contains area-specific
information relating to where the Action will be used.int getActionStatus(BaseAction action, ActionSupportFilter filter)
If enabled, the value is:
ActionStatusKeysInterface.ENABLED
If disabled, the value may be one of the following values which indicate why the Action is disabled.
ActionStatusKeysInterface.VIEWER_DISABLED
ActionStatusKeysInterface.AREA_DISABLED
ActionStatusKeysInterface.MODEL_TYPE_DISABLED
ActionStatusKeysInterface.MODEL_STATE_DISABLED
ActionStatusKeysInterface.MODEL_MEMBER_DISABLED
ActionStatusKeysInterface.IS_CURRENT_STATE_DISABLED
ActionStatusKeysInterface.DISABLED
ActionStatusKeysInterface.UNSUPPORTED
The status of an Action with a CommandSupportedInterface command
whose isSupported()
method returns false will have the ActionStatusKeysInterface.UNSUPPORTED
status bit set.
The status of an Action with a CommandStatusInterface command
will have the status bit value returned by the command's
getCommandStatus()
method.
The Action's status may also be set with bit values that are determined by the support class in addition to a command.
action
- The action for which status is to be determined.filter
- The ActionSupportFilter that encapsulates all information
describing the specific area.
CommandSupportedInterface
,
CommandStatusInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |