Class LabelBuilder.Factory

  • Enclosing class:
    LabelBuilder

    public static class LabelBuilder.Factory
    extends java.lang.Object
    A factory class for building multiple labels using the same ResourceBundle 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's ResourceBundle and resource prefix.
      protected LabelBuilder builder​(java.lang.String resourceSuffix)
      Create a label builder using resourceSuffix 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Factory

        public Factory​(java.util.ResourceBundle bundle,
                       java.lang.String resourcePrefix)
    • Method Detail

      • bold

        public LabelBuilder.Factory bold()
        Return a new factory for creating bold labels using this factory's ResourceBundle 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 key
        component - 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 using resourceSuffix to get the mnemonic and name.