info.magnolia.ui.workbench.event
Class SelectionChangedEvent

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

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

This event is fired when 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 SelectionChangedEvent.Handler
          Handles SelectionChangedEvent events.
 
Constructor Summary
SelectionChangedEvent(String workspace, Set<JcrItemAdapter> items)
           
 
Method Summary
 void dispatch(SelectionChangedEvent.Handler handler)
           
 JcrItemAdapter getFirstItem()
           
 String getFirstItemId()
           
 List<String> getItemIds()
           
 List<JcrItemAdapter> getItems()
           
 String getWorkspace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionChangedEvent

public SelectionChangedEvent(String workspace,
                             Set<JcrItemAdapter> items)
Method Detail

getWorkspace

public String getWorkspace()

getItemIds

public List<String> getItemIds()

getFirstItem

public JcrItemAdapter getFirstItem()

getFirstItemId

public String getFirstItemId()

getItems

public List<JcrItemAdapter> getItems()

dispatch

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


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