y.option
Interface GuiFactory

All Known Implementing Classes:
AbstractGuiFactory

public interface GuiFactory

This interface must be implemented by GUIFactories which are used by OptionHandler and OptionSection


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.
 String getString(String key)
          Localize a string
 

Method Detail

createButton

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

Parameters:
action - the name
Returns:
a preconfigured and I18nized button

getString

public String getString(String key)
Localize a string

Parameters:
key - the key
Returns:
the localized value

createHelpAction

public Action createHelpAction(String helpKey)
Create an action for a help key, which is to display an html page normally.

Parameters:
helpKey - the key identifying the help
Returns:
an action

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

2003