|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.component.AbstractUIActionComponent<C>
javax.rad.genui.menu.AbstractUIMenuItem<ICheckBoxMenuItem>
javax.rad.genui.menu.UICheckBoxMenuItem
public class UICheckBoxMenuItem
Platform and technology independent checkbox menuitem. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Field Summary |
---|
Fields inherited from class javax.rad.genui.UIComponent |
---|
bTranslate, lLastTranslationModified, parent, popupMenu |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
|
UICheckBoxMenuItem()
Creates a new instance of UICheckBoxMenuItem . |
protected |
UICheckBoxMenuItem(ICheckBoxMenuItem pMenuItem)
Creates a new instance of UICheckBoxMenuItem with the given
menu item. |
|
UICheckBoxMenuItem(java.lang.String pText)
Creates a new instance of UICheckBoxMenuItem . |
Method Summary | |
---|---|
IImage |
getPressedImage()
Gets the image for the button when the button is pressed. |
boolean |
isSelected()
Checks if the component is selected. |
void |
setPressedImage(IImage pImage)
Sets the image for the button when the button is pressed. |
void |
setSelected(boolean pPressed)
Sets the selected state of the component. |
Methods inherited from class javax.rad.genui.menu.AbstractUIMenuItem |
---|
findMenu, getMenu |
Methods inherited from class javax.rad.genui.component.AbstractUIActionComponent |
---|
eventAction, getAccelerator, getActionCommand, getHorizontalAlignment, getImage, getMargins, getText, getVerticalAlignment, isPreserveAspectRatio, setAccelerator, setActionCommand, setHorizontalAlignment, setImage, setMargins, setMargins, setPreserveAspectRatio, setText, setVerticalAlignment, updateTranslation |
Methods inherited from class javax.rad.genui.UIResource |
---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.component.IActionComponent |
---|
eventAction, getAccelerator, getActionCommand, getMargins, setAccelerator, setActionCommand, setMargins |
Methods inherited from interface javax.rad.ui.component.IIcon |
---|
getImage, isPreserveAspectRatio, setImage, setPreserveAspectRatio |
Methods inherited from interface javax.rad.ui.component.ILabel |
---|
getText, setText |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Methods inherited from interface javax.rad.ui.IAlignmentConstants |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Constructor Detail |
---|
public UICheckBoxMenuItem()
UICheckBoxMenuItem
.
ICheckBoxMenuItem
protected UICheckBoxMenuItem(ICheckBoxMenuItem pMenuItem)
UICheckBoxMenuItem
with the given
menu item.
pMenuItem
- the menu itemICheckBoxMenuItem
public UICheckBoxMenuItem(java.lang.String pText)
UICheckBoxMenuItem
.
pText
- the text.ICheckBoxMenuItem
Method Detail |
---|
public boolean isSelected()
isSelected
in interface IToggleActionComponent
true
if the component is selected, otherwise false
public void setSelected(boolean pPressed)
setSelected
in interface IToggleActionComponent
pPressed
- true
selects the toggle component,
false
deselects the toggle component.public void setPressedImage(IImage pImage)
setPressedImage
in interface IToggleActionComponent
pImage
- the mouse pressed imagepublic IImage getPressedImage()
getPressedImage
in interface IToggleActionComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |