y.option
Interface GuiFactory

All Known Implementing Classes:
AbstractGuiFactory, PropertiesGuiFactory, ResourceBundleGuiFactory

public interface GuiFactory

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

 
Your browser does not support SVG content.

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

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

Parameters:
action - the name
Returns:
a pre-configured and I18nized button

getString

String getString(String key)
Localize a string.

Parameters:
key - the key
Returns:
the localized value

createHelpAction

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-2008,
yWorks GmbH.
All rights reserved.