Extension SDK 9.0.5

oracle.jdeveloper.vcs.spi
Class VCSContextMenuListener

java.lang.Object
  extended byoracle.jdeveloper.vcs.spi.VCSContextMenuListener
All Implemented Interfaces:
ContextMenuListener

public abstract class VCSContextMenuListener
extends java.lang.Object
implements ContextMenuListener

Utility listener class for handling context menu events.

Since:
9.0.5

Constructor Summary
VCSContextMenuListener()
           
 
Method Summary
protected abstract  java.awt.Component[] getContextMenuItems(Context context)
          Gets the menu items to be added directly to the context menu when popup notification is received.
 boolean handleDefaultAction(Context context)
          Called when the user double clicks on an item that has a popup menu.
 void poppingDown(ContextMenu popup)
           
 void poppingUp(ContextMenu popup)
          Called just before the context menu is popping up.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCSContextMenuListener

public VCSContextMenuListener()
Method Detail

handleDefaultAction

public boolean handleDefaultAction(Context context)
Description copied from interface: ContextMenuListener
Called when the user double clicks on an item that has a popup menu. Only one listener should return true from this menu.

Specified by:
handleDefaultAction in interface ContextMenuListener
Parameters:
context - the current context

poppingDown

public void poppingDown(ContextMenu popup)
Specified by:
poppingDown in interface ContextMenuListener

poppingUp

public void poppingUp(ContextMenu popup)
Description copied from interface: ContextMenuListener
Called just before the context menu is popping up.

Specified by:
poppingUp in interface ContextMenuListener

getContextMenuItems

protected abstract java.awt.Component[] getContextMenuItems(Context context)
Gets the menu items to be added directly to the context menu when popup notification is received.

Parameters:
context - the current context.
Returns:
the menu item components to add.

Extension SDK

 

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