nu.zoom.ldap.eon.directory.tree
Class DeleteItem

java.lang.Object
  extended by nu.zoom.ldap.eon.directory.tree.DeleteItem
All Implemented Interfaces:
DirectoryTreePopUpItem, ActionValues

public class DeleteItem
extends Object
implements DirectoryTreePopUpItem

Version:
$Revision: 1.5 $
Author:
$Author: johan $

Constructor Summary
DeleteItem(org.ops4j.gaderian.Messages messages, Workbench workbench, DirectoryEventListenerRegistry eventRegistry)
           
 
Method Summary
 void activate(DirectoryTree tree)
          Called by the DirectoryTree when the user activates the menu item.
 Integer getAcceleratorKey()
          Set the accelerator key.
 Integer getAcceleratorKeyMask()
          Set the accelerator key.
 Icon getIcon()
          Get the Icon to use on the action.
 Integer getMnemonic()
          Get the mnemonic key to use for the action.
 String getName()
          Get the name of the action.
 String getToolTip()
          Get the tooltip text to use for this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteItem

public DeleteItem(org.ops4j.gaderian.Messages messages,
                  Workbench workbench,
                  DirectoryEventListenerRegistry eventRegistry)
Method Detail

activate

public void activate(DirectoryTree tree)
Description copied from interface: DirectoryTreePopUpItem
Called by the DirectoryTree when the user activates the menu item.

Specified by:
activate in interface DirectoryTreePopUpItem
Parameters:
tree - The tree from which the user activated the item.

getName

public String getName()
Description copied from interface: ActionValues
Get the name of the action. This will be displayed on menues and toolbars.

Specified by:
getName in interface ActionValues
Returns:
The name. Must not be null.

getToolTip

public String getToolTip()
Description copied from interface: ActionValues
Get the tooltip text to use for this action.

Specified by:
getToolTip in interface ActionValues
Returns:
The tooltip text. Null is valid and means to not set a tooltip text.

getIcon

public Icon getIcon()
Description copied from interface: ActionValues
Get the Icon to use on the action.

Specified by:
getIcon in interface ActionValues
Returns:
The icon to use, null indicates that this action should not have an Icon.

getMnemonic

public Integer getMnemonic()
Description copied from interface: ActionValues
Get the mnemonic key to use for the action. A mnemonic is a key that makes an already visible menu item be chosen. See How to use menues

Specified by:
getMnemonic in interface ActionValues
Returns:
A key event for the mnemonic key. Return null if this item does not have a mnemonic key.
See Also:
Action.MNEMONIC_KEY, KeyEvent

getAcceleratorKey

public Integer getAcceleratorKey()
Description copied from interface: ActionValues
Set the accelerator key. An accelerator is a key combination that causes a menu item to be chosen, whether or not it's visible. See How to use menues

Specified by:
getAcceleratorKey in interface ActionValues
Returns:
The key used to trigger the action. For example KeyEvent.VK_L. Null means that no accelerator key is used.
See Also:
KeyEvent, Action.ACCELERATOR_KEY

getAcceleratorKeyMask

public Integer getAcceleratorKeyMask()
Description copied from interface: ActionValues
Set the accelerator key. An accelerator is a key combination that causes a menu item to be chosen, whether or not it's visible. See How to use menues

Specified by:
getAcceleratorKeyMask in interface ActionValues
Returns:
The key mask used in combination with the accelrator key (for example KeyEvent.CTRL_DOWN_MASK)). Null means that no mask is used.
See Also:
KeyEvent, Action.ACCELERATOR_KEY


Copyright © 2011. All Rights Reserved.