com.jgoodies.forms.factories
Interface ComponentFactory

All Known Implementing Classes:
DefaultComponentFactory

public interface ComponentFactory

An interface that defines the factory methods as used by the PanelBuilder.

Version:
$Revision: 1.1 $
Author:
Karsten Lentzsch
See Also:
DefaultComponentFactory, PanelBuilder

Method Summary
 javax.swing.JLabel createLabel(java.lang.String textWithMnemonic)
          Creates and answers a label with an optional mnemonic.
 javax.swing.JComponent createSeparator(java.lang.String text, int alignment)
          Creates and answers a label with separator on the left hand side.
 javax.swing.JLabel createTitle(java.lang.String textWithMnemonic)
          Creates and answers a label that uses the foreground color and font of a TitledBorder.
 

Method Detail

createLabel

javax.swing.JLabel createLabel(java.lang.String textWithMnemonic)
Creates and answers a label with an optional mnemonic.

Parameters:
textWithMnemonic - the label's text - may contain a mnemonic
Returns:
an label with optional mnemonic

createTitle

javax.swing.JLabel createTitle(java.lang.String textWithMnemonic)
Creates and answers a label that uses the foreground color and font of a TitledBorder.

Parameters:
textWithMnemonic - the title's text - may contain a mnemonic
Returns:
an emphasized title label

createSeparator

javax.swing.JComponent createSeparator(java.lang.String text,
                                       int alignment)
Creates and answers a label with separator on the left hand side. Useful to separate paragraphs in a panel. This is often a better choice than a TitledBorder.

Parameters:
text - the title's text
alignment - text alignment: left, center, right
Returns:
a title label with separator on the side