View Javadoc
1   package com.vaadin.contextmenu.client;
2   
3   import java.io.Serializable;
4   import java.util.List;
5   
6   import com.vaadin.shared.AbstractComponentState;
7   import com.vaadin.shared.communication.URLReference;
8   
9   // FIXME: TabIndex? MenuBar's state needs to extend a TabIndex state, ContextMenu's state doesn't need it, what's the solution?
10  @SuppressWarnings("serial")
11  public class MenuSharedState extends AbstractComponentState {
12      // public class MenuBarState extends TabIndexState {
13      // {
14      // primaryStyleName = "v-menubar";
15      // }
16      // }
17  
18      public List<MenuItemState> menuItems;
19      public boolean htmlContentAllowed;
20  
21      public static class MenuItemState implements Serializable {
22          public int id;
23          public boolean separator;
24          public String text;
25          public boolean command;
26          public URLReference icon;
27          public boolean enabled;
28          public String description;
29          public boolean checkable;
30          public boolean checked;
31          public List<MenuItemState> childItems;
32          public String styleName;
33      }
34  }