|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.actionprovider.support.graphics.HttpGraphSupport
public class HttpGraphSupport
In the context of the ActionProvider framework, this Support class assists in the registering and retrieval of actions for graph transformation bean viewer components.
Field Summary | |
---|---|
static java.lang.String |
ANALYSIS_LABEL_ACTION
|
static java.lang.String |
CATEGORIZATION_LABEL_ACTION
The actionType key used to define the categorization label actions. |
static java.lang.String |
RB_KEY
|
static java.lang.String |
RESIZE_GRAPH_ACTION
The actionType key used to define the graph resize actions. |
static java.lang.String |
ZOOM_IN_GRAPH_ACTION
|
static java.lang.String |
ZOOM_OUT_GRAPH_ACTION
|
Fields inherited from class com.sas.actionprovider.support.graphics.BaseGraphSupport |
---|
ASCENDING_SORT_ACTION, DESCENDING_SORT_ACTION |
Fields inherited from class com.sas.actionprovider.support.BaseActionProviderSupport |
---|
AREA_DISABLED, AREA_VALUE_ATTRKEY, DISABLED, ENABLED, IS_CURRENT_STATE_DISABLED, MODEL_MEMBER_DISABLED, MODEL_STATE_DISABLED, MODEL_TYPE_DISABLED, NON_SPECIFIC_AREA, UNSUPPORTED, VIEWER_DISABLED |
Fields inherited from interface com.sas.actionprovider.support.graphics.GraphAreaInterface |
---|
ANALYSIS_LABEL_AREA, CATEGORIZATION_LABEL_AREA, CATEGORIZATION_VALUE_AREA, DATA_VALUE_AREA |
Constructor Summary | |
---|---|
HttpGraphSupport(java.lang.Class actionClass)
Constructor |
Method Summary | |
---|---|
protected void |
createDefaultActions()
Initializes the actionClass property and creates the default actions that this class supports. |
protected BaseAction |
defineActionAttributes(BaseAction action,
java.lang.String actionType)
Returns an action whose default dynamic attributes have been defined according to their actionType. |
protected java.util.Map |
getAreaScopeAttributeMap(ActionSupportFilter filter)
Returns mappings for a pre-defined set of Action attribute keys to their corresponding dynamic values for a specific area. |
protected java.lang.Object |
getCustomAttributeValue(java.lang.String attributeName,
ActionSupportFilter filter)
Returns a value for a specific custom attribute. |
protected java.util.Map |
initializeShortActionTypeMap()
This method is called by the constructor and used to initiallize the actionTypeToShortActionTypeMap map. |
BaseAction |
newActionInstance(java.lang.String actionType)
Return a newly instantiated default Action based on the specified actionType or return null if actionType not recognized. |
BaseAction |
newActionInstance(java.lang.String areaType,
java.lang.String actionType)
Return a newly instantiated default Action based on the specified actionType or return null if actionType not recognized. |
protected boolean |
validArea(Area area,
ActionSupportFilter filter)
Validates that the given Area's 'type' and, if specified, its 'value' constraints are met by the information provided on the action filter. |
Methods inherited from class com.sas.actionprovider.support.graphics.BaseGraphSupport |
---|
initialize |
Methods inherited from class com.sas.actionprovider.support.BaseActionProviderSupport |
---|
addDefaultAction, getAction, getActionId, getActionOrderList, getActionProvider, getActions, getActionScopeAttribute, getActionScopeAttributeMap, getDefaultAction, getLocale, listActionTypes, listAreaTypes, listDefaultActions, reset, setAction, setActionOrderList, setActionProvider, setLocale |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final java.lang.String CATEGORIZATION_LABEL_ACTION
public static final java.lang.String ANALYSIS_LABEL_ACTION
public static final java.lang.String RESIZE_GRAPH_ACTION
public static final java.lang.String ZOOM_IN_GRAPH_ACTION
public static final java.lang.String ZOOM_OUT_GRAPH_ACTION
Constructor Detail |
---|
public HttpGraphSupport(java.lang.Class actionClass)
actionClass
- The class used to instantiate new actions.Method Detail |
---|
protected BaseAction defineActionAttributes(BaseAction action, java.lang.String actionType)
action
- The action object whose properties are to be defined.actionType
- the key associated with a defined action type.
public BaseAction newActionInstance(java.lang.String actionType)
actionType
- the key associated with a defined action type.
public BaseAction newActionInstance(java.lang.String areaType, java.lang.String actionType)
newActionInstance
in class BaseActionProviderSupport
areaType
- actionType
- the key associated with a defined action type.
protected void createDefaultActions()
createDefaultActions
in class BaseGraphSupport
protected java.util.Map getAreaScopeAttributeMap(ActionSupportFilter filter)
BaseActionProviderSupport
getAreaScopeAttributeMap
in class BaseActionProviderSupport
filter
- Defines the specific area.
protected boolean validArea(Area area, ActionSupportFilter filter)
validArea
in class BaseActionProviderSupport
area
- The Area object that may or may not specify certain area 'values'.actionFilter
- the ActionSupportFilter that the component passed as an
argument on the getActions() method.
BaseActionProviderSupport.setAction(com.sas.actionprovider.BaseAction, java.util.Collection, com.sas.actionprovider.Area)
,
BaseActionProviderSupport.getActions(com.sas.actionprovider.ActionSupportFilter)
protected java.util.Map initializeShortActionTypeMap()
actionTypeToShortActionTypeMap
map.
This map should contain the ActionType as the key and the new short name
as the value. The short names are used to generate ids for HttpActions.
initializeShortActionTypeMap
in class BaseActionProviderSupport
protected java.lang.Object getCustomAttributeValue(java.lang.String attributeName, ActionSupportFilter filter)
BaseActionProviderSupport
If a support class can derive custom attribute values, then it should override this method.
Otherwise, this method returns null.
getCustomAttributeValue
in class BaseActionProviderSupport
attributeName
- The name of the custom attributefilter
- The object that encapsulates all the specific query information.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |