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


Constructor Summary
AbstractGuiFactory()
           
 
Method Summary
 JButton createButton(String action)
          Create a button for the specified action "OK_ACTION", "CANCEL_ACTION", "HELP_ACTION"...
 Action createHelpAction(String helpKey)
          Create an action for a help key, which is to display an html page normally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface y.option.GuiFactory
getString
 

Constructor Detail

AbstractGuiFactory

public AbstractGuiFactory()
Method Detail

createButton

public JButton createButton(String action)
Create a button for the specified action "OK_ACTION", "CANCEL_ACTION", "HELP_ACTION"...

Specified by:
createButton in interface GuiFactory
Parameters:
action - the name
Returns:
a preconfigured and I18nized 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

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003