Known Direct Subclasses
|
Class Overview
A default L&F implementation of MenuUI. This implementation
is a "combined" view/controller.
Summary
Nested Classes |
class |
BasicMenuUI.ChangeHandler |
As of Java 2 platform 1.4, this previously undocumented class
is now obsolete. |
class |
BasicMenuUI.MouseInputHandler |
Instantiated and used by a menu item to handle the current menu selection
from mouse events. |
[Expand]
Inherited Methods |
From class
javax.swing.plaf.basic.BasicMenuItemUI
|
From class
javax.swing.plaf.ComponentUI
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Fields
Public Constructors
Public Methods
Returns the specified component's maximum size appropriate for
the look and feel. If null
is returned, the maximum
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method invokes getPreferredSize
and returns that value.
Parameters
c
| the component whose maximum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components |
Returns
- a
Dimension
object or null
Protected Methods
Creates a PropertyChangeListener
which will be added to
the menu item.
If this method returns null then it will not be added to the menu item.
Returns
- an instance of a
PropertyChangeListener
or null
protected
String
getPropertyPrefix
()
protected
void
installDefaults
()
protected
void
installKeyboardActions
()
protected
void
installListeners
()
protected
void
setupPostTimer
(JMenu menu)
protected
void
uninstallDefaults
()
protected
void
uninstallKeyboardActions
()
protected
void
uninstallListeners
()