y.option
Class AbstractGuiFactory
java.lang.Object
y.option.AbstractGuiFactory
- All Implemented Interfaces:
- GuiFactory
- Direct Known Subclasses:
- PropertiesGuiFactory, ResourceBundleGuiFactory
public abstract class AbstractGuiFactory
- extends Object
- implements GuiFactory
Simple abstract implementation of GuiFactory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGuiFactory
public AbstractGuiFactory()
createButton
public JButton createButton(String action)
- Create a button for the specified action.
- Specified by:
createButton
in interface GuiFactory
- Parameters:
action
- the name, e.g. "OK_ACTION", "CANCEL_ACTION", "HELP_ACTION" ...
- Returns:
- a pre-configured and localized button.
createHelpAction
public Action createHelpAction(String helpKey)
- Create an action for a help key,
which is to display an html page normally.
- Specified by:
createHelpAction
in interface GuiFactory
- Parameters:
helpKey
- the key identifying the help
- Returns:
- an action