org.graffiti.plugin.view.interactive
Class PopupMenuSelectionGesture

java.lang.Object
  extended by org.graffiti.plugin.view.interactive.PopupMenuSelectionGesture
All Implemented Interfaces:
UserGesture

public class PopupMenuSelectionGesture
extends Object
implements UserGesture

UserGesture representing the selection of an item in or the cancellation of a popup menu. It is provided for convenience and its use by InteractiveViews is not prescribed.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
PopupMenuItem

Field Summary
static String CANCEL_STRING
          The id of PopupMenuSelectionGestures representing the cancellation of a popup menu.
 
Constructor Summary
PopupMenuSelectionGesture()
          Constructs a PopupMenuItem representing the cancellation of a popup menu.
PopupMenuSelectionGesture(PopupMenuItem item)
          Constructs a PopupMenuItem representing the selection of the specified popup menu item.
 
Method Summary
 String getId()
          Returns the id of the PopupMenuItem whose selection is represented by this.
 SlotMap getSlots()
          Returns the slots attached to the PopupMenuItem whose selection is represented by this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANCEL_STRING

public static final String CANCEL_STRING
The id of PopupMenuSelectionGestures representing the cancellation of a popup menu.

See Also:
getId(), PopupMenuSelectionGesture(), Constant Field Values
Constructor Detail

PopupMenuSelectionGesture

public PopupMenuSelectionGesture(PopupMenuItem item)
Constructs a PopupMenuItem representing the selection of the specified popup menu item.

Parameters:
item - the popup menu item whose selection is represented by the PopupMenuSelectionGesture to construct.

PopupMenuSelectionGesture

public PopupMenuSelectionGesture()
Constructs a PopupMenuItem representing the cancellation of a popup menu. Its id will be CANCEL_STRING.

Method Detail

getId

public String getId()
Returns the id of the PopupMenuItem whose selection is represented by this.

Returns:
the id of the PopupMenuItem whose selection is represented by this or CANCEL_STRING if this represents the cancellation of a popup menu.

getSlots

public SlotMap getSlots()
Returns the slots attached to the PopupMenuItem whose selection is represented by this.

Returns:
the slots attached to the PopupMenuItem whose selection is represented by this or an empty SlotMap if this represents the cancellation of a popup menu.


Generated at 2012-05-30 11:00:36 PM CEST