org.softsmithy.lib.swing.action
Class StandardActionFactory

java.lang.Object
  extended by org.softsmithy.lib.util.TypesafeEnum
      extended by org.softsmithy.lib.swing.action.StandardActionFactory
All Implemented Interfaces:
Localizable
Direct Known Subclasses:
DevelopmentActionFactory, GeneralActionFactory, MediaActionFactory, NavigationActionFactory, TableActionFactory, TextActionFactory

public abstract class StandardActionFactory
extends TypesafeEnum

http://java.sun.com/developer/techDocs/hi/repository/index.html http://java.sun.com/products/jlf/ed2/guidelines.html http://java.sun.com/products/jlf/ed2/book/Appendix.A.html http://java.sun.com/products/jlf/ed2/book/Appendix.A2.html http://java.sun.com/products/jlf/ed2/book/Appendix.C.html

Author:
puce

Constructor Summary
protected StandardActionFactory(String name)
          Creates a new instance of StandardActionFactory
 
Method Summary
 void configureXAction(XAction action, Locale locale)
          Configures an XAction for this standard action.
 XAction createXAction(Object target, Locale locale)
          Creates an XAction for this standard action.
 
Methods inherited from class org.softsmithy.lib.util.TypesafeEnum
equals, getDisplayString, getResourceBundleBaseName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardActionFactory

protected StandardActionFactory(String name)
Creates a new instance of StandardActionFactory

Method Detail

createXAction

public XAction createXAction(Object target,
                             Locale locale)
                      throws NoSuchMethodException
Creates an XAction for this standard action.

Parameters:
target - this object is expected to implement the method public void <action name/ toString()>(ActionEvent e)
locale - the locale
Returns:
a configured XAction
Throws:
NoSuchMethodException

configureXAction

public void configureXAction(XAction action,
                             Locale locale)
Configures an XAction for this standard action.

Parameters:
action - the XAction to be configured
locale - the locale


Copyright © 2002-2011 SoftSmithy. All Rights Reserved.