com.sas.actionprovider.strategies.relational
Class BaseRelationalStrategy

com.sas.actionprovider.strategies.relational.BaseRelationalStrategy
All Implemented Interfaces:
ActionStatusKeysInterface, ActionStrategyInterface
Direct Known Subclasses:
BaseColumnHeaderStrategy, BaseDataCellStrategy, BaseEditEnabledStrategy, BaseMoveColumnStrategy, BaseRelationalModelStrategy, BaseTableStrategy, ColumnHeaderStrategy, DefaultColumnHeaderStrategy, DefaultDataCellStrategy, HoldRowMenuStrategy, MoveColumnMenuStrategy

public abstract class BaseRelationalStrategy


Field Summary
static java.lang.String AREA_VALUE_ATTRKEY
           
static java.lang.String COLUMN
           
static java.lang.String MODEL
           
static java.lang.String ROW
           
static java.lang.String SORT_ASCENDING_IMAGE
           
static java.lang.String SORT_DESCENDING_IMAGE
           
static java.lang.String TABLE
           
 
Fields inherited from class com.sas.actionprovider.strategies.BaseActionStrategy
TEMPLATE_DELIMITER
 
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
 
Constructor Summary
BaseRelationalStrategy()
          Default constructor.
BaseRelationalStrategy(boolean swing, RelationalActionUtil util)
          Constructor for specifying type ( swing/http ) of strategy object.
 
Method Summary
protected  void addDynamicValueInfo(java.lang.String valueName, java.lang.String methodName, java.lang.String filterAlias)
           Register the information for determining a dynamic value.
protected  java.lang.Object getCustomAttributeValue(java.lang.String attributeName, ActionSupportFilter filter)
          Returns a value for a specific custom attribute.
protected  void initialize()
           Initialize this strategy object.
 void setLabelAndMnemonicOnAction(BaseAction action, java.lang.String label)
           
protected  void setUtilObject(java.lang.Object util)
          Validates that the utilObject set on BaseActionStrategy is an instance of RelationalActionUtil.
 
Methods inherited from class com.sas.actionprovider.strategies.BaseActionStrategy
addDynamicValueInfo, addDynamicValueInfo, getActionStatus, getDynamicValue, getUtilObject, initializeAction, initializeActionAttributes, isSwing, setActionAttributes, setLocaleDependentDefaultAttributes, setSwing
 

Field Detail

TABLE

public static final java.lang.String TABLE
See Also:
Constant Field Values

COLUMN

public static final java.lang.String COLUMN
See Also:
Constant Field Values

ROW

public static final java.lang.String ROW
See Also:
Constant Field Values

MODEL

public static final java.lang.String MODEL
See Also:
Constant Field Values

AREA_VALUE_ATTRKEY

public static final java.lang.String AREA_VALUE_ATTRKEY
See Also:
Constant Field Values

SORT_ASCENDING_IMAGE

public static final java.lang.String SORT_ASCENDING_IMAGE
See Also:
Constant Field Values

SORT_DESCENDING_IMAGE

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

BaseRelationalStrategy

public BaseRelationalStrategy()
Default constructor. Calls the other constructor for specifying strategy type.


BaseRelationalStrategy

public BaseRelationalStrategy(boolean swing,
                              RelationalActionUtil util)
Constructor for specifying type ( swing/http ) of strategy object.

Parameters:
swing - boolean indicating whether the strategy will be used in a swing environment. If false, the strategy is http type.
Method Detail

addDynamicValueInfo

protected void addDynamicValueInfo(java.lang.String valueName,
                                   java.lang.String methodName,
                                   java.lang.String filterAlias)

Register the information for determining a dynamic value.

This method is a convenient alternative to the four argument version implemented on BaseActionStrategy in that it always passes the util object as the methodObject argument.

Parameters:
valueName - The name of the dynamic value.
methodName - The name of the method to call on the methodObject when determining this value dynamically. If null, the dynamic value is considered to be available directly from the ActionSupport filter.
filterAlias - The name of the attribute on the filter. If true, the values of the methodName and methodObject parameters are inconsequential.

initialize

protected void initialize()

Initialize this strategy object.

Via the addDynamicValueInfo(java.lang.String, java.lang.String, java.lang.String) method, this method registers the information for dynamic values that are available in all OLAP areas:

Overrides:
initialize in class BaseActionStrategy
See Also:
#setReturnStatus

setUtilObject

protected void setUtilObject(java.lang.Object util)
Validates that the utilObject set on BaseActionStrategy is an instance of RelationalActionUtil.

Overrides:
setUtilObject in class BaseActionStrategy
Parameters:
util - The utilObject to validate

getCustomAttributeValue

protected java.lang.Object getCustomAttributeValue(java.lang.String attributeName,
                                                   ActionSupportFilter filter)
Returns a value for a specific custom attribute.

If a support class can derive custom attribute values, then it should override this method.

This base implementation always returns null.

Overrides:
getCustomAttributeValue in class BaseActionStrategy
Parameters:
attributeName - The name of the custom attribute
filter - The object that encapsulates all the specific query information.
Returns:
a value for a specific custom attribute.

setLabelAndMnemonicOnAction

public void setLabelAndMnemonicOnAction(BaseAction action,
                                        java.lang.String label)
Parameters:
action -
label -



Copyright © 2009 SAS Institute Inc. All Rights Reserved.