swingwtx.swing
Class JRadioButtonMenuItem

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwtx.swing.JComponent
              extended byswingwtx.swing.AbstractButton
                  extended byswingwtx.swing.JSWTMenuComponent
                      extended byswingwtx.swing.JMenuItem
                          extended byswingwtx.swing.JRadioButtonMenuItem
All Implemented Interfaces:
ButtonModel, ImageObserver, ItemSelectable, MenuContainer, SwingConstants

public class JRadioButtonMenuItem
extends JMenuItem
implements ButtonModel


Nested Class Summary
 
Nested classes inherited from class swingwtx.swing.JComponent
JComponent.InternalFrameSelectionListener
 
Field Summary
protected  java.util.Vector itemListeners
           
protected  boolean pState
           
 
Fields inherited from class swingwtx.swing.JSWTMenuComponent
actionCommand, actionListeners, CANCELED, DESELECTED, menuAction, menuListeners, pAccelerator, peer, pEnabled, pImage, pMnemonic, pNamedAccelerator, pText, SELECTED
 
Fields inherited from class swingwtx.swing.AbstractButton
changeListeners, pAction, pGroup, pHAlign, pHTextPosition, pIcon, pModel, ppeer, pSelection, pVAlign, pVTextPosition
 
Fields inherited from class swingwtx.swing.JComponent
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap
 
Fields inherited from class swingwt.awt.Container
composite, comps, containerListeners, layout, queuedValidateRequest
 
Fields inherited from class swingwt.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwtx.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JRadioButtonMenuItem()
           
JRadioButtonMenuItem(Action a)
           
JRadioButtonMenuItem(Icon icon)
           
JRadioButtonMenuItem(Icon icon, boolean b)
           
JRadioButtonMenuItem(java.lang.String text)
           
JRadioButtonMenuItem(java.lang.String text, boolean b)
           
JRadioButtonMenuItem(java.lang.String text, Icon icon)
           
JRadioButtonMenuItem(java.lang.String text, Icon icon, boolean b)
           
JRadioButtonMenuItem(java.lang.String text, int mnemonic)
           
JRadioButtonMenuItem(java.lang.String text, int mnemonic, boolean b)
           
 
Method Summary
 void addItemListener(ItemListener l)
           
 java.lang.Object[] getSelectedObjects()
           
 boolean getState()
           
 boolean isSelected()
           
 void processActionEvent(int id)
          Sends action events to listeners Overriden from JSWTMenuComponent to handle selection events
 void processItemEvent()
          Handles firing of Item events for when selection changes
 void removeItemListener(ItemListener l)
           
 void setSelected(boolean b)
           
 void setState(boolean b)
           
 void setSwingWTParent(org.eclipse.swt.widgets.Menu parent, org.eclipse.swt.widgets.Shell shell)
           
 
Methods inherited from class swingwtx.swing.JMenuItem
isArmed, isPressed, isRollover, setAction, setArmed, setPressed, setRollover
 
Methods inherited from class swingwtx.swing.JSWTMenuComponent
addActionListener, addMenuListener, dispose, getActionCommand, getLabel, getMenuPeer, getMnemonic, getText, getToolTipText, isEnabled, processMenuEvent, registerEvents, removeActionListener, removeMenuListener, requestFocus, setAccelerator, setActionCommand, setCachedProperties, setEnabled, setIcon, setLabel, setMnemonic, setMnemonic, setText, setToolTipText, showMnemonic
 
Methods inherited from class swingwtx.swing.AbstractButton
addChangeListener, getAction, getHorizontalAlignment, getHorizontalTextPosition, getModel, getVerticalAlignment, getVerticalTextPosition, registerActionEvents, removeChangeListener, setAction, setBorderPainted, setContentAreaFilled, setDisabledIcon, setFocusPainted, setGroup, setHorizontalAlignment, setHorizontalTextPosition, setModel, setPressedIcon, setRolloverIcon, setRolloverSelectedIcon, setSelectedIcon, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class swingwtx.swing.JComponent
add, add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setBorder, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setSwingWTParent
 
Methods inherited from class swingwt.awt.Container
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate
 
Methods inherited from class swingwt.awt.Component
add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, calculatePreferredSize, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSize, getSWTPeer, getToolkit, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isFocusable, isMinimumSizeSet, isShowing, isVisible, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerComponentEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setComponentOrientation, setComponentRemoved, setCursor, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface swingwtx.swing.ButtonModel
addActionListener, addChangeListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, removeActionListener, removeChangeListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover
 

Field Detail

pState

protected boolean pState

itemListeners

protected java.util.Vector itemListeners
Constructor Detail

JRadioButtonMenuItem

public JRadioButtonMenuItem()

JRadioButtonMenuItem

public JRadioButtonMenuItem(Action a)

JRadioButtonMenuItem

public JRadioButtonMenuItem(Icon icon)

JRadioButtonMenuItem

public JRadioButtonMenuItem(Icon icon,
                            boolean b)

JRadioButtonMenuItem

public JRadioButtonMenuItem(java.lang.String text)

JRadioButtonMenuItem

public JRadioButtonMenuItem(java.lang.String text,
                            boolean b)

JRadioButtonMenuItem

public JRadioButtonMenuItem(java.lang.String text,
                            Icon icon)

JRadioButtonMenuItem

public JRadioButtonMenuItem(java.lang.String text,
                            Icon icon,
                            boolean b)

JRadioButtonMenuItem

public JRadioButtonMenuItem(java.lang.String text,
                            int mnemonic)

JRadioButtonMenuItem

public JRadioButtonMenuItem(java.lang.String text,
                            int mnemonic,
                            boolean b)
Method Detail

getSelectedObjects

public java.lang.Object[] getSelectedObjects()
Specified by:
getSelectedObjects in interface ItemSelectable
Overrides:
getSelectedObjects in class JMenuItem

getState

public boolean getState()

setState

public void setState(boolean b)

isSelected

public boolean isSelected()
Specified by:
isSelected in interface ButtonModel
Overrides:
isSelected in class JMenuItem

setSelected

public void setSelected(boolean b)
Specified by:
setSelected in interface ButtonModel
Overrides:
setSelected in class JMenuItem

addItemListener

public void addItemListener(ItemListener l)
Specified by:
addItemListener in interface ButtonModel
Overrides:
addItemListener in class AbstractButton

removeItemListener

public void removeItemListener(ItemListener l)
Specified by:
removeItemListener in interface ButtonModel
Overrides:
removeItemListener in class AbstractButton

processActionEvent

public void processActionEvent(int id)
Sends action events to listeners Overriden from JSWTMenuComponent to handle selection events

Overrides:
processActionEvent in class JSWTMenuComponent

processItemEvent

public void processItemEvent()
Handles firing of Item events for when selection changes

Overrides:
processItemEvent in class AbstractButton

setSwingWTParent

public void setSwingWTParent(org.eclipse.swt.widgets.Menu parent,
                             org.eclipse.swt.widgets.Shell shell)
                      throws java.lang.Exception
Overrides:
setSwingWTParent in class JMenuItem
Throws:
java.lang.Exception