DefaultPaletteAction Class

com.bea.ide.actions
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

Field Summary

protected DataFlavor
_rgdf
Array of data flavor objects.
protected boolean
_showOnMenu
Indicates whether the palette action should be shown on the Insert menu.
   
Fields from  com.bea.ide.actions.DefaultAction
_proxy
 
Fields from interface com.bea.ide.actions.IPaletteAction
PROP_AddToMenu, PROP_DataFlavors
 

Constructor Summary

DefaultPaletteAction()

 

Method Summary

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  com.bea.ide.actions.DefaultAction
getProxy, propertyChange
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface java.awt.event.ActionListener
actionPerformed
 
Methods from interface com.bea.ide.actions.IAction
actionPerformed, propertyChange
 
Methods from interface com.bea.ide.actions.IPaletteAction
getDataFlavors, showOnMenu
 
Methods from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

_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.

 

Constructor Detail

DefaultPaletteAction

public DefaultPaletteAction()
 

Method Detail

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.