Search this API

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

Method Detail

createButton

javax.swing.JButton createButton(java.lang.String action)
Create a button for the specified action.

Parameters:
action - the name, e.g. "OK_ACTION", "CANCEL_ACTION", "HELP_ACTION" ...
Returns:
a pre-configured and localized button.

getString

java.lang.String getString(java.lang.String key)
Localize a string.

Parameters:
key - the key
Returns:
the localized value

createHelpAction

javax.swing.Action createHelpAction(java.lang.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-2022,
yWorks GmbH.
All rights reserved.