Class TranslatableTitledBorder

  • All Implemented Interfaces:
    LocaleListener, java.io.Serializable, javax.swing.border.Border
    Direct Known Subclasses:
    TranslatablePanelTitledBorder

    public class TranslatableTitledBorder
    extends javax.swing.border.TitledBorder
    implements LocaleListener
    Filename: TranslatableTitledBorder.java Created on Sep 26, 2014 Author: Kathy Applebaum Copyright Inductive Automation 2014 Project: Vision
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.border.TitledBorder

        ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getBorderText​(javax.swing.border.Border border)  
      protected boolean isTitledBorder​(javax.swing.border.Border border)  
      void localeChanged​(java.util.Locale newLocale)  
      void setBorder​(javax.swing.border.Border border)  
      void setTitle​(java.lang.String title)  
      protected void updateTitle()  
      • Methods inherited from class javax.swing.border.TitledBorder

        getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
      • Methods inherited from class javax.swing.border.AbstractBorder

        getBorderInsets, getInteriorRectangle, getInteriorRectangle
      • Methods inherited from class java.lang.Object

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

      • TranslatableTitledBorder

        public TranslatableTitledBorder()
        For serialization only
      • TranslatableTitledBorder

        public TranslatableTitledBorder​(java.lang.String title)
      • TranslatableTitledBorder

        public TranslatableTitledBorder​(javax.swing.border.Border border)
      • TranslatableTitledBorder

        public TranslatableTitledBorder​(javax.swing.border.Border border,
                                        java.lang.String title)
      • TranslatableTitledBorder

        public TranslatableTitledBorder​(javax.swing.border.Border border,
                                        java.lang.String title,
                                        int titleJustification,
                                        int titlePosition)
      • TranslatableTitledBorder

        public TranslatableTitledBorder​(javax.swing.border.Border border,
                                        java.lang.String title,
                                        int titleJustification,
                                        int titlePosition,
                                        java.awt.Font titleFont)
      • TranslatableTitledBorder

        public TranslatableTitledBorder​(javax.swing.border.Border border,
                                        java.lang.String title,
                                        int titleJustification,
                                        int titlePosition,
                                        java.awt.Font titleFont,
                                        java.awt.Color titleColor)
    • Method Detail

      • isTitledBorder

        protected boolean isTitledBorder​(javax.swing.border.Border border)
      • getBorderText

        protected java.lang.String getBorderText​(javax.swing.border.Border border)
      • setBorder

        public void setBorder​(javax.swing.border.Border border)
        Overrides:
        setBorder in class javax.swing.border.TitledBorder
      • updateTitle

        protected void updateTitle()
      • setTitle

        public void setTitle​(java.lang.String title)
        Overrides:
        setTitle in class javax.swing.border.TitledBorder