APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifMenuItemUI

extends BasicMenuItemUI
Class Inheritance
Imports
javax.swing.*, javax.swing.event.*, java.awt.*, java.awt.event.*, javax.swing.plaf.*, javax.swing.plaf.basic.BasicMenuItemUI

MotifMenuItem implementation
Authors
Rich Schiavi, Georges Saab

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
protected class

Field Summary

Modifier and TypeField and Description
protected ChangeListener
Inherited from javax.swing.plaf.basic.BasicMenuItemUI:
acceleratorDelimiteracceleratorFontacceleratorForegroundacceleratorSelectionForegroundarrowIconcheckIcondefaultTextIconGapdisabledForegroundmenuDragMouseListenermenuItemmenuKeyListenermouseInputListeneroldBorderPaintedpropertyChangeListenerselectionBackgroundselectionForeground

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ChangeListener
protected MouseInputListener
public static ComponentUI
createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicMenuItemUI.createUI.

Returns a new instance of BasicMenuItemUI.

protected void
protected void
Inherited from javax.swing.plaf.basic.BasicMenuItemUI:
createMenuDragMouseListenercreateMenuKeyListenercreatePropertyChangeListenerdoClickgetMaximumSizegetMinimumSizegetPathgetPreferredMenuItemSizegetPreferredSizegetPropertyPrefixinstallComponentsinstallDefaultsinstallKeyboardActionsinstallUIpaintpaintBackgroundpaintMenuItempaintTextuninstallComponentsuninstallDefaultsuninstallKeyboardActionsuninstallUIupdate

Field Detail

changeListenerback to summary
protected ChangeListener changeListener

Constructor Detail

MotifMenuItemUIback to summary
public MotifMenuItemUI()

Method Detail

createChangeListenerback to summary
protected ChangeListener createChangeListener(JComponent c)
createMouseInputListenerback to summary
protected MouseInputListener createMouseInputListener(JComponent c)

Overrides javax.swing.plaf.basic.BasicMenuItemUI.createMouseInputListener.

Doc from javax.swing.plaf.basic.BasicMenuItemUI.createMouseInputListener.

Returns an instance of MouseInputListener.

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicMenuItemUI.createUI.

Doc from javax.swing.plaf.basic.BasicMenuItemUI.createUI.

Returns a new instance of BasicMenuItemUI.

installListenersback to summary
protected void installListeners()

Overrides javax.swing.plaf.basic.BasicMenuItemUI.installListeners.

Doc from javax.swing.plaf.basic.BasicMenuItemUI.installListeners.

Registers listeners.

Annotations
@Override
uninstallListenersback to summary
protected void uninstallListeners()

Overrides javax.swing.plaf.basic.BasicMenuItemUI.uninstallListeners.

Doc from javax.swing.plaf.basic.BasicMenuItemUI.uninstallListeners.

Unregisters listeners.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

protected Class MotifMenuItemUI.ChangeHandler

extends Object
implements ChangeListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.ChangeListener, java.util.EventListener

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ChangeHandlerback to summary
protected ChangeHandler()

Method Detail

stateChangedback to summary
public void stateChanged(ChangeEvent e)

Implements javax.swing.event.ChangeListener.stateChanged.

Doc from javax.swing.event.ChangeListener.stateChanged.

Invoked when the target of the listener has changed its state.

Annotations
@Override
com.sun.java.swing.plaf.motif back to summary

protected Class MotifMenuItemUI.MouseInputHandler

extends Object
implements MouseInputListener
Class Inheritance
  • java.lang.Object
  • com.sun.java.swing.plaf.motif.MotifMenuItemUI.MouseInputHandler
All Implemented Interfaces
javax.swing.event.MouseInputListener, java.awt.event.MouseMotionListener, java.util.EventListener, java.awt.event.MouseListener

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
mouseClicked(MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

public void
mouseDragged(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged.

public void
mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

public void
mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

public void
mouseMoved(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

public void
mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

public void
mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MouseInputHandlerback to summary
protected MouseInputHandler()

Method Detail

mouseClickedback to summary
public void mouseClicked(MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

Doc from java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

Annotations
@Override
mouseDraggedback to summary
public void mouseDragged(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Doc from java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Annotations
@Override
mouseEnteredback to summary
public void mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

Doc from java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

Annotations
@Override
mouseExitedback to summary
public void mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

Doc from java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

Annotations
@Override
mouseMovedback to summary
public void mouseMoved(MouseEvent e)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Doc from java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Annotations
@Override
mousePressedback to summary
public void mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

Doc from java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

Annotations
@Override
mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

Doc from java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

Annotations
@Override