Interface BaseMenuView.BaseMenuPresenter

    • Method Detail

      • initialise

        void initialise()
      • addMenuItem

        com.google.gwt.dom.client.LIElement addMenuItem​(String id,
                                                        String label,
                                                        String i18n)
        Add a label menu voice in form of LIElement to the underlying view
        Parameters:
        id -
        label -
        i18n -
        Returns:
      • addExecutableMenuItem

        com.google.gwt.dom.client.LIElement addExecutableMenuItem​(String id,
                                                                  String label,
                                                                  String i18n,
                                                                  com.google.web.bindery.event.shared.Event event)
        Add an executable menu voice in form of LIElement to the underlying view
        Parameters:
        id -
        label -
        i18n -
        event - the Event to fire on click
        Returns:
      • addExecutableMenuItemAfter

        com.google.gwt.dom.client.LIElement addExecutableMenuItemAfter​(String id,
                                                                       String label,
                                                                       String i18n,
                                                                       com.google.gwt.dom.client.LIElement previous)
        Add an executable menu voice in form of LIElement to the underlying view after another one It is an overload of addExecutableMenuItem(String, String, String, Event) to dynamically provide an event at runtime
        Parameters:
        id -
        label -
        i18n -
        previous - the LIElement after which append the newly created one
      • removeMenuItem

        void removeMenuItem​(com.google.gwt.dom.client.LIElement toRemove)
        Remove a menu voice from the given menu
        Parameters:
        toRemove -
      • mapEvent

        void mapEvent​(com.google.gwt.dom.client.LIElement executableMenuItem,
                      com.google.web.bindery.event.shared.Event toBeMapped)
        Method to map an Event to a given EXECUTABLE LIElement. To be used when LIElement has been retrieved with addExecutableMenuItem(String, String, String)
        Parameters:
        executableMenuItem -
        toBeMapped -
      • show

        void show​(int mx,
                  int my)
      • hide

        void hide()
      • enableElement

        void enableElement​(com.google.gwt.dom.client.Element element,
                           boolean enabled)
      • isDisabled

        boolean isDisabled​(com.google.gwt.dom.client.Element element)
      • isShown

        boolean isShown()
        Method to retrieve the visibility state of the view
        Returns:
      • onContextMenuEvent

        void onContextMenuEvent​(com.google.gwt.event.dom.client.ContextMenuEvent event)