Save This Page
Home » jcommon-1.0.13 » org.jfree.ui.action » [javadoc | source]
org.jfree.ui.action
public class: ActionRadioButton [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         javax.swing.JComponent
            javax.swing.AbstractButton
               javax.swing.JToggleButton
                  javax.swing.JRadioButton
                     org.jfree.ui.action.ActionRadioButton

All Implemented Interfaces:
    Accessible, SwingConstants, ItemSelectable, TransferHandler$HasGetTransferHandler, Serializable, MenuContainer, ImageObserver

The ActionRadioButton is used to connect an Action and its properties to a JRadioButton. This functionality is already implemented in JDK 1.3 but needed for JDK 1.2.2 compatibility.
Fields inherited from javax.swing.AbstractButton:
MODEL_CHANGED_PROPERTY,  TEXT_CHANGED_PROPERTY,  MNEMONIC_CHANGED_PROPERTY,  MARGIN_CHANGED_PROPERTY,  VERTICAL_ALIGNMENT_CHANGED_PROPERTY,  HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY,  VERTICAL_TEXT_POSITION_CHANGED_PROPERTY,  HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY,  BORDER_PAINTED_CHANGED_PROPERTY,  FOCUS_PAINTED_CHANGED_PROPERTY,  ROLLOVER_ENABLED_CHANGED_PROPERTY,  CONTENT_AREA_FILLED_CHANGED_PROPERTY,  ICON_CHANGED_PROPERTY,  PRESSED_ICON_CHANGED_PROPERTY,  SELECTED_ICON_CHANGED_PROPERTY,  ROLLOVER_ICON_CHANGED_PROPERTY,  ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY,  DISABLED_ICON_CHANGED_PROPERTY,  DISABLED_SELECTED_ICON_CHANGED_PROPERTY
Fields inherited from javax.swing.JComponent:
WHEN_FOCUSED,  WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,  WHEN_IN_FOCUSED_WINDOW,  UNDEFINED_CONDITION,  TOOL_TIP_TEXT_KEY
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  LEFT_ALIGNMENT,  RIGHT_ALIGNMENT
Constructor:
 public ActionRadioButton() 
 public ActionRadioButton(String text) 
    Creates a Button and set the given text as label.
    Parameters:
    text - the label for the new button.
 public ActionRadioButton(Icon icon) 
    Creates an ActionButton and sets the given icon on the button.
    Parameters:
    icon - the icon for the button.
 public ActionRadioButton(Action action) 
    Nreates an ActionButton and assigns the given action with the button.
    Parameters:
    action - the action.
 public ActionRadioButton(String text,
    Icon icon) 
    Creates an ActionButton and sets the given text and icon on the button.
    Parameters:
    text - the label for the new button.
    icon - the icon for the button.
Method from org.jfree.ui.action.ActionRadioButton Summary:
getAction,   setAction,   setEnabled
Methods from javax.swing.JRadioButton:
getAccessibleContext,   getUIClassID,   updateUI
Methods from javax.swing.JToggleButton:
getAccessibleContext,   getUIClassID,   updateUI
Methods from javax.swing.AbstractButton:
addActionListener,   addChangeListener,   addItemListener,   doClick,   doClick,   getAction,   getActionCommand,   getActionListeners,   getChangeListeners,   getDisabledIcon,   getDisabledSelectedIcon,   getDisplayedMnemonicIndex,   getHideActionText,   getHorizontalAlignment,   getHorizontalTextPosition,   getIcon,   getIconTextGap,   getItemListeners,   getLabel,   getMargin,   getMnemonic,   getModel,   getMultiClickThreshhold,   getPressedIcon,   getRolloverIcon,   getRolloverSelectedIcon,   getSelectedIcon,   getSelectedObjects,   getText,   getUI,   getVerticalAlignment,   getVerticalTextPosition,   imageUpdate,   isBorderPainted,   isContentAreaFilled,   isFocusPainted,   isRolloverEnabled,   isSelected,   removeActionListener,   removeChangeListener,   removeItemListener,   removeNotify,   setAction,   setActionCommand,   setBorderPainted,   setContentAreaFilled,   setDisabledIcon,   setDisabledSelectedIcon,   setDisplayedMnemonicIndex,   setEnabled,   setFocusPainted,   setHideActionText,   setHorizontalAlignment,   setHorizontalTextPosition,   setIcon,   setIconTextGap,   setLabel,   setLayout,   setMargin,   setMnemonic,   setMnemonic,   setModel,   setMultiClickThreshhold,   setPressedIcon,   setRolloverEnabled,   setRolloverIcon,   setRolloverSelectedIcon,   setSelected,   setSelectedIcon,   setText,   setUI,   setVerticalAlignment,   setVerticalTextPosition,   updateUI
Methods from javax.swing.JComponent:
addAncestorListener,   addNotify,   addVetoableChangeListener,   computeVisibleRect,   contains,   createToolTip,   disable,   enable,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessibleContext,   getActionForKeyStroke,   getActionMap,   getAlignmentX,   getAlignmentY,   getAncestorListeners,   getAutoscrolls,   getBaseline,   getBaselineResizeBehavior,   getBorder,   getBounds,   getClientProperty,   getComponentPopupMenu,   getConditionForKeyStroke,   getDebugGraphicsOptions,   getDefaultLocale,   getFontMetrics,   getGraphics,   getHeight,   getInheritsPopupMenu,   getInputMap,   getInputMap,   getInputVerifier,   getInsets,   getInsets,   getListeners,   getLocation,   getMaximumSize,   getMinimumSize,   getNextFocusableComponent,   getPopupLocation,   getPreferredSize,   getRegisteredKeyStrokes,   getRootPane,   getSize,   getToolTipLocation,   getToolTipText,   getToolTipText,   getTopLevelAncestor,   getTransferHandler,   getUIClassID,   getVerifyInputWhenFocusTarget,   getVetoableChangeListeners,   getVisibleRect,   getWidth,   getX,   getY,   grabFocus,   isDoubleBuffered,   isLightweightComponent,   isManagingFocus,   isOpaque,   isOptimizedDrawingEnabled,   isPaintingForPrint,   isPaintingTile,   isRequestFocusEnabled,   isValidateRoot,   paint,   paintImmediately,   paintImmediately,   print,   printAll,   putClientProperty,   registerKeyboardAction,   registerKeyboardAction,   removeAncestorListener,   removeNotify,   removeVetoableChangeListener,   repaint,   repaint,   requestDefaultFocus,   requestFocus,   requestFocus,   requestFocusInWindow,   resetKeyboardActions,   reshape,   revalidate,   scrollRectToVisible,   setActionMap,   setAlignmentX,   setAlignmentY,   setAutoscrolls,   setBackground,   setBorder,   setComponentPopupMenu,   setDebugGraphicsOptions,   setDefaultLocale,   setDoubleBuffered,   setEnabled,   setFocusTraversalKeys,   setFont,   setForeground,   setInheritsPopupMenu,   setInputMap,   setInputVerifier,   setMaximumSize,   setMinimumSize,   setNextFocusableComponent,   setOpaque,   setPreferredSize,   setRequestFocusEnabled,   setToolTipText,   setTransferHandler,   setVerifyInputWhenFocusTarget,   setVisible,   unregisterKeyboardAction,   update,   updateUI
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   countComponents,   deliverEvent,   doLayout,   findComponentAt,   findComponentAt,   getAlignmentX,   getAlignmentY,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentZOrder,   getComponents,   getContainerListeners,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMousePosition,   getPreferredSize,   insets,   invalidate,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   layout,   list,   list,   locate,   minimumSize,   paint,   paintComponents,   preferredSize,   print,   printComponents,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setLayout,   transferFocusBackward,   transferFocusDownCycle,   update,   validate
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   bounds,   checkImage,   checkImage,   contains,   contains,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   dispatchEvent,   doLayout,   enable,   enable,   enableInputMethods,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBaseline,   getBaselineResizeBehavior,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMousePosition,   getMouseWheelListeners,   getName,   getParent,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getSize,   getSize,   getToolkit,   getTreeLock,   getWidth,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   inside,   invalidate,   isBackgroundSet,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   isFontSet,   isForegroundSet,   isLightweight,   isMaximumSizeSet,   isMinimumSizeSet,   isOpaque,   isPreferredSizeSet,   isShowing,   isValid,   isVisible,   keyDown,   keyUp,   layout,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   minimumSize,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   nextFocus,   paint,   paintAll,   postEvent,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocusInWindow,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setMaximumSize,   setMinimumSize,   setName,   setPreferredSize,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   update,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.ui.action.ActionRadioButton Detail:
 public Action getAction() 
    Returns the assigned action or null if no action has been assigned.
 public  void setAction(Action newAction) 
    Assigns the given action to this button. The properties of the action will be assigned to the button. If an previous action was set, the old action is unregistered.

    • NAME - specifies the button text
    • SMALL_ICON - specifies the buttons icon
    • MNEMONIC_KEY - specifies the buttons mnemonic key
    • ACCELERATOR_KEY - specifies the buttons accelerator
 public  void setEnabled(boolean b) 
    Enables and disables this button and if an action is assigned to this button the propertychange is forwarded to the assigned action.