org.vaadin.peter.contextmenu.client
Class ContextMenuState
java.lang.Object
com.vaadin.shared.communication.SharedState
com.vaadin.shared.AbstractComponentState
org.vaadin.peter.contextmenu.client.ContextMenuState
- All Implemented Interfaces:
- Serializable
public class ContextMenuState
- extends com.vaadin.shared.AbstractComponentState
- See Also:
- Serialized Form
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextMenuState
public ContextMenuState()
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 © 2013 Magnolia International Ltd.. All Rights Reserved.