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 java.lang.Object
implements GuiFactory

Simple abstract implementation of GuiFactory.

 

Constructor Summary
AbstractGuiFactory()
           
 
Method Summary
 javax.swing.JButton createButton(java.lang.String action)
          Create a button for the specified action.
 javax.swing.Action createHelpAction(java.lang.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 javax.swing.JButton createButton(java.lang.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 javax.swing.Action createHelpAction(java.lang.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-2022,
yWorks GmbH.
All rights reserved.