com.sibvisions.rad.ui.swing.impl.component
Class SwingRadioButton

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<C>
      extended by com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
          extended by com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
              extended by com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
                  extended by com.sibvisions.rad.ui.swing.impl.component.SwingAbstractButton<C>
                      extended by com.sibvisions.rad.ui.swing.impl.component.SwingToggleButton<JRadioButton>
                          extended by com.sibvisions.rad.ui.swing.impl.component.SwingRadioButton
All Implemented Interfaces:
ActionListener, ComponentListener, KeyListener, MouseListener, EventListener, IActionComponent, IButton, IIcon, ILabel, IRadioButton, IToggleActionComponent, IToggleButton, IAlignmentConstants, IComponent, IContainer, IResource, INamedObject

public class SwingRadioButton
extends SwingToggleButton<JRadioButton>
implements IRadioButton

The SwingRadioButton is the IRadioButton implementation for swing.

See Also:
JRadioButton, IRadioButton

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingAbstractButton
image, imgOver, imgPressed
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
eventComponentMoved, eventComponentResized, eventSource, factory, parent
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
SwingRadioButton()
          Creates a new instance of SwingRadioButton.
 
Method Summary
 void setMargins(IInsets pMargins)
          Sets space for margin between the button's border and the text.
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingToggleButton
isSelected, setSelected
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.component.SwingAbstractButton
actionPerformed, eventAction, getAccelerator, getActionCommand, getHorizontalTextPosition, getImage, getImageTextGap, getMargins, getMouseOverImage, getPressedImage, getText, getVerticalTextPosition, isBorderOnMouseEntered, isBorderPainted, isDefaultButton, setAccelerator, setActionCommand, setBackground, setBorderOnMouseEntered, setBorderPainted, setDefaultButton, setHorizontalAlignment, setHorizontalTextPosition, setImage, setImageTextGap, setMouseOverImage, setPressedImage, setText, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent
capture, getToolTipText, setToolTipText
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
componentHidden, componentMoved, componentResized, componentShown, createImage, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, requestFocus, setBounds, setCursor, setEnabled, setEventSource, setFactory, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setVisible, validate
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
equals, getResource, 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, isSelected, setPressedImage, setSelected
 
Methods inherited from interface javax.rad.ui.component.IActionComponent
eventAction, getAccelerator, getActionCommand, getMargins, setAccelerator, setActionCommand
 
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

SwingRadioButton

public SwingRadioButton()
Creates a new instance of SwingRadioButton.

Method Detail

setMargins

public void setMargins(IInsets pMargins)
Sets space for margin between the button's border and the text. Setting to null will cause the action component to use the default margin.

Specified by:
setMargins in interface IActionComponent
Overrides:
setMargins in class SwingAbstractButton<JRadioButton>
Parameters:
pMargins - the space between the border and the test


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.