Class TranslatableTitledBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.TitledBorder
-
- com.inductiveautomation.factorypmi.application.components.border.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
-
-
Constructor Summary
Constructors Constructor Description TranslatableTitledBorder()
For serialization onlyTranslatableTitledBorder(java.lang.String title)
TranslatableTitledBorder(javax.swing.border.Border border)
TranslatableTitledBorder(javax.swing.border.Border border, java.lang.String title)
TranslatableTitledBorder(javax.swing.border.Border border, java.lang.String title, int titleJustification, int titlePosition)
TranslatableTitledBorder(javax.swing.border.Border border, java.lang.String title, int titleJustification, int titlePosition, java.awt.Font titleFont)
TranslatableTitledBorder(javax.swing.border.Border border, java.lang.String title, int titleJustification, int titlePosition, java.awt.Font titleFont, java.awt.Color titleColor)
-
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
-
-
-
-
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 classjavax.swing.border.TitledBorder
-
updateTitle
protected void updateTitle()
-
setTitle
public void setTitle(java.lang.String title)
- Overrides:
setTitle
in classjavax.swing.border.TitledBorder
-
localeChanged
public void localeChanged(java.util.Locale newLocale)
- Specified by:
localeChanged
in interfaceLocaleListener
-
-