devplugin
Class ContextMenuSeparatorAction
java.lang.Object
javax.swing.AbstractAction
devplugin.ContextMenuSeparatorAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public final class ContextMenuSeparatorAction
- extends AbstractAction
A class that brings support for adding separators
to the context menu of a plugin.
Simply add the instance of this class to your context menu,
it will be replaced with a separator so the user will
see a separator in the context menu.
- Author:
- René Mach
- See Also:
- Serialized Form
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
getInstance
public static ContextMenuSeparatorAction getInstance()
- Gets an instance of this class.
The instance is also shown in task menu of the ProgramInfoDialog.
- Returns:
- The instance of this class, that is shown in the task
menu of the ProgramInfoDialog.
- See Also:
#getDisabledOnTaskMenuInstance()} to get an instance that
isn't shown in the task menu of the ProgramInfoDialog.
getDisabledOnTaskMenuInstance
public static ContextMenuSeparatorAction getDisabledOnTaskMenuInstance()
- Gets an instance of this class.
The instance is not shown in task menu of the ProgramInfoDialog.
- Returns:
- The instance of this class, that is not shown in the task
menu of the ProgramInfoDialog.
- See Also:
#getInstance()} to get an instance that
is shown in the task menu of the ProgramInfoDialog.
putValue
public void putValue(String key,
Object newValue)
- Overwritten to disable changings of values of this class.
So use it or don't use it, it has no effect.
- Specified by:
putValue in interface Action- Overrides:
putValue in class AbstractAction
actionPerformed
public void actionPerformed(ActionEvent e)
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)