public class I15dPanelBuilder extends AbstractI15dPanelBuilder
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 #addI15d*
can be
marked texts, i.e. strings with an optional mnemonic marker.
See the MnemonicUtils
class comment for details.
ResourceBundle
currentCellConstraints
Constructor and Description |
---|
I15dPanelBuilder(FormLayout layout,
ResourceBundle bundle)
Constructs an I15dPanelBuilder for the given layout and resource bundle.
|
I15dPanelBuilder(FormLayout layout,
ResourceBundle bundle,
JPanel container)
Constructs an I15dPanelBuilder for the given FormLayout, resource bundle,
and layout container.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getI15dString(String resourceKey)
Looks up and returns the internationalized (i15d) string for the given
resource key from the ResourceBundle that has been provided during
the builder construction.
|
addI15dLabel, addI15dLabel, addI15dLabel, addI15dROLabel, addI15dROLabel, addI15dROLabel, addI15dSeparator, addI15dSeparator, addI15dTitle, addI15dTitle, isDebugToolTipsEnabled, setDebugToolTipsEnabled
add, add, addLabel, addLabel, addLabel, addLabel, addROLabel, addROLabel, addROLabel, addROLabel, addSeparator, addSeparator, addSeparator, addSeparator, addTitle, addTitle, addTitle, getLabelForFeatureEnabledDefault, getPanel, isLabelForApplicable, isLabelForFeatureEnabled, setBackground, setBorder, setDefaultDialogBorder, setLabelFor, setLabelForFeatureEnabled, setLabelForFeatureEnabledDefault, setOpaque
add, add, appendColumn, appendColumn, appendGlueColumn, appendGlueRow, appendLabelComponentsGapColumn, appendParagraphGapRow, appendRelatedComponentsGapColumn, appendRelatedComponentsGapRow, appendRow, appendRow, appendUnrelatedComponentsGapColumn, appendUnrelatedComponentsGapRow, cellConstraints, createLeftAdjustedConstraints, getColumn, getColumnIncrementSign, getLeadingColumn, getRow, isLeftToRight, nextColumn, nextColumn, nextLine, nextLine, nextRow, nextRow, setAlignment, setBounds, setColumn, setColumnSpan, setExtent, setHAlignment, setLeftToRight, setOrigin, setRow, setRowSpan, setVAlignment
createComponentFactory, getColumnCount, getComponentFactory, getContainer, getDefaultComponentFactory, getLayout, getRowCount, setComponentFactory, setDefaultComponentFactory
public I15dPanelBuilder(FormLayout layout, ResourceBundle bundle)
layout
- the FormLayout used to layout the containerbundle
- the ResourceBundle used to look up i15d stringsNullPointerException
- if layout
is null
public I15dPanelBuilder(FormLayout layout, ResourceBundle bundle, JPanel container)
layout
- the FormLayout used to layout the containerbundle
- the ResourceBundle used to lookup i15d stringscontainer
- the layout containerNullPointerException
- if layout
or container
is null
protected String getI15dString(String resourceKey)
getI15dString
in class AbstractI15dPanelBuilder
resourceKey
- the key to look for in the resource bundleIllegalStateException
- if no ResourceBundle
has been setCopyright © 2012 JGoodies. All Rights Reserved.