Search this API

y.option
Class AbstractGuiFactory

java.lang.Object
  extended by 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.
 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.

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

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