swingwtx.swing
Class JCheckBoxMenuItem
java.lang.Object
swingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.swing.AbstractButton
swingwtx.swing.JSWTMenuComponent
swingwtx.swing.JMenuItem
swingwtx.swing.JCheckBoxMenuItem
- All Implemented Interfaces:
- ButtonModel, ImageObserver, ItemSelectable, MenuContainer, SwingConstants
- public class JCheckBoxMenuItem
- extends JMenuItem
- implements SwingConstants, ButtonModel
| 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.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 |
| 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 |
pState
protected boolean pState
itemListeners
protected java.util.Vector itemListeners
JCheckBoxMenuItem
public JCheckBoxMenuItem()
JCheckBoxMenuItem
public JCheckBoxMenuItem(Action a)
JCheckBoxMenuItem
public JCheckBoxMenuItem(Icon icon)
JCheckBoxMenuItem
public JCheckBoxMenuItem(Icon icon,
boolean b)
JCheckBoxMenuItem
public JCheckBoxMenuItem(java.lang.String text)
JCheckBoxMenuItem
public JCheckBoxMenuItem(java.lang.String text,
boolean b)
JCheckBoxMenuItem
public JCheckBoxMenuItem(java.lang.String text,
Icon icon)
JCheckBoxMenuItem
public JCheckBoxMenuItem(java.lang.String text,
Icon icon,
boolean b)
JCheckBoxMenuItem
public JCheckBoxMenuItem(java.lang.String text,
int mnemonic)
JCheckBoxMenuItem
public JCheckBoxMenuItem(java.lang.String text,
int mnemonic,
boolean b)
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
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
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