|
Components |
|
| |||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ActionProviderViewInterface | The base interface for viewer components that acquire their Actions via the ActionProvider Framework (APF). |
ActionStatusKeysInterface | This interface defines the keys used to specify the status of a particular Action during the acquisition phase. |
CommandStatusInterface | This interface is implemented by commands that may not enabled under certain conditions and whose users need to know this status prior to command execution or Action rendering. |
CommandSupportedInterface | This interface is implemented by commands that are not enabled under certain conditions and whose users need to know this status prior to command execution or Action rendering. |
HttpActionProviderInterface | The interface is implemented by all Transformation Bean Components that need
to hold a reference to an HttpActionProvider object. |
HttpActionProviderViewInterface | The interface required for all Transformation Bean Components that acquire their Actions via the ActionProvider Framework (APF). |
SelectorActionInterface | Extends the Action interface with some additional methods for identifying selector actions. |
SupplementalPropertyKeysInterface | This interface defines the keys used to specify the status of a particular Action during the acquisition phase. |
SwingActionProviderViewInterface | The interface required for all Swing components that acquire their Actions via the ActionProvider Framework (APF). |
URLTemplateViewInterface | The interface required for all ActionProvider view components that submit actions via a Form. |
Class Summary | |
---|---|
ActionAttributeDescriptor | An implementation of the AttributeDescriptorInterface for the Action Provider Framework. |
ActionList | Viewer components acquire ActionList objects when they query an ActionProvider for Actions. |
ActionOrderList | These lists are the templates that determine the content, order and structure
of the ActionLists that are presented
by viewer components. |
ActionProviderEvent | ActionProviderEvent is fired by HttpActionProvider or SwingActionProvider whenever a command is executed that implements the ContentsChangedInterface and its isContentsChanged() method returns true. |
ActionSupportFilter | An ActionSupportFilter encapsulates all the information needed by the ActionProvider Framework ( APF ) from the requesting component to carry out a single query for Actions. |
Area | The Area object is used by the ActionProvider Framework( APF ) as a mechanism for describing a particular area of a Viewer component in a more specific way than the general areaType that is defined by a support class. |
BaseAction | The BaseAction class is the base class for all Actions acquired via the Action Provider Framework (APF). |
BaseActionProvider | The BaseActionProvider class is the Base class for the ActionProviders of the Action Provider Framework (APF). |
HttpAction | The HttpAction class is the base class for all actions acquired from the HttpActionProvider. |
HttpActionProvider | The HttpActionProvider class, in conjunction with other parts of the ActionProvider Framework (APF), is used by Transformation Beans as a mechanism for acquiring renderable Actions for specific viewable areas of the component. |
SelectorAction | The SelectorAction class defines additional type-based attributes specific to actions used by selectors. |
SwingAction | The SwingAction class is the base class for all actions acquired from the SwingActionProvider. |
SwingActionProvider | The SwingActionProvider class, in conjunction with other parts of the ActionProvider Framework (APF), is used by Swing components as a mechanism for acquiring renderable Actions for specific viewable areas of the component. |
Provides the integrated set of classes that comprise the ActionProvider Framework (APF).
OVERVIEW
The APF is a framework from which both Swing and JSP Viewer Components acquire their Actions. See the CURRENT APF VIEWERS section below for a listing of viewers that currently use the APF.
The main purpose of the framework is to give users the ability to customize the functionality and appearance of these Actions. However, before attempting to exploit these features of the APF, a basic understanding of its primary elements is essential.
PRIMARY TYPES OF CLASSES IN THE APF
** Typically, a Command object associated with the Action contains
the logic for actually performing the operation. Within the APF, all commands are required
to be implementations of
. The
DynamicAttributeCommandInterface
class implements that interface and is the base class
for all default commands.
BaseCommand
implementations of SwingActionProviderViewInterface
implementations of HttpActionProviderViewInterface
getActions()
method, for each renderable portion of their view.
ActionProviderSupportTypes
for an overview of the
the default support classes.
BaseActionProviderSupport
OPERATIONAL FLOW OF THE APF
A Viewer Component makes a query for Actions to its ActionProvider via a
getActions()
call. There
may be multiple calls to this method; One for each specific area within a general areaType.
For example, a TableView component does a different query for each of its column headers within the general
COLUMN_HEADER_AREA. JSP/Servlet Components have to make as many queries as there are specific areas during
each rendering of the view. Swing Components can query for Actions on just an as-needed basis; When a users
clicks an area to bring up a pop menu of Action choices for example. The query
always includes the following:
ActionProviderSupportTypes
TableViewAreaInterface.COLUMN_HEADER_AREA
for a TableView The other parts required on the query depend on the particular support class. Typically, they include:
The ActionProvider delegates the getActions()
call
to the appropriate support class based on the specified supportType key.
The support class identifies all the actionTypes that are registered for the specified areaType and does the following for each of the Actions to which they are associated:
setActionOrderList()
on the base ActionProvider class and
setActionVisible
on
the Viewer component.getActionStatus()
on
the base support class and
setReturnStatus()
on the base Action class.DYNAMIC
supplemental attribute property defined
on the base Action class.ActionList
whose structure is defined by the
ActionOrderList
that is in effect on the support class.
In the JSP/Servlet environment, Actions can not persist after they are acquired and their
html representations have been returned to the client. Therefore, the
HttpActionProvider
stores command instances and, possibly, certain
dynamic Action attributes so that the command may be executed later during a new request
from the client. The HttpActionProvider assigns a unique HttpActionProvider.CMDID
identifier for each of its stored commands.
actionPeformed()
method
is called by the Viewer Component itself or some Action handler like JPopupMenu
.
This base implementation of this method does just the following:
execute()
method is called. ContentsChangedInterface
and the isContentsChanged()
method returns true, then the SwingActionProvider that generated the Action is told to fire
an ActionProviderEvent
to all of its listeners. executeCommand()
method is called. This method does the following:
HttpActionProvider.CMDID
identifier that is passed as a request parameter.
parameterPrefix
,
on the request object. If not found on the request, the method looks for the attribute with the same name
in the set of stored attributes for the command. execute()
method is called. ContentsChangedInterface
and the isContentsChanged()
method returns true, then the HttpActionProvider fires an
ActionProviderEvent
to all of its listeners. CURRENT APF VIEWERS
The following is a list of Viewer Components that use the APF including their default APF support class and the supportKey.
*Note: The support class used by the Swing RemoteFileSearchComponent is dependent on the type of RemoteFileSelector
it is being used within. If used within the InformationServicesSearchPanel
then it uses the support class mapped to
REMOTE_INFO_SERVICE_SUPPORT
.
**Note: The NavigationBarRowScrollingElement and NavigationBarColumnScrollingElement are used within the
TableRowNavigationBar
and
TableColumnNavigationBar
, respectively.
***Note: All three components are used within the
InformationServicesSelector
and the
RemoteFileSelector
components.
For More Information
|
Components |
|
| |||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |