javax.rad.genui.menu
Class UICheckBoxMenuItem
java.lang.Object
javax.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
- All Implemented Interfaces:
- ITranslatable, IActionComponent, IIcon, ILabel, IToggleActionComponent, IAlignmentConstants, IComponent, IResource, ICheckBoxMenuItem, IMenuItem, INamedObject
public class UICheckBoxMenuItem
- extends AbstractUIMenuItem<ICheckBoxMenuItem>
- implements ICheckBoxMenuItem
Platform and technology independent checkbox menuitem.
It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
|
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.component.AbstractUIActionComponent |
eventAction, getAccelerator, getActionCommand, getHorizontalAlignment, getImage, getMargins, getText, getVerticalAlignment, setAccelerator, setActionCommand, setHorizontalAlignment, setImage, setMargins, setMargins, setText, setVerticalAlignment, updateTranslation |
| Methods inherited from class javax.rad.genui.UIComponent |
addNotify, beforeAddNotify, capture, createCellFormatter, createNodeFormatter, debug, error, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getResource, getSize, getToolTipText, getTranslation, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, removeNotify, requestFocus, setBackground, setBounds, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPreferredSize, setPreferredSize, setSize, setSize, setToolTipText, setTranslation, setTranslationEnabled, setVisible, translate |
| Methods inherited from interface javax.rad.ui.IComponent |
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible |
UICheckBoxMenuItem
public UICheckBoxMenuItem()
- Creates a new instance of
UICheckBoxMenuItem.
- See Also:
ICheckBoxMenuItem
UICheckBoxMenuItem
protected UICheckBoxMenuItem(ICheckBoxMenuItem pMenuItem)
- Creates a new instance of
UICheckBoxMenuItem with the given
menu item.
- Parameters:
pMenuItem - the menu item- See Also:
ICheckBoxMenuItem
isSelected
public boolean isSelected()
- Checks if the component is selected.
- Specified by:
isSelected in interface IToggleActionComponent
- Returns:
true if the component is selected, otherwise false
setSelected
public void setSelected(boolean pPressed)
- Sets the selected state of the component.
- Specified by:
setSelected in interface IToggleActionComponent
- Parameters:
pPressed - true selects the toggle component,
false deselects the toggle component.
setPressedImage
public void setPressedImage(IImage pImage)
- Sets the image for the button when the button is pressed.
- Specified by:
setPressedImage in interface IToggleActionComponent
- Parameters:
pImage - the mouse pressed image
getPressedImage
public IImage getPressedImage()
- Gets the image for the button when the button is pressed.
- Specified by:
getPressedImage in interface IToggleActionComponent
- Returns:
- the mouse pressed image
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.