Java Doc for JETAController.java in  » Swing-Library » abeille-forms-designer » com » jeta » open » gui » framework » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 » abeille forms designer » com.jeta.open.gui.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jeta.open.gui.framework.JETAController

All known Subclasses:   com.jeta.swingbuilder.gui.images.ImagePropertiesController,  com.jeta.swingbuilder.gui.main.FormEditorController,  com.jeta.swingbuilder.gui.utils.TableSupportHandler,  com.jeta.swingbuilder.gui.border.CompoundBorderController,  com.jeta.swingbuilder.gui.colorchooser.RecentSwatchController,  com.jeta.swingbuilder.gui.font.FontViewController,  com.jeta.swingbuilder.gui.main.CellConstraintsController,  com.jeta.swingbuilder.gui.beanmgr.BeanManagerController,  com.jeta.swingbuilder.gui.main.SpecViewController,  com.jeta.swingbuilder.codegen.gui.editor.SourceController,  com.jeta.swingbuilder.gui.effects.RadialViewController,  com.jeta.swingbuilder.gui.components.line.CompoundLineController,  com.jeta.swingbuilder.gui.project.ProjectSettingsController,  com.jeta.swingbuilder.gui.components.scrollbars.ScrollPolicyController,  com.jeta.swingbuilder.gui.effects.GradientViewController,  com.jeta.swingbuilder.gui.components.list.ListItemController,  com.jeta.swingbuilder.gui.components.line.LinePropertiesController,  com.jeta.swingbuilder.gui.effects.PaintAssignmentController,
JETAController
abstract public class JETAController (Code)
This is the base class for all controllers in an application. We follow the model-view-controller pattern extensively in the UI. All controllers should derive from this class. A controller is resposible for all event handlers for a JETAPanel (JETAPanels handle only layout and view logic). This controller class also supports disabling listeners. This is useful when updating a view with components that fire events when changed programmatically such as JComboBoxes. See JETAController.enableEvents . Usage:
 class MyController extends JETAController {
 public MyController(JETAContainer view) {
 super(view);
 // assign a button handler. If the view has a menu and toolbar button
 // for the same command, this assignAction method will install handlers
 // on both.
 assignAction(MyViewNames.ID_LOGIN_BUTTON, new LoginAction());
 // assign other listeners
 }
 public class LoginAction implements ActionListener {
 public void actionPerformed(ActionEvent evt) {
 MyFrame frame = (MyFrame) getView();
 //... 
 }
 }
 }
 

author:
   Jeff Tassin

Inner Class :class CommandListener implements ActionListener
Inner Class :class ListListener implements ListSelectionListener
Inner Class :class ComponentChangeListener implements ChangeListener
Inner Class :public class TextFocusListener implements FocusListener
Inner Class :public static class ListenerManager


Constructor Summary
public  JETAController(JETAContainer view)
    

Method Summary
public  booleanactionPerformed(String actionName, ActionEvent evt)
     Forwarded from the view when an action occurs.
public  voidassignAction(String compName, ActionListener action)
     Registers and ActionListener with this controller.
protected  voidassignComponentAction(Component comp, String commandId, ActionListener action)
     Registers this controller as an action listener with all components that have the given name found in the associated view.
public  voidassignListener(String compName, ListSelectionListener listener)
    
public  voidassignListener(String compName, ChangeListener listener)
    
public  voidenableEvents(boolean enable)
    
public  ActionListenergetAction(String actionName)
     Returns the first action listener associated with the given name.
public  ActionListenergetPrimaryActionListener()
     Returns the main action listener that is registered with components in the associated view.
public  JETAContainergetView()
     Returns the view that is associated with this controller.
public  booleaninvokeAction(String actionName)
    
public  booleanisEventsEnabled()
    
public  voidstateChanged(ChangeEvent e)
     Forwarded from the view when a change event occurs.
public  voidupdateComponents(Object src)
    
public  voidvalueChanged(ListSelectionEvent e)
     Forwarded from the view when a list selection event occurs.


Constructor Detail
JETAController
public JETAController(JETAContainer view)(Code)
ctor
Parameters:
  view - the view whose events we are handling.




Method Detail
actionPerformed
public boolean actionPerformed(String actionName, ActionEvent evt)(Code)
Forwarded from the view when an action occurs. This method Lookups up the name of any ActionListener in the m_commands hash map that corresponds to the actionName. It then invokes the
See Also:   java.awt.ActionListener.actionPerformed
See Also:    method if a component is
See Also:   found.
Parameters:
  actionName - the name of the action associated with the event
Parameters:
  evt - the action event true if the controller handled the action



assignAction
public void assignAction(String compName, ActionListener action)(Code)
Registers and ActionListener with this controller. This controller adds itself as a listener to all components with the given name in the associated view.



assignComponentAction
protected void assignComponentAction(Component comp, String commandId, ActionListener action)(Code)
Registers this controller as an action listener with all components that have the given name found in the associated view.



assignListener
public void assignListener(String compName, ListSelectionListener listener)(Code)
Assigns a list listener to the JList for the given name



assignListener
public void assignListener(String compName, ChangeListener listener)(Code)
Assigns a change listener to the Component for the given name - assuming the component has method addChangeListener( ChangeListener )



enableEvents
public void enableEvents(boolean enable)(Code)
Sets the flag that indicates if listener/action events should be propagated to registered listeners



getAction
public ActionListener getAction(String actionName)(Code)
Returns the first action listener associated with the given name. If the listener is not found, null is returned the action listener associated with the given component.



getPrimaryActionListener
public ActionListener getPrimaryActionListener()(Code)
Returns the main action listener that is registered with components in the associated view. the main action listener



getView
public JETAContainer getView()(Code)
Returns the view that is associated with this controller.



invokeAction
public boolean invokeAction(String actionName)(Code)
Invokes the action assigned to the given name



isEventsEnabled
public boolean isEventsEnabled()(Code)
the flag that indicates if listener/action events should bepropagated to registered listeners



stateChanged
public void stateChanged(ChangeEvent e)(Code)
Forwarded from the view when a change event occurs.



updateComponents
public void updateComponents(Object src)(Code)
Forwards the call to the UIDirector if it is not null



valueChanged
public void valueChanged(ListSelectionEvent e)(Code)
Forwarded from the view when a list selection event occurs. This method
Parameters:
  e - the list selection event



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.