com.sas.actionprovider.support.dataselectors
Class HttpMenuBarSupport

com.sas.actionprovider.support.dataselectors.HttpMenuBarSupport
All Implemented Interfaces:
MenuBarActionTypesInterface, MenuBarAreaInterface

public class HttpMenuBarSupport

In the context of the ActionProvider framework, this Support class assists in the registering and retrieval of actions for the MenuBar component.

Since:
3.1

Field Summary
 
Fields inherited from class com.sas.actionprovider.support.dataselectors.HttpRelationalMenuBarSupport
ATTR_TITLE, MODE, MODEL, REFERRING_URI, SELECTOR_KEY, VIEWER
 
Fields inherited from class com.sas.actionprovider.support.dataselectors.BaseMenuBarSupport
RB_KEY
 
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.dataselectors.MenuBarAreaInterface
SELECTOR_AREA
 
Fields inherited from interface com.sas.actionprovider.support.dataselectors.MenuBarActionTypesInterface
ADVANCED_FILTER_SELECTOR_ACTION, DATAITEM_SELECTOR_ACTION, EDIT_MENU_ACTION, EXCEPTION_HIGHLIGHTING_SELECTOR_ACTION, EXPORT_TO_ACTION, EXPORT_TO_EXCEL_ACTION, FILTER_AND_RANK_SELECTOR_ACTION, FIND_SELECTOR_ACTION, FORMAT_ACTION, GRAPH_PROPERTY_SELECTOR_ACTION, MEMBER_PROPERTIES_SELECTOR_ACTION, PERCENT_CALCULATIONS_SELECTOR_ACTION, RANKING_ACTION, RESTRICTED_FILTER_SELECTOR_ACTION, SIMPLE_CALCULATED_ITEM_SELECTOR_ACTION, SORT_SELECTOR_ACTION, TOTALS_ACTION
 
Constructor Summary
HttpMenuBarSupport(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 getFindSelectorAction()
          Returns the default Find Selector action used internally by this support class.
protected  java.util.Map initializeShortActionTypeMap()
          This method is called by the constructor and used to initiallize the actionTypeToShortActionTypeMap map.
 BaseAction newActionInstance(java.lang.String areaType, java.lang.String actionType)
          Return a newly instantiated default HttpAction based on the specified areaType and actionType or return null if actionType not recognized.
protected  void setFindSelectorAction(BaseAction findSelectorAction)
          Sets the default Find Selector action to be used internally by this support class.
 
Methods inherited from class com.sas.actionprovider.support.dataselectors.HttpRelationalMenuBarSupport
getActionScopeAttribute
 
Methods inherited from class com.sas.actionprovider.support.dataselectors.BaseMenuBarSupport
getExceptionHighlightingAction, getSortAction, initialize, setExceptionHighlightingAction, setSortAction
 
Methods inherited from class com.sas.actionprovider.support.BaseActionProviderSupport
addDefaultAction, getAction, getActionId, getActionOrderList, getActionProvider, getActions, getDefaultAction, getLocale, listActionTypes, listAreaTypes, listDefaultActions, reset, setAction, setActionOrderList, setActionProvider, setLocale
 

Constructor Detail

HttpMenuBarSupport

public HttpMenuBarSupport(java.lang.Class actionClass)
Constructor

Parameters:
actionClass - The class used to instantiate new actions.
Method Detail

newActionInstance

public BaseAction newActionInstance(java.lang.String areaType,
                                    java.lang.String actionType)
Return a newly instantiated default HttpAction based on the specified areaType and actionType or return null if actionType not recognized.

Overrides:
newActionInstance in class HttpRelationalMenuBarSupport
Parameters:
areaType - the key associated with a defined area type
actionType - the key associated with a defined action type.
Returns:
a new action of the specified type or null if the type is not recognized.

createDefaultActions

protected void createDefaultActions()
Initializes the actionClass property and creates the default actions that this class supports.

Overrides:
createDefaultActions in class HttpRelationalMenuBarSupport

getFindSelectorAction

protected BaseAction getFindSelectorAction()
Returns the default Find Selector action used internally by this support class.

Returns:
the default Find Selector action.

setFindSelectorAction

protected void setFindSelectorAction(BaseAction findSelectorAction)
Sets the default Find Selector action to be used internally by this support class.

Parameters:
findSelectorAction - the action to be used as the default Find selector action.

initializeShortActionTypeMap

protected java.util.Map initializeShortActionTypeMap()
This method is called by the constructor and used to initiallize the 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.

Overrides:
initializeShortActionTypeMap in class HttpRelationalMenuBarSupport



Copyright © 2009 SAS Institute Inc. All Rights Reserved.