|
|||||||||
| Home >> All >> org >> gjt >> sp >> jedit >> [ menu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.gjt.sp.jedit.menu
Class EnhancedMenu

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
org.gjt.sp.jedit.menu.EnhancedMenu
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, javax.swing.MenuElement, javax.swing.event.MenuListener, java.io.Serializable, javax.swing.SwingConstants
- public class EnhancedMenu
- extends javax.swing.JMenu
- implements javax.swing.event.MenuListener
- extends javax.swing.JMenu
| Nested Class Summary | |
(package private) static class |
EnhancedMenu.EditBusStub
|
| Nested classes inherited from class javax.swing.JMenu |
javax.swing.JMenu.AccessibleJMenu, javax.swing.JMenu.WinListener |
| Nested classes inherited from class javax.swing.JMenuItem |
javax.swing.JMenuItem.AccessibleJMenuItem |
| Nested classes inherited from class javax.swing.AbstractButton |
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected org.gjt.sp.jedit.ActionContext |
context
|
protected EnhancedMenu.EditBusStub |
ebStub
|
protected int |
initialComponentCount
|
protected DynamicMenuProvider |
provider
|
protected java.lang.String |
providerCode
|
| Fields inherited from class javax.swing.JMenu |
popupListener |
| Fields inherited from class javax.swing.JMenuItem |
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
EnhancedMenu(java.lang.String name)
|
|
EnhancedMenu(java.lang.String name,
java.lang.String label)
|
|
EnhancedMenu(java.lang.String name,
java.lang.String label,
org.gjt.sp.jedit.ActionContext context)
|
|
| Method Summary | |
protected void |
finalize()
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed. |
void |
init()
|
void |
menuCanceled(javax.swing.event.MenuEvent e)
Menu canceled |
void |
menuDeselected(javax.swing.event.MenuEvent e)
Menu deselected |
void |
menuSelected(javax.swing.event.MenuEvent evt)
Menu selected |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.MenuElement |
processKeyEvent, processMouseEvent |
| Field Detail |
initialComponentCount
protected int initialComponentCount
context
protected org.gjt.sp.jedit.ActionContext context
providerCode
protected java.lang.String providerCode
provider
protected DynamicMenuProvider provider
ebStub
protected EnhancedMenu.EditBusStub ebStub
| Constructor Detail |
EnhancedMenu
public EnhancedMenu(java.lang.String name)
EnhancedMenu
public EnhancedMenu(java.lang.String name, java.lang.String label)
EnhancedMenu
public EnhancedMenu(java.lang.String name, java.lang.String label, org.gjt.sp.jedit.ActionContext context)
| Method Detail |
menuSelected
public void menuSelected(javax.swing.event.MenuEvent evt)
- Description copied from interface:
javax.swing.event.MenuListener - Menu selected
- Specified by:
menuSelectedin interfacejavax.swing.event.MenuListener
menuDeselected
public void menuDeselected(javax.swing.event.MenuEvent e)
- Description copied from interface:
javax.swing.event.MenuListener - Menu deselected
- Specified by:
menuDeselectedin interfacejavax.swing.event.MenuListener
menuCanceled
public void menuCanceled(javax.swing.event.MenuEvent e)
- Description copied from interface:
javax.swing.event.MenuListener - Menu canceled
- Specified by:
menuCanceledin interfacejavax.swing.event.MenuListener
init
public void init()
finalize
protected void finalize()
throws java.lang.Exception
- Description copied from class:
java.lang.Object - Called on an object by the Virtual Machine at most once,
at some point after the Object is determined unreachable
but before it is destroyed. You would think that this
means it eventually is called on every Object, but this is
not necessarily the case. If execution terminates
abnormally, garbage collection does not always happen.
Thus you cannot rely on this method to always work.
For finer control over garbage collection, use references
from the
java.lang.refpackage.Virtual Machines are free to not call this method if they can determine that it does nothing important; for example, if your class extends Object and overrides finalize to do simply
super.finalize().finalize() will be called by a java.lang.Thread that has no locks on any Objects, and may be called concurrently. There are no guarantees on the order in which multiple objects are finalized. This means that finalize() is usually unsuited for performing actions that must be thread-safe, and that your implementation must be use defensive programming if it is to always work.
If an Exception is thrown from finalize() during garbage collection, it will be patently ignored and the Object will still be destroyed.
It is allowed, although not typical, for user code to call finalize() directly. User invocation does not affect whether automatic invocation will occur. It is also permitted, although not recommended, for a finalize() method to "revive" an object by making it reachable from normal code again.
Unlike constructors, finalize() does not get called for an object's superclass unless the implementation specifically calls
super.finalize().The default implementation does nothing.
|
|||||||||
| Home >> All >> org >> gjt >> sp >> jedit >> [ menu overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC