javax.rad.ui.component
Interface IToggleActionComponent

All Superinterfaces:
IActionComponent, IAlignmentConstants, IComponent, IIcon, ILabel, INamedObject, IResource
All Known Subinterfaces:
ICheckBox, ICheckBoxMenuItem, IRadioButton, IToggleButton
All Known Implementing Classes:
AbstractUIToggleButton, SwingCheckBox, SwingCheckBoxMenuItem, SwingRadioButton, SwingToggleButton, UICheckBox, UICheckBoxMenuItem, UIRadioButton, UIToggleButton

public interface IToggleActionComponent
extends IActionComponent

Platform and technology independent toggle action component definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
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 interface javax.rad.ui.component.IActionComponent
eventAction, getAccelerator, getActionCommand, getMargins, setAccelerator, setActionCommand, setMargins
 
Methods inherited from interface javax.rad.ui.component.IIcon
getImage, setImage
 
Methods inherited from interface javax.rad.ui.component.ILabel
getText, setText
 
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
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Method Detail

isSelected

boolean isSelected()
Checks if the component is selected.

Returns:
true if the component is selected, otherwise false

setSelected

void setSelected(boolean pPressed)
Sets the selected state of the component.

Parameters:
pPressed - true selects the toggle component, false deselects the toggle component.

setPressedImage

void setPressedImage(IImage pImage)
Sets the image for the button when the button is pressed.

Parameters:
pImage - the mouse pressed image

getPressedImage

IImage getPressedImage()
Gets the image for the button when the button is pressed.

Returns:
the mouse pressed image


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.