|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.actionprovider.support.tableview.SwingTableViewSupport
public class SwingTableViewSupport
In the context of the ActionProvider framework, this Support class assists in the registering and retrieval of actions for relational swing table view components such as the TableView.
Field Summary |
---|
Fields inherited from class com.sas.actionprovider.support.tableview.BaseTableViewSupport |
---|
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.tableview.SwingTableViewAreaInterface |
---|
DRAG_COLUMN_AREA, TOOLBAR_AREA |
Fields inherited from interface com.sas.actionprovider.support.tableview.TableViewAreaInterface |
---|
COLUMN_HEADER_AREA, DATA_CELL_AREA, EDIT_COLUMN_AREA, EDIT_ROW_AREA, ROW_HEADER_AREA, TITLE_AREA |
Constructor Summary | |
---|---|
SwingTableViewSupport(java.lang.Class actionClass)
Constructor |
Method Summary | |
---|---|
protected void |
createDefaultActions()
Initializes the actionClass property and creates the default actions that this class supports. |
int |
getActionCount(ActionSupportFilter actionFilter,
java.lang.String actionType)
Returns the number of Actions of a particular actionType that are needed for the area. |
protected java.util.Map |
getActionScopeAttributeMap(java.lang.String actionType,
ActionSupportFilter filter)
Returns mappings for a pre-defined set of Action attribute keys to their corresponding dynamic values for a specific area and a specific 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 ActionOrderList |
getDataCellOrderList(int type)
|
protected ActionOrderList |
getHeaderOrderList(int type)
|
protected ActionOrderList |
getToolBarOrderList(int type)
|
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 void |
registerDataCellActions(java.lang.String areaType)
|
protected void |
registerDragColumnActions(java.lang.String areaType)
|
protected void |
registerDynamicValueInfo()
Registers, via addDynamicValueInfo method, the dynamic value information for different areas. |
protected void |
registerHeaderActions(java.lang.String areaType)
|
protected void |
registerToolBarActions(java.lang.String areaType)
|
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.tableview.BaseTableViewSupport |
---|
createAndRegisterAction, getCustomAttributeValue, initialize |
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 |
Constructor Detail |
---|
public SwingTableViewSupport(java.lang.Class actionClass)
actionClass
- The class used to instantiate new actions.Method Detail |
---|
protected void registerDynamicValueInfo()
registerDynamicValueInfo
in class BaseTableViewSupport
public int getActionCount(ActionSupportFilter actionFilter, java.lang.String actionType)
DynamicActionCountInterface
getActionCount
in interface DynamicActionCountInterface
actionFilter
- actionType
-
protected void createDefaultActions()
createDefaultActions
in class BaseTableViewSupport
protected void registerToolBarActions(java.lang.String areaType)
protected void registerHeaderActions(java.lang.String areaType)
protected void registerDataCellActions(java.lang.String areaType)
protected void registerDragColumnActions(java.lang.String areaType)
protected ActionOrderList getDataCellOrderList(int type)
protected ActionOrderList getToolBarOrderList(int type)
protected ActionOrderList getHeaderOrderList(int type)
public BaseAction newActionInstance(java.lang.String areaType, java.lang.String actionType)
newActionInstance
in class BaseActionProviderSupport
areaType
- the key associated with a defined area type.actionType
- the key associated with a defined action type.
protected java.util.Map getActionScopeAttributeMap(java.lang.String actionType, ActionSupportFilter filter)
BaseActionProviderSupport
getActionScopeAttributeMap
in class BaseActionProviderSupport
filter
- Defines the specific area.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 BaseTableViewSupport
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)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |