com.jgoodies.forms.builder

Class I15dPanelBuilder

Known Direct Subclasses:
DefaultFormBuilder

public class I15dPanelBuilder
extends AbstractI15dPanelBuilder

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 "&Save", or "Save &as". To use the ampersand itself, duplicate it, for example "Look&&Feel&quot.

Version:
$Revision: 1.5 $
Author:
Karsten Lentzsch
Since:
1.0.3
See Also:
ResourceBundle

Constructor Summary

I15dPanelBuilder(FormLayout layout, ResourceBundle bundle)
Constructs an I15dPanelBuilder for the given layout and resource bundle.
I15dPanelBuilder(FormLayout layout, ResourceBundle bundle, JPanel panel)
Constructs an I15dPanelBuilder for the given FormLayout, resource bundle, and layout container.

Method Summary

protected String
getI15dString(String resourceKey)
Looks up and returns the internationalized (i15d) string for the given resource key from the ResourceBundle.

Methods inherited from class com.jgoodies.forms.builder.AbstractI15dPanelBuilder

addI15dLabel, addI15dLabel, addI15dLabel, addI15dSeparator, addI15dSeparator, addI15dTitle, addI15dTitle, getI15dString, isDebugToolTipsEnabled, setDebugToolTipsEnabled

Methods inherited from class com.jgoodies.forms.builder.PanelBuilder

add, addLabel, addLabel, addLabel, addLabel, addSeparator, addSeparator, addSeparator, addSeparator, addTitle, addTitle, addTitle, getComponentFactory, getPanel, setBackground, setBorder, setComponentFactory, setDefaultDialogBorder, setOpaque

Methods inherited from class com.jgoodies.forms.builder.AbstractFormBuilder

add, 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

public I15dPanelBuilder(FormLayout layout,
                        ResourceBundle bundle)
Constructs an I15dPanelBuilder for the given layout and resource bundle. Uses an instance of JPanel as layout container.
Parameters:
layout - the FormLayout used to layout the container
bundle - the ResourceBundle used to lookup i15d strings

I15dPanelBuilder

public I15dPanelBuilder(FormLayout layout,
                        ResourceBundle bundle,
                        JPanel panel)
Constructs an I15dPanelBuilder for the given FormLayout, resource bundle, and layout container.
Parameters:
layout - the FormLayout used to layout the container
bundle - the ResourceBundle used to lookup i15d strings
panel - the layout container

Method Details

getI15dString

protected String getI15dString(String resourceKey)
Looks up and returns the internationalized (i15d) string for the given resource key from the ResourceBundle.
Overrides:
getI15dString in interface AbstractI15dPanelBuilder
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

Copyright © 2002-2007 JGoodies Karsten Lentzsch. All Rights Reserved.