org.vaadin.peter.contextmenu.client
Class ContextMenuState

java.lang.Object
  extended by com.vaadin.shared.communication.SharedState
      extended by com.vaadin.shared.AbstractComponentState
          extended by org.vaadin.peter.contextmenu.client.ContextMenuState
All Implemented Interfaces:
Serializable

public class ContextMenuState
extends com.vaadin.shared.AbstractComponentState

See Also:
Serialized Form

Nested Class Summary
static class ContextMenuState.ContextMenuItemState
           
 
Field Summary
 
Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, description, errorMessage, height, id, immediate, primaryStyleName, readOnly, styles, width
 
Fields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources
 
Constructor Summary
ContextMenuState()
           
 
Method Summary
 ContextMenuState.ContextMenuItemState addChild(String caption, String id)
           
 List<ContextMenuState.ContextMenuItemState> getRootItems()
           
 boolean isOpenAutomatically()
           
 void setOpenAutomatically(boolean openAutomatically)
          Enables or disables open automatically feature.
 void setRootItems(List<ContextMenuState.ContextMenuItemState> rootItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextMenuState

public ContextMenuState()
Method Detail

addChild

public ContextMenuState.ContextMenuItemState addChild(String caption,
                                                      String id)

getRootItems

public List<ContextMenuState.ContextMenuItemState> getRootItems()

setRootItems

public void setRootItems(List<ContextMenuState.ContextMenuItemState> rootItems)

isOpenAutomatically

public boolean isOpenAutomatically()
Returns:
true if open automatically is on. If open automatically is on, it means that context menu will always be opened when it's host component is right clicked. If automatic opening is turned off, context menu will only open when server side open(x, y) is called.

setOpenAutomatically

public void setOpenAutomatically(boolean openAutomatically)
Enables or disables open automatically feature. If open automatically is on, it means that context menu will always be opened when it's host component is right clicked. If automatic opening is turned off, context menu will only open when server side open(x, y) is called.

Parameters:
openAutomatically -


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