| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JLabel
                          |
                          +--planetj.gui.CMLabelJ
Provides I18N functionality.
| Field Summary | 
| Fields inherited from class javax.swing.JComponent | 
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| Fields inherited from class java.awt.Component | 
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface javax.swing.SwingConstants | 
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST | 
| Fields inherited from interface java.awt.image.ImageObserver | 
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
CMLabelJ()
CMLabelJ constructor comment.  | 
|
CMLabelJ(Icon image)
CMLabelJ constructor comment.  | 
|
CMLabelJ(Icon image,
         int horizontalAlignment)
CMLabelJ constructor comment.  | 
|
CMLabelJ(String text)
CMLabelJ constructor comment.  | 
|
CMLabelJ(String text,
         Icon icon,
         int horizontalAlignment)
CMLabelJ constructor comment.  | 
|
CMLabelJ(String text,
         int horizontalAlignment)
CMLabelJ constructor comment.  | 
|
| Method Summary | |
 String | 
getLabel()
 | 
 String | 
getTranslation()
Gets the translated String.  | 
 String | 
getTranslationId()
Gets the key of the translated String.  | 
 boolean | 
isBlank()
Returns true if this Label is blank or contains no text.  | 
static void | 
main(String[] args)
main entrypoint - starts the part when it is run as an application  | 
 void | 
setLabel(String key)
Overrides the superclass to set the key for the translated String.  | 
 void | 
setText(String key)
Overrides the superclass to set the key for the translated String.  | 
 void | 
setToolTipText(String toolTip)
Sets the toolTipText property (java.lang.String) value.  | 
 void | 
setTranslation(String newTranslation)
Sets the String without translating it.  | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public CMLabelJ()
public CMLabelJ(String text)
text - java.lang.String
public CMLabelJ(String text,
                int horizontalAlignment)
text - java.lang.StringhorizontalAlignment - int
public CMLabelJ(String text,
                Icon icon,
                int horizontalAlignment)
text - java.lang.Stringicon - javax.swing.IconhorizontalAlignment - intpublic CMLabelJ(Icon image)
image - javax.swing.Icon
public CMLabelJ(Icon image,
                int horizontalAlignment)
image - javax.swing.IconhorizontalAlignment - int| Method Detail | 
public String getLabel()
public String getTranslation()
public String getTranslationId()
public static void main(String[] args)
args - java.lang.String[]public void setLabel(String key)
public void setText(String key)
setText in class JLabelpublic void setToolTipText(String toolTip)
setToolTipText in class JComponenttoolTip - The new value for the property.JComponent.getToolTipText()public void setTranslation(String newTranslation)
public boolean isBlank()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||