DefaultPaletteAction Class
- public abstract class DefaultPaletteAction
extends DefaultAction
implements IPaletteAction
This class provides a default implementation of the IPaletteAction interface.
Implementors may extend this class to implement actions. It provides
default implementations of most of the action methods.
-
Hierarchy
-
Object
DefaultAction
DefaultPaletteAction
-
All Implemented Interfaces
-
ActionListener
, EventListener
, IAction
, IPaletteAction
, PropertyChangeListener
-
Direct Known Subclasses
-
ControlDataPaletteViewDriver.JavaMethodAction
protected DataFlavor |
-
_rgdf
- Array of data flavor objects.
|
protected boolean |
-
_showOnMenu
- Indicates whether the palette action should be shown on the Insert menu.
|
public DataFlavor [] |
-
getDataFlavors ()
- Optional array of DataFlavor objects identifying the type of
palette item this action will handle.
|
public boolean |
-
showOnMenu ()
- Optional boolean indicating whether this action should
be added to the Insert menu as well as the palette.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_rgdf
protected DataFlavor
_rgdf
- Array of data flavor objects.
_showOnMenu
protected boolean _showOnMenu
- Indicates whether the palette action should be shown on the Insert menu.
DefaultPaletteAction
public DefaultPaletteAction()
getDataFlavors() Method
public DataFlavor
[] getDataFlavors()
Optional array of DataFlavor objects identifying the type of
palette item this action will handle. If this
property is set, these data flavors will be exposed
to drop target implementations during a drag and
can be used to accept or reject the drag at the
current cursor location.
showOnMenu() Method
public boolean showOnMenu()
Optional boolean indicating whether this action should
be added to the Insert menu as well as the palette.
If this property is not set, an Insert menu item
will be added.