org.jdesktop.swingx.action

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » swingx » org.jdesktop.swingx.action 
org.jdesktop.swingx.action
Contains classes related to the JDNC actions architecture. The Actions architecture maintains the set of user initiated commands (referred to as user actions) in an application. These commands are represented as an {@link javax.swing.Action} and have properties like name and icon. The user actions are represented in the user interface by controls like menu items and toolbar buttons.

The other type of actions used by the architecture are the internal swing Actions (refered to as behaviour actions) that are embedded within the {@link javax.swing.ActionMap} of a {@link javax.swing.JComponent}.

These two types of actions are distinct from each other: user actions have a lot of properties but very little semantics by default (unless explicity bound). Behavior actions have no properties but have semantics. These two types of actions are linked by the action id which is the value of the Action.ACTION_COMMAND_KEY

The {@link org.jdesktop.swingx.action.AbstractActionExt} class extends the Swing concept of the Action by adding support for toggle or two state actions. Toggle type actions may be grouped into a set of mutually exclusive actions. This binary actions are represented in the user interface as JToggleButtons, JCheckBoxMenuItems or JRadioButtonMenuItems.

There are two types of user actions: A {@link org.jdesktop.swingx.action.BoundAction} is an action that will invoke a specific method. It may be bound to an explict component, a callback method on an object instance or one or more listeners. A {@link org.jdesktop.swingx.action.TargetableAction} is an action that doesn't have an explicit binding and the invocation will be sent to an arbitrator (the {@link org.jdesktop.swingx.action.TargetManager}) which dispatches the Action to the "current component" - represented by a Targetable instance. The current component may be explictly set by some programmatic policy (for example, changes in state).

By defalt, the current component will be driven by the focus policy as dictated by the current FocusManager. If the current component cannot handle the action then the action will be dispatched up the containment hierarchy until the action is consumed. If the action is not consumed then it will be dispatched to the Application instance which manages an application global set of actions.

These are the key classes or the actions architecture:

{@link org.jdesktop.swingx.action.ActionManager}
A repository of all shared actions in the application. There will be one instance per application which can be accessed via the Application object (was ClientApp)
{@link org.jdesktop.swingx.action.ActionContainerFactory}
Constructs JMenuBars, JMenus, JPopupMenus and JToolBars using lists of action ids. This functionality may be migrated into ActionManager.
{@link org.jdesktop.swingx.action.TargetableAction}
Represents an unbound Action. The invocation of this action will be dispatched to the TargetManager.
{@link org.jdesktop.swingx.action.BoundAction}
Represents an action which has an exclicit binding.
{@link org.jdesktop.swingx.action.TargetManager}
Manages the targetable policy for actions which have no explicit binding. The policy can be set by changes in application state, event based criteria or whatever. If the policy has not been set then it will dispatch the action to the current focusable component.
{@link org.jdesktop.swingx.action.Targetable}
An interface that contains a few methods which expose actions to the TargetManager. Targetable objects don't have to be visual components they only have to be able to handle action invocations.

Richard Bair
Last modified: Tue Sep 7 11:10:01 PDT 2004
Java Source File NameTypeComment
AbstractActionExt.javaClass Extends the concept of the Action to include toggle or group states.
ActionContainerFactory.javaClass Creates user interface elements based on action ids and lists of action ids. All action ids must represent actions managed by the ActionManager.

Action Lists

Use the createXXX(List) methods to construct containers of actions like menu bars, menus, popups and toolbars from actions represented as action ids in a java.util.List.
ActionFactory.javaClass A collection of static methods to make it easier to construct Actions.
ActionIssues.javaClass
ActionManager.javaClass The ActionManager manages sets of javax.swing.Actions for an application.
ActionManagerTest.javaClass
ActionTest.javaClass
BoundAction.javaClass A class that represents the many type of actions that this framework supports.

The command invocation of this action may be delegated to another action or item state listener.

CompositeAction.javaClass A class that represents an action which will fire a sequence of actions. The action ids are added to the internal list.
LinkAction.javaClass Convenience implementation to simplify org.jdesktop.swingx.JXHyperlink configuration and provide minimal api as needed by a org.jdesktop.swingx.LinkRenderer .
LinkActionTest.javaClass
LinkModelAction.javaClass Specialized LinkAction for a target of type LinkModel .
ServerAction.javaClass An action which will invoke an http POST operation.
ServerActionTest.javaClass
Targetable.javaInterface An interface which exposes the allowable actions to a TargetManager.
TargetableAction.javaClass A class that represents a dynamically targetable action.
TargetableActionTest.javaClass A unit test for targetable actions.
TargetManager.javaClass The target manager dispatches commands to Targetable objects that it manages.
TargetManagerTest.javaClass Tests registration and command execution of the target manager.
ToggleActionPropertyChangeListener.javaClass Added to the Toggle type buttons and menu items so that various components which have been created from a single StateChangeAction can be in synch.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.