javax.rad.genui.component
Class AbstractUIToggleButton<C extends IToggleButton>

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<C>
          extended by javax.rad.genui.component.AbstractUIActionComponent<C>
              extended by javax.rad.genui.component.AbstractUIButton<C>
                  extended by javax.rad.genui.component.AbstractUIToggleButton<C>
Type Parameters:
C - instance of IToggleButton
All Implemented Interfaces:
ITranslatable, IActionComponent, IButton, IIcon, ILabel, IToggleActionComponent, IToggleButton, IAlignmentConstants, IComponent, IResource, INamedObject
Direct Known Subclasses:
UICheckBox, UIRadioButton, UIToggleButton

public abstract class AbstractUIToggleButton<C extends IToggleButton>
extends AbstractUIButton<C>
implements IToggleButton

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

See Also:
Button, JToggleButton

Field Summary
 
Fields inherited from class javax.rad.genui.UIComponent
lLastTranslationModified, parent
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
protected AbstractUIToggleButton(C pToggleButton)
          Creates a new instance of UIToggleButton.
 
Method Summary
 boolean isSelected()
          Checks if the component is selected.
 void setSelected(boolean pPressed)
          Sets the selected state of the component.
 
Methods inherited from class javax.rad.genui.component.AbstractUIButton
getHorizontalTextPosition, getImageTextGap, getMouseOverImage, getPressedImage, getVerticalTextPosition, isBorderOnMouseEntered, isBorderPainted, isDefaultButton, setBorderOnMouseEntered, setBorderPainted, setDefaultButton, setHorizontalTextPosition, setImageTextGap, setMouseOverImage, setPressedImage, setVerticalTextPosition
 
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 class javax.rad.genui.UIResource
equals, getUIResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.component.IButton
getHorizontalTextPosition, getImageTextGap, getMouseOverImage, getPressedImage, getVerticalTextPosition, isBorderOnMouseEntered, isBorderPainted, isDefaultButton, setBorderOnMouseEntered, setBorderPainted, setDefaultButton, setHorizontalTextPosition, setImageTextGap, setMouseOverImage, setPressedImage, setVerticalTextPosition
 
Methods inherited from interface javax.rad.ui.component.IToggleActionComponent
getPressedImage, setPressedImage
 
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
 

Constructor Detail

AbstractUIToggleButton

protected AbstractUIToggleButton(C pToggleButton)
Creates a new instance of UIToggleButton.

Parameters:
pToggleButton - the IToggleButton.
See Also:
IToggleButton
Method Detail

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.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.