Class I15dPanelBuilder
java.lang.Object
com.jgoodies.forms.builder.AbstractFormBuilder
com.jgoodies.forms.builder.PanelBuilder
com.jgoodies.forms.builder.AbstractI15dPanelBuilder
com.jgoodies.forms.builder.I15dPanelBuilder
- Direct Known Subclasses:
DefaultFormBuilder
A general purpose panel builder that uses the
FormLayout
to lay out JPanels. 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.
The localized texts used in methods #addI15dLabel
and #addI15dTitle can contain an optional mnemonic marker.
The mnemonic and mnemonic index are indicated by a single ampersand
(&). For example "&Saveinvalid input: '"', or
"Save &asinvalid input: '"'. To use the ampersand itself,
duplicate it, for example "Look&&Feelinvalid input: '"'.
- Since:
- 1.0.3
- Version:
- $Revision: 1.8 $
- Author:
- Karsten Lentzsch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionI15dPanelBuilder(FormLayout layout, ResourceBundle bundle) Constructs anI15dPanelBuilderfor the given layout and resource bundle.I15dPanelBuilder(FormLayout layout, ResourceBundle bundle, JPanel panel) Constructs anI15dPanelBuilderfor the given FormLayout, resource bundle, and layout container. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetI15dString(String resourceKey) Looks up and returns the internationalized (i15d) string for the given resource key from theResourceBundle.Methods inherited from class AbstractI15dPanelBuilder
addI15dLabel, addI15dLabel, addI15dLabel, addI15dROLabel, addI15dROLabel, addI15dROLabel, addI15dSeparator, addI15dSeparator, addI15dTitle, addI15dTitle, isDebugToolTipsEnabled, setDebugToolTipsEnabledMethods inherited from class PanelBuilder
add, add, addLabel, addLabel, addLabel, addLabel, addROLabel, addROLabel, addROLabel, addROLabel, addSeparator, addSeparator, addSeparator, addSeparator, addTitle, addTitle, addTitle, getComponentFactory, getLabelForFeatureEnabledDefault, getPanel, isLabelForApplicable, isLabelForFeatureEnabled, setBackground, setBorder, setComponentFactory, setDefaultDialogBorder, setLabelFor, setLabelForFeatureEnabled, setLabelForFeatureEnabledDefault, setOpaqueMethods inherited from class AbstractFormBuilder
add, add, appendColumn, appendColumn, appendGlueColumn, appendGlueRow, appendLabelComponentsGapColumn, appendParagraphGapRow, appendRelatedComponentsGapColumn, appendRelatedComponentsGapRow, appendRow, appendRow, appendUnrelatedComponentsGapColumn, appendUnrelatedComponentsGapRow, cellConstraints, createLeftAdjustedConstraints, getColumn, getColumnCount, getColumnIncrementSign, getContainer, getLayout, getLeadingColumn, getRow, getRowCount, isLeftToRight, nextColumn, nextColumn, nextLine, nextLine, nextRow, nextRow, setAlignment, setBounds, setColumn, setColumnSpan, setExtent, setHAlignment, setLeftToRight, setOrigin, setRow, setRowSpan, setVAlignment
-
Constructor Details
-
I15dPanelBuilder
Constructs anI15dPanelBuilderfor the given layout and resource bundle. Uses an instance ofJPanelas layout container.- Parameters:
layout- theFormLayoutused to layout the containerbundle- theResourceBundleused to lookup i15d strings
-
I15dPanelBuilder
Constructs anI15dPanelBuilderfor the given FormLayout, resource bundle, and layout container.- Parameters:
layout- theFormLayoutused to layout the containerbundle- theResourceBundleused to lookup i15d stringspanel- the layout container
-
-
Method Details
-
getI15dString
Looks up and returns the internationalized (i15d) string for the given resource key from theResourceBundle.- Specified by:
getI15dStringin classAbstractI15dPanelBuilder- Parameters:
resourceKey- the key to look for in the resource bundle- Returns:
- the associated internationalized string, or the resource key itself in case of a missing resource
- Throws:
IllegalStateException- if noResourceBundlehas been set
-