|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.forms.factories.DefaultComponentFactory
public class DefaultComponentFactory
A singleton implementaton of the ComponentFactory interface
that creates UI components as required by the
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)
Creates and answers a label with separator on the left hand side. |
javax.swing.JComponent |
createSeparator(java.lang.String text,
int alignment)
Creates and answers a label with separator; useful to separate paragraphs in a panel. |
javax.swing.JLabel |
createTitle(java.lang.String textWithMnemonic)
Creates and answers a label that uses the foreground color and font of a TitledBorder. |
static DefaultComponentFactory |
getInstance()
Returns the sole instance of this factory class. |
static void |
setTextAndMnemonic(javax.swing.JLabel label,
java.lang.String textWithMnemonic)
Sets the text of the given label and optionally a mnemonic. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DefaultComponentFactory getInstance()
public javax.swing.JLabel createLabel(java.lang.String textWithMnemonic)
createLabel in interface ComponentFactorytextWithMnemonic - the label's text - may contain a mnemonic
public javax.swing.JLabel createTitle(java.lang.String textWithMnemonic)
TitledBorder.
createTitle in interface ComponentFactorytextWithMnemonic - the title's text - may contain a mnemonic
public javax.swing.JComponent createSeparator(java.lang.String text)
TitledBorder.
The current implementation doesn't support component alignments.
text - the title's text
public javax.swing.JComponent createSeparator(java.lang.String text,
int alignment)
TitledBorder.
The current implementation doesn't support component alignments.
createSeparator in interface ComponentFactorytext - the title's textalignment - text alignment: left, center, right
public static void setTextAndMnemonic(javax.swing.JLabel label,
java.lang.String textWithMnemonic)
label - the label that gets a mnemonictextWithMnemonic - the text with optional mnemonic marker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||