|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.actionprovider.support.HttpNavigationBarSupport
public class HttpNavigationBarSupport
In the context of the ActionProvider framework, this Support class assists in the registering and retrieval of actions for the NavigationBar.
Field Summary | |
---|---|
static java.lang.String |
FIRST_COLUMN_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the first column when editing is enabled. |
static java.lang.String |
FIRST_ROW_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the first row when editing is enabled. |
static java.lang.String |
GOTO_COLUMN_EDIT_ENABLED_ACTION
The actionType key used to define the goto column action when editing is enabled. |
static java.lang.String |
GOTO_ROW_EDIT_ENABLED_ACTION
The actionType key used to define the goto row action when editing is enabled. |
static java.lang.String |
LAST_COLUMN_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the last column when editing is enabled. |
static java.lang.String |
LAST_ROW_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the last row when editing is enabled. |
static java.lang.String |
NEXT_COLUMN_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the next column when editing is enabled. |
static java.lang.String |
NEXT_ROW_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the next row when editing is enabled. |
static java.lang.String |
PAGE_BACKWARD_COLUMNS_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the previous column page when editing is enabled. |
static java.lang.String |
PAGE_BACKWARD_ROWS_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the previous row page when editing is enabled. |
static java.lang.String |
PAGE_FORWARD_COLUMNS_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the next column page when editing is enabled. |
static java.lang.String |
PAGE_FORWARD_ROWS_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the next row page when editing is enabled. |
static java.lang.String |
PREVIOUS_COLUMN_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the previous column when editing is enabled. |
static java.lang.String |
PREVIOUS_ROW_EDIT_ENABLED_ACTION
The actionType key used to define the action to scroll to the previous row when editing is enabled. |
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.NavigationBarAreaInterface |
---|
COLUMN_GOTO_AREA, COLUMN_SCROLL_BACKWARD_AREA, COLUMN_SCROLL_FORWARD_AREA, EDIT_AREA, ROW_GOTO_AREA, ROW_SCROLL_BACKWARD_AREA, ROW_SCROLL_FORWARD_AREA |
Constructor Summary | |
---|---|
HttpNavigationBarSupport(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 |
defineActionProperties(BaseAction action,
java.lang.String actionType)
Returns an action whose default dynamic attributes have been defined according to their actionType. |
protected java.util.Map |
getActionScopeAttributeMap(java.lang.String actionType,
ActionSupportFilter filter)
Returns mappings for a pre-defined set of Action Attribues keys to their corresponding dynamic values for a specific area and a specific actionType. |
protected int |
getActionStatus(BaseAction action,
ActionSupportFilter filter)
Returns an int value indicating whether the Action is enabled for a specific area as suggested by filter attributes. |
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.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 Action based on the specified actionType or return null if actionType not recognized. |
Methods inherited from class com.sas.actionprovider.support.BaseNavigationBarSupport |
---|
initialize, validArea |
Methods inherited from class com.sas.actionprovider.support.BaseActionProviderSupport |
---|
addDefaultAction, getAction, getActionId, getActionOrderList, getActionProvider, getActions, getActionScopeAttribute, getDefaultAction, getLocale, listActionTypes, listAreaTypes, listDefaultActions, reset, setAction, setActionOrderList, setActionProvider, setLocale |
Field Detail |
---|
public static final java.lang.String FIRST_ROW_EDIT_ENABLED_ACTION
public static final java.lang.String PAGE_BACKWARD_ROWS_EDIT_ENABLED_ACTION
public static final java.lang.String PREVIOUS_ROW_EDIT_ENABLED_ACTION
public static final java.lang.String NEXT_ROW_EDIT_ENABLED_ACTION
public static final java.lang.String PAGE_FORWARD_ROWS_EDIT_ENABLED_ACTION
public static final java.lang.String LAST_ROW_EDIT_ENABLED_ACTION
public static final java.lang.String GOTO_ROW_EDIT_ENABLED_ACTION
public static final java.lang.String FIRST_COLUMN_EDIT_ENABLED_ACTION
public static final java.lang.String PAGE_BACKWARD_COLUMNS_EDIT_ENABLED_ACTION
public static final java.lang.String PREVIOUS_COLUMN_EDIT_ENABLED_ACTION
public static final java.lang.String NEXT_COLUMN_EDIT_ENABLED_ACTION
public static final java.lang.String PAGE_FORWARD_COLUMNS_EDIT_ENABLED_ACTION
public static final java.lang.String LAST_COLUMN_EDIT_ENABLED_ACTION
public static final java.lang.String GOTO_COLUMN_EDIT_ENABLED_ACTION
Constructor Detail |
---|
public HttpNavigationBarSupport(java.lang.Class actionClass)
actionClass
- The class used to instantiate new actions.Method Detail |
---|
protected void createDefaultActions()
createDefaultActions
in class BaseNavigationBarSupport
public BaseAction newActionInstance(java.lang.String areaType, java.lang.String actionType)
newActionInstance
in class BaseActionProviderSupport
areaType
- the key associated with a defined area.actionType
- the key associated with a defined action type.
protected BaseAction defineActionProperties(BaseAction action, java.lang.String actionType)
defineActionProperties
in class BaseNavigationBarSupport
action
- The action object whose properties are to be defined.actionType
- the key associated with a defined action type.
protected java.util.Map getAreaScopeAttributeMap(ActionSupportFilter filter)
BaseNavigationBarSupport
getAreaScopeAttributeMap
in class BaseNavigationBarSupport
filter
- Defines the specific area
protected java.util.Map getActionScopeAttributeMap(java.lang.String actionType, ActionSupportFilter filter)
getActionScopeAttributeMap
in class BaseActionProviderSupport
actionType
- the key associated with a defined action typefilter
- Defines the specific area
protected int getActionStatus(BaseAction action, ActionSupportFilter filter)
ENABLED
VIEWER_DISABLED
AREA_DISABLED
MODEL_TYPE_DISABLED
MODEL_STATE_DISABLED
MODEL_MEMBER_DISABLED
IS_CURRENT_STATE_DISABLED
DISABLED
UNSUPPORTED
getActionStatus
in class BaseActionProviderSupport
action
- The Action to check the status offilter
- Defines the specific area
CommandSupportedInterface
,
CommandStatusInterface
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
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |