|
|||||||||||
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.JButton | +--planetj.gui.CMButtonJ
Provides additional functionality such as I18N and other common 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 | |
CMButtonJ()
CMButtonJ constructor comment. |
|
CMButtonJ(Icon icon)
CMButtonJ constructor comment. |
|
CMButtonJ(String text)
CMButtonJ constructor comment. |
|
CMButtonJ(String text,
Icon icon)
CMButtonJ constructor comment. |
Method Summary | |
void |
doClick()
Programatically perform a "click". |
Action |
getAction()
Gets the action property (javax.swing.Action) value. |
String |
getTranslation()
Gets the non-translated String. |
String |
getTranslationId()
Gets the key of the translation id EXAMPLE ^OkButton |
void |
setAction(Action action)
Sets the action property (javax.swing.Action) value. |
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 javax.swing.JButton |
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, removeNotify, setDefaultCapable, updateUI |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMButtonJ()
public CMButtonJ(String text)
text
- java.lang.Stringpublic CMButtonJ(String text, Icon icon)
text
- java.lang.Stringicon
- javax.swing.Iconpublic CMButtonJ(Icon icon)
icon
- javax.swing.IconMethod Detail |
public void doClick()
doClick
in class AbstractButton
public Action getAction()
getAction
in class AbstractButton
setAction(javax.swing.Action)
public String getTranslation()
public String getTranslationId()
public void setAction(Action action)
setAction
in class AbstractButton
action
- The new value for the property.getAction()
public void setLabel(String key)
setLabel
in class AbstractButton
public void setText(String key)
setText
in class AbstractButton
public void setToolTipText(String toolTip)
setToolTipText
in class JComponent
toolTip
- The new value for the property.JComponent.getToolTipText()
public void setTranslation(String newTranslation)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |