Extension SDK

oracle.ide.palette
Interface PaletteListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
CursorManager

public interface PaletteListener
extends java.util.EventListener

The PaletteListener interface should be implemented by clients that are interested in receiving notifications about PaletteWindow instances being opened, closed, selectionChanged, or Item Pressed.

This allows clients to attach to or detach from the given PaletteWindow for the purpose of providing extra functionality.

See Also:
PaletteEvent, PaletteWindow

Method Summary
 void itemPressed(PaletteEvent event)
          Notify listeners that an Item has been pressed on the component palette.
 void paletteClosed(PaletteEvent event)
          Notify listeners that an existing PaletteWindow has been closed.
 void paletteOpened(PaletteEvent event)
          Notify listeners that a new PaletteWindow has been opened.
 void selectionChanged(PaletteEvent event)
          Notify listener that about selection changes in the Component Palette.
 void stickyModeActivated(PaletteEvent event)
          Notify listeners that sticky mode has been activated
 void stickyModeDeactivated(PaletteEvent event)
          Notify listeners when sticky mode has been deactivated
 

Method Detail

paletteOpened

public void paletteOpened(PaletteEvent event)
Notify listeners that a new PaletteWindow has been opened. This method is called after the Component Palette is opened, and its open() method called.

Parameters:
event - Associated PaletteEvent (Palette Object)

paletteClosed

public void paletteClosed(PaletteEvent event)
Notify listeners that an existing PaletteWindow has been closed.


selectionChanged

public void selectionChanged(PaletteEvent event)
Notify listener that about selection changes in the Component Palette.

Parameters:
event - Associated PaletteEvent (Palette Object)

itemPressed

public void itemPressed(PaletteEvent event)
Notify listeners that an Item has been pressed on the component palette.

Parameters:
event - Associated PaletteEvent (Palette Object)

stickyModeActivated

public void stickyModeActivated(PaletteEvent event)
Notify listeners that sticky mode has been activated


stickyModeDeactivated

public void stickyModeDeactivated(PaletteEvent event)
Notify listeners when sticky mode has been deactivated


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.