| net.sourceforge.squirrel_sql.client.gui.builders.I15dPanelBuilder
All known Subclasses: net.sourceforge.squirrel_sql.client.gui.builders.DefaultFormBuilder,
I15dPanelBuilder | public class I15dPanelBuilder extends PanelBuilder (Code) | | A general purpose panel builder that uses the
FormLayout
to layout JPanel s. In addition to its superclass
PanelBuilder this class provides convenience behavior to map
resource keys to their associated internationalized (i15d) strings
when adding labels, titles and titled separators.
This class is not yet part of the binary Forms library;
it comes with the Forms distributions as an extra.
The API is work in progress and may change without notice.
If you want to use this class, you may consider copying it into your codebase.
author: Karsten Lentzsch See Also: ResourceBundle |
Method Summary | |
final public JLabel | add15dTitle(String resourceKey, String encodedConstraints) Adds a title to the form using the specified constraints. | final public JLabel | addI15dLabel(String resourceKey, CellConstraints constraints) Adds an internationalized (i15d) textual label to the form using the
specified constraints. | final public JLabel | addI15dLabel(String resourceKey, String encodedConstraints) Adds an internationalized (i15d) textual label to the form using the
specified constraints. | final public JComponent | addI15dSeparator(String resourceKey, CellConstraints constraints) Adds an internationalized (i15d) titled separator to the form using the
specified constraints. | final public JComponent | addI15dSeparator(String resourceKey, String encodedConstraints) Adds an internationalized (i15d) titled separator to the form using
the specified constraints. | final public JLabel | addI15dTitle(String resourceKey, CellConstraints constraints) Adds a title to the form using the specified constraints. | protected String | getI15dString(String resourceKey) Looks up and answers the internationalized (i15d) string for the given
resource key from the ResourceBundle . |
I15dPanelBuilder | public I15dPanelBuilder(JPanel panel, FormLayout layout, ResourceBundle bundle)(Code) | | Constructs an instance of I15dPanelBuilder for the given
panel and layout.
Parameters: panel - the layout container Parameters: layout - the FormLayout used to layout the container Parameters: bundle - the ResourceBundle used to lookup i15dstrings |
I15dPanelBuilder | public I15dPanelBuilder(FormLayout layout, ResourceBundle bundle)(Code) | | Constructs an instance of I15dPanelBuilder for the given
layout. Uses an instance of JPanel as layout container.
Parameters: layout - the form layout used to layout the container Parameters: bundle - the resource bundle used to lookup i15d strings |
add15dTitle | final public JLabel add15dTitle(String resourceKey, String encodedConstraints)(Code) | | Adds a title to the form using the specified constraints.
Parameters: resourceKey - the resource key for the separator titel Parameters: encodedConstraints - a string representation for the constraints the added title label |
addI15dLabel | final public JLabel addI15dLabel(String resourceKey, CellConstraints constraints)(Code) | | Adds an internationalized (i15d) textual label to the form using the
specified constraints.
Parameters: resourceKey - the resource key for the label's text Parameters: constraints - the label's cell constraints the added label |
addI15dLabel | final public JLabel addI15dLabel(String resourceKey, String encodedConstraints)(Code) | | Adds an internationalized (i15d) textual label to the form using the
specified constraints.
Parameters: resourceKey - the resource key for the label's text Parameters: encodedConstraints - a string representation for the constraints the added label |
addI15dSeparator | final public JComponent addI15dSeparator(String resourceKey, CellConstraints constraints)(Code) | | Adds an internationalized (i15d) titled separator to the form using the
specified constraints.
Parameters: resourceKey - the resource key for the separator title Parameters: constraints - the separator's cell constraints the added titled separator |
addI15dSeparator | final public JComponent addI15dSeparator(String resourceKey, String encodedConstraints)(Code) | | Adds an internationalized (i15d) titled separator to the form using
the specified constraints.
Parameters: resourceKey - the resource key for the separator titel Parameters: encodedConstraints - a string representation for the constraints the added titled separator |
addI15dTitle | final public JLabel addI15dTitle(String resourceKey, CellConstraints constraints)(Code) | | Adds a title to the form using the specified constraints.
Parameters: resourceKey - the resource key for the separator title Parameters: constraints - the separator's cell constraints the added title label |
getI15dString | protected String getI15dString(String resourceKey)(Code) | | Looks up and answers the internationalized (i15d) string for the given
resource key from the ResourceBundle .
Parameters: resourceKey - the key to look for in the resource bundle the associated internationalized string, or the resource keyitself in case of a missing resource throws: IllegalStateException - if no ResourceBundle has been set |
|
|