Package io.github.jonestimd.swing
Class LabelBuilder.Factory
- java.lang.Object
-
- io.github.jonestimd.swing.LabelBuilder.Factory
-
- Enclosing class:
- LabelBuilder
public static class LabelBuilder.Factory extends java.lang.Object
A factory class for building multiple labels using the sameResourceBundle
and a common resource prefix.
-
-
Constructor Summary
Constructors Constructor Description Factory(java.util.ResourceBundle bundle, java.lang.String resourcePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelBuilder.Factory
bold()
Return a new factory for creating bold labels using this factory'sResourceBundle
and resource prefix.protected LabelBuilder
builder(java.lang.String resourceSuffix)
Create a label builder usingresourceSuffix
to get the mnemonic and name.javax.swing.JLabel
newLabel(java.lang.String resourceSuffix)
javax.swing.JLabel
newLabel(java.lang.String resourceSuffix, java.awt.Component component)
-
-
-
Method Detail
-
bold
public LabelBuilder.Factory bold()
Return a new factory for creating bold labels using this factory'sResourceBundle
and resource prefix.
-
newLabel
public javax.swing.JLabel newLabel(java.lang.String resourceSuffix)
- Parameters:
resourceSuffix
- the suffix for the label's mnemonic and name resource key- See Also:
LabelBuilder.mnemonicAndName(String)
-
newLabel
public javax.swing.JLabel newLabel(java.lang.String resourceSuffix, java.awt.Component component)
- Parameters:
resourceSuffix
- the suffix for the label's mnemonic and name resource keycomponent
- the component to be associated with the label- See Also:
LabelBuilder.mnemonicAndName(String)
-
builder
protected LabelBuilder builder(java.lang.String resourceSuffix)
Create a label builder usingresourceSuffix
to get the mnemonic and name.
-
-