Class MenuEditProxy

All Implemented Interfaces:
HasHandlers

public class MenuEditProxy extends CanvasEditProxy
EditProxy that handles MenuButton and MenuBar objects when editMode is enabled.
See Also:
  • Constructor Details

    • MenuEditProxy

      public MenuEditProxy()
    • MenuEditProxy

      public MenuEditProxy(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static MenuEditProxy getOrCreateRef(JavaScriptObject jsObj)
    • create

      public JavaScriptObject create()
      Overrides:
      create in class CanvasEditProxy
    • getInlineEditText

      public void getInlineEditText()
      Returns the text based on the current component state to be edited inline. Called by the EditProxy.inlineEditForm to obtain the starting edit value.

      Returns the component's menu definition in wiki-style.

      Overrides:
      getInlineEditText in class EditProxy
    • setInlineEditText

      public void setInlineEditText(String newValue)
      Save the new value into the component's state. Called by the EditProxy.inlineEditForm to commit the change.

      Updates the component's menu.

      Lines starting with "--", "==" or "title:" are considered titles for the MenuButtons. The menuItem definitions follow the title to define the menu contents.

      Each menuItem title is entered on its own line. A keyTitle can follow the title separated by a comma. A leading "x" or "o" marks the menuItem as checked. MenuItems can be marked as disabled with a leading or trailing dash (-). A sub-menu is indicated with a trailing >. Any line consisting entirely of one or more dashes (-) or equals (=) indicates a separator line.

      Overrides:
      setInlineEditText in class EditProxy
      Parameters:
      newValue - the new component menu