info.magnolia.ui.workbench.event
Class ItemShortcutKeyEvent

java.lang.Object
  extended by info.magnolia.ui.workbench.event.ItemShortcutKeyEvent
All Implemented Interfaces:
info.magnolia.event.Event<ItemShortcutKeyEvent.Handler>

public class ItemShortcutKeyEvent
extends Object
implements info.magnolia.event.Event<ItemShortcutKeyEvent.Handler>

This event is fired when a registered key shortcut is pressed while an item is selected (i.e. a row in the data grid within the workbench representing either a Node or a Property).


Nested Class Summary
static interface ItemShortcutKeyEvent.Handler
          Handles ItemShortcutKeyEvent events.
 
Constructor Summary
ItemShortcutKeyEvent(String workspace, JcrItemAdapter item, int keyCode, int... modifierKeys)
           
 
Method Summary
 void dispatch(ItemShortcutKeyEvent.Handler handler)
           
 JcrItemAdapter getItem()
           
 String getItemId()
           
 int getKeyCode()
           
 int[] getModifierKeys()
           
 String getWorkspace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemShortcutKeyEvent

public ItemShortcutKeyEvent(String workspace,
                            JcrItemAdapter item,
                            int keyCode,
                            int... modifierKeys)
Method Detail

getWorkspace

public String getWorkspace()

getItem

public JcrItemAdapter getItem()

getItemId

public String getItemId()

getKeyCode

public int getKeyCode()

getModifierKeys

public int[] getModifierKeys()

dispatch

public void dispatch(ItemShortcutKeyEvent.Handler handler)
Specified by:
dispatch in interface info.magnolia.event.Event<ItemShortcutKeyEvent.Handler>


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.