|
|||||||||||
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.AbstractButton | +--javax.swing.JMenuItem | +--javax.swing.JCheckBoxMenuItem | +--planetj.gui.CMCheckBoxMenuItemJ
Provides I18N functionality on top of all basic swing 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 | |
CMCheckBoxMenuItemJ()
CMCheckBoxMenuItemJ constructor comment. |
|
CMCheckBoxMenuItemJ(Icon icon)
CMCheckBoxMenuItemJ constructor comment. |
|
CMCheckBoxMenuItemJ(String text)
CMCheckBoxMenuItemJ constructor comment. |
|
CMCheckBoxMenuItemJ(String text,
boolean b)
CMCheckBoxMenuItemJ constructor comment. |
|
CMCheckBoxMenuItemJ(String text,
Icon icon)
CMCheckBoxMenuItemJ constructor comment. |
|
CMCheckBoxMenuItemJ(String text,
Icon icon,
boolean b)
CMCheckBoxMenuItemJ constructor comment. |
Method Summary | |
boolean |
equals(Object obj)
We are comparing the name of the class so be sure to provide correct naming standards as follows below. |
String |
getTranslation()
Gets the translated String. |
String |
getTranslationId()
Gets the key of the translated String. |
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 |
setTranslation(String newTranslation)
Sets the String without translating it. |
Methods inherited from class javax.swing.JCheckBoxMenuItem |
getAccessibleContext, getSelectedObjects, getState, getUIClassID, setState |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMCheckBoxMenuItemJ()
public CMCheckBoxMenuItemJ(String text)
text
- java.lang.Stringpublic CMCheckBoxMenuItemJ(String text, Icon icon)
text
- java.lang.Stringicon
- javax.swing.Iconpublic CMCheckBoxMenuItemJ(String text, Icon icon, boolean b)
text
- java.lang.Stringicon
- javax.swing.Iconb
- booleanpublic CMCheckBoxMenuItemJ(String text, boolean b)
text
- java.lang.Stringb
- booleanpublic CMCheckBoxMenuItemJ(Icon icon)
icon
- javax.swing.IconMethod Detail |
public boolean equals(Object obj)
equals
in class Object
public String getTranslation()
public String getTranslationId()
public void setLabel(String key)
setLabel
in class AbstractButton
public void setText(String key)
setText
in class AbstractButton
public void setTranslation(String newTranslation)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |