DefaultFormBuilder
public class I15dPanelBuilder extends AbstractI15dPanelBuilder
FormLayout
to lay out 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.
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 "&Save", or
"Save &as". To use the ampersand itself,
duplicate it, for example "Look&&Feel".
ResourceBundle
Constructor | Description |
---|---|
I15dPanelBuilder(FormLayout layout,
java.util.ResourceBundle bundle) |
Constructs an
I15dPanelBuilder for the given
layout and resource bundle. |
I15dPanelBuilder(FormLayout layout,
java.util.ResourceBundle bundle,
javax.swing.JPanel panel) |
Constructs an
I15dPanelBuilder
for the given FormLayout, resource bundle, and layout container. |
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.String |
getI15dString(java.lang.String resourceKey) |
Looks up and returns the internationalized (i15d) string for the given
resource key from the
ResourceBundle . |
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
addI15dLabel, addI15dLabel, addI15dLabel, addI15dROLabel, addI15dROLabel, addI15dROLabel, addI15dSeparator, addI15dSeparator, addI15dTitle, addI15dTitle, isDebugToolTipsEnabled, setDebugToolTipsEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setOpaque
public I15dPanelBuilder(FormLayout layout, java.util.ResourceBundle bundle)
I15dPanelBuilder
for the given
layout and resource bundle. Uses an instance of JPanel
as layout container.layout
- the FormLayout
used to layout the containerbundle
- the ResourceBundle
used to lookup i15d stringspublic I15dPanelBuilder(FormLayout layout, java.util.ResourceBundle bundle, javax.swing.JPanel panel)
I15dPanelBuilder
for the given FormLayout, resource bundle, and layout container.layout
- the FormLayout
used to layout the containerbundle
- the ResourceBundle
used to lookup i15d stringspanel
- the layout containerprotected java.lang.String getI15dString(java.lang.String resourceKey)
ResourceBundle
.getI15dString
in class AbstractI15dPanelBuilder
resourceKey
- the key to look for in the resource bundlejava.lang.IllegalStateException
- if no ResourceBundle
has been setCopyright © 2002-2009 JGoodies Karsten Lentzsch. All Rights Reserved.