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

public Class MotifMenuUI

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

A Motif L&F implementation of MenuUI.
Authors
Georges Saab, Rich Schiavi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
protected class

Field Summary

Inherited from javax.swing.plaf.basic.BasicMenuUI:
changeListenermenuListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Hides javax.swing.plaf.basic.BasicMenuUI.createUI.

Constructs a new instance of BasicMenuUI.

private boolean
Inherited from javax.swing.plaf.basic.BasicMenuUI:
createMenuDragMouseListenercreateMenuKeyListenercreateMenuListenercreatePropertyChangeListenergetMaximumSizegetMinimumSizegetPropertyPrefixinstallDefaultsinstallKeyboardActionsinstallListenerssetupPostTimeruninstallDefaultsuninstallKeyboardActionsuninstallListeners

Constructor Detail

MotifMenuUIback to summary
public MotifMenuUI()

Method Detail

createChangeListenerback to summary
protected ChangeListener createChangeListener(JComponent c)

Overrides javax.swing.plaf.basic.BasicMenuUI.createChangeListener.

Doc from javax.swing.plaf.basic.BasicMenuUI.createChangeListener.

Returns an instance of ChangeListener.

Annotations
@Override
createMouseInputListenerback to summary
protected MouseInputListener createMouseInputListener(JComponent c)

Overrides javax.swing.plaf.basic.BasicMenuUI.createMouseInputListener.

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

Returns an instance of MouseInputListener.

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

Hides javax.swing.plaf.basic.BasicMenuUI.createUI.

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

Constructs a new instance of BasicMenuUI.

popupIsOpenback to summary
private boolean popupIsOpen(JMenu m, MenuElement[] me)
com.sun.java.swing.plaf.motif back to summary

public Class MotifMenuUI.MotifChangeHandler

extends ChangeHandler
Class Inheritance

Field Summary

Inherited from javax.swing.plaf.basic.BasicMenuUI.ChangeHandler:
isSelectedmenuuiwasFocused

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides javax.swing.plaf.basic.BasicMenuUI.ChangeHandler.stateChanged.

Implements javax.swing.event.ChangeListener.stateChanged.

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

Constructor Detail

MotifChangeHandlerback to summary
public MotifChangeHandler(JMenu m, MotifMenuUI ui)

Method Detail

stateChangedback to summary
public void stateChanged(ChangeEvent e)

Overrides javax.swing.plaf.basic.BasicMenuUI.ChangeHandler.stateChanged.

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 MotifMenuUI.MouseInputHandler

extends Object
implements MouseInputListener
Class Inheritance
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