com.sas.visuals
Class RadioButton
com.sas.visuals.RadioButton
All Implemented Interfaces: ActionSource , CompositeInterface , ContainerInterface , com.sas.awt.print.PrintableInterface, VisualInterface , com.sas.beans.PropertyChangeSource, com.sas.beans.VetoableChangeSource, com.sas.ComponentInterface, com.sas.DesignTimeDropTargetInterface, com.sas.lang.StringDataInterface, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, com.sas.PublicClonable, ValidatorInterface , com.sas.ViewInterface, Alignment , MultipleValueEventSourceInterface , ResizeToFitInterface , SelectableInterface , java.awt.event.ActionListener , java.awt.event.FocusListener , java.awt.event.ItemListener , java.awt.image.ImageObserver , java.awt.ItemSelectable , java.awt.MenuContainer , java.beans.PropertyChangeListener , java.io.ObjectInputValidation , java.io.Serializable , java.lang.Cloneable , java.util.EventListener
public class RadioButton
RadioButton is a class that creates a button with text and a default icon.
When the button is pressed an ActionEvent and an ItemEvent is sent to any listeners.
Notes:
See Also: RadioButtonIcon
,
BaseButton
,
ToggleButton
,
Serialized Form
Fields inherited from class com.sas.visuals.BaseButton
actionCommand , actionListenerList , borderPainted , BOTTOM , buttonListener , buttonModel , currentInsets , defaultIcon , disabledIcon , displayTransform , focusGap , focusPainted , gap , hasFocus , horizontalAlignment , horizontalTextAlignment , item , itemListenerList , LEFT , pressedIcon , resizeToFit , RIGHT , rolloverIcon , selectedIcon , text , textPosition , TOP , updateItem , updateText , verticalAlignment , verticalTextAlignment
Method Summary
static int
getDefaultHeight ()
Returns the default height of this RadioButton in pixels
static int
getDefaultWidth ()
Returns the default width of this RadioButton in pixels
static com.sas.beans.ExtendedBeanInfo
getExtendedBeanInfo ()
Returns information used by the com.sas.beans.Introspector
to
augment the automatically introspected information about this RadioButton.
protected void
paintFocus (java.awt.Graphics g)
Overridden to paint the focus rectangle around the text and
not around the entire RadioButton.
static void
setDefaultHeight (int newHeight)
Sets the default height of this RadioButton in pixels
static void
setDefaultWidth (int newWidth)
Sets the default width of the RadioButton
Methods inherited from class com.sas.visuals.ToggleButton
buttonModelArmed , buttonModelPressed , buttonModelSelected , clone , contentShift , getContentShift , getMinimumSize , getSelectionGroup , getSource , getTextBounds , paint , paintBackground , setContentShift , setFont , setHorizontalTextAlignment , setSelected , setSelectionGroup , setSource , setText , setVerticalTextAlignment
Methods inherited from class com.sas.visuals.BaseButton
actionPerformed , addActionListener , addItemListener , addNotify , buttonModelDisabled , buttonModelRollover , computePreferredSize , detachModel , focusGained , focusLost , getActionCommand , getButtonListener , getButtonModel , getContentSize , getDefaultIcon , getDisabledIcon , getDisplayTransform , getFocusGap , getHorizontalAlignment , getHorizontalTextAlignment , getIconTextGap , getInsets , getItem , getKeyAccelerator , getPressedIcon , getRequiredInterfaces , getRolloverIcon , getSelectedIcon , getSelectedObjects , getText , getTextPosition , getVerticalAlignment , getVerticalTextAlignment , isBorderPainted , isFocusPainted , isFocusTraversable , isResizeToFit , isSelected , itemStateChanged , processActionEvent , processEvent , processItemEvent , propertyChange , refresh , refreshItem , removeActionListener , removeItemListener , resizeToFit , setActionCommand , setBorderPainted , setBounds , setButtonListener , setButtonModel , setDefaultIcon , setDefaultValues , setDisabledIcon , setDisplayTransform , setEnabled , setFocusGap , setFocusPainted , setHorizontalAlignment , setIconTextGap , setInsets , setItem , setKeyAccelerator , setPressedIcon , setResizeToFit , setRolloverIcon , setSelectedIcon , setTextPosition , setVerticalAlignment
Methods inherited from class com.sas.awt.ContainerContainerComponent
dragEnter , dragLeave , dragOver , drop , getContainerInterfaceSupportInfo , getErrorHandler , getValidator , isIDEDnDDropBarrier , isIDEDnDDropTarget , isValid , removeNotify , setContainerInterfaceSupportInfo , setErrorHandler , setIDEDnDDropBarrier , setIDEDnDDropTarget , setInsets , setValidator , superAddNotify , superGetInsets , superRemoveNotify , superSetDefaultValues
Methods inherited from class com.sas.awt.ContainerVisualComponent
addLink , addPropertyChangeListener , addVetoableChangeListener , anyPropertyChangeListeners , attachModel , attachView , detachView , dumpComponent , firePropertyChange , firePropertyChange , fireVetoableChange , getBackgroundColor , getBorder , getComponentDescription , getComponentSupportInfo , getEventMethod , getEventValues , getFont , getForegroundColor , getHeight , getHorizontalPosition , getLinkInfo , getModelInterface , getPageBounds , getPreferredSize , getPrePainter , getPrintOptionsPanel , getVerticalPosition , getViewInterfaceSupportInfo , getVisualInterfaceSupportInfo , getWidth , initialize , initializeComponent , isDesignTime , isEnabled , isFocus , isLinked , isTransparent , isVisible , pageExists , print , printFinalize , printInitialize , queryLinks , queryLinks , removeAllLinks , removeInterfaceTraps , removeLink , removePropertyChangeListener , removeVetoableChangeListener , setBackgroundColor , setBorder , setComponentDescription , setComponentSupportInfo , setFocus , setForegroundColor , setHeight , setHorizontalPosition , setLinkInfo , setModelInterface , setPreferredSize , setPrePainter , setRequiredInterfaces , setTransparent , setVerticalPosition , setViewInterfaceSupportInfo , setVisible , setVisualInterfaceSupportInfo , setWidth , superGetFont , superGetMinimumSize , superGetPreferredSize , superIsEnabled , superIsVisible , superPaint , superSetBounds , superSetEnabled , superSetFont , superSetVisible , superUpdate , supportsListenerInterface , supportsRequiredInterfaces , trapInterfaceEvents , update , validateObject
Methods inherited from interface com.sas.awt.VisualInterface
getBackgroundColor , getBorder , getFont , getForegroundColor , getHeight , getHorizontalPosition , getPreferredSize , getPrePainter , getVerticalPosition , getVisualInterfaceSupportInfo , getWidth , isEnabled , isFocus , isTransparent , isVisible , setBackgroundColor , setBorder , setFocus , setForegroundColor , setHeight , setHorizontalPosition , setPreferredSize , setPrePainter , setTransparent , setVerticalPosition , setVisible , setVisualInterfaceSupportInfo , setWidth , superGetFont , superGetMinimumSize , superGetPreferredSize , superIsEnabled , superIsVisible , superPaint , superSetBounds , superSetEnabled , superSetFont , superSetVisible , superUpdate
RadioButton
public RadioButton ()
Default constructor.
RadioButton
public RadioButton (java.lang.String txt)
Constructor that sets the text.
Parameters: txt
- the text of the RadioButton
RadioButton
public RadioButton (java.lang.String txt,
boolean selected)
Constructor that sets the text and selected state.
Parameters: txt
- the text of the RadioButtonselected
- the selected state of the RadioButton
getDefaultHeight
public static int getDefaultHeight ()
Returns the default height of this RadioButton in pixels
Returns: pixel value of the default height See Also: setDefaultHeight(int)
getDefaultWidth
public static int getDefaultWidth ()
Returns the default width of this RadioButton in pixels
Returns: pixel value of default width See Also: setDefaultWidth(int)
setDefaultHeight
public static void setDefaultHeight (int newHeight)
Sets the default height of this RadioButton in pixels
Parameters: newHeight
- the desired default height in pixelsSee Also: getDefaultHeight()
setDefaultWidth
public static void setDefaultWidth (int newWidth)
Sets the default width of the RadioButton
Parameters: newWidth
- the desired default width in pixelsSee Also: setDefaultWidth(int)
getExtendedBeanInfo
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo ()
Returns information used by the com.sas.beans.Introspector
to
augment the automatically introspected information about this RadioButton.
Returns: the ExtendedBeanInfo for this class
paintFocus
protected void paintFocus (java.awt.Graphics g)
Overridden to paint the focus rectangle around the text and
not around the entire RadioButton.
Overrides: paintFocus
in class ToggleButton
Parameters: g
- the Graphics context
Copyright © 2009 SAS Institute Inc. All Rights Reserved.