public static interface BaseMenuView.BaseMenuPresenter
Modifier and Type | Method and Description |
---|---|
com.google.gwt.dom.client.LIElement |
addExecutableMenuItem(String id,
String label,
String i18n)
Add an executable menu voice in form of
LIElement to the underlying view
It is an overload of addExecutableMenuItem(String, String, String, Event) to dynamically provide
an event at runtime |
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 |
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 |
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 |
void |
enableElement(com.google.gwt.dom.client.Element element,
boolean enabled) |
BaseMenuView |
getView() |
void |
hide() |
void |
initialise() |
boolean |
isDisabled(com.google.gwt.dom.client.Element element) |
boolean |
isShown()
Method to retrieve the visibility state of the view
|
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 . |
void |
onContextMenuEvent(com.google.gwt.event.dom.client.ContextMenuEvent event) |
void |
removeMenuItem(com.google.gwt.dom.client.LIElement toRemove)
Remove a menu voice from the given menu
|
void |
show(int mx,
int my) |
void initialise()
com.google.gwt.dom.client.LIElement addMenuItem(String id, String label, String i18n)
LIElement
to the underlying viewid
- label
- i18n
- com.google.gwt.dom.client.LIElement addExecutableMenuItem(String id, String label, String i18n, com.google.web.bindery.event.shared.Event event)
LIElement
to the underlying viewid
- label
- i18n
- event
- the Event
to fire on clickcom.google.gwt.dom.client.LIElement addExecutableMenuItem(String id, String label, String i18n)
LIElement
to the underlying view
It is an overload of addExecutableMenuItem(String, String, String, Event)
to dynamically provide
an event at runtimeid
- label
- i18n
- com.google.gwt.dom.client.LIElement addExecutableMenuItemAfter(String id, String label, String i18n, com.google.gwt.dom.client.LIElement previous)
LIElement
to the underlying view after another one
It is an overload of addExecutableMenuItem(String, String, String, Event)
to dynamically provide
an event at runtimeid
- label
- i18n
- previous
- the LIElement
after which append the newly created onevoid removeMenuItem(com.google.gwt.dom.client.LIElement toRemove)
toRemove
- void mapEvent(com.google.gwt.dom.client.LIElement executableMenuItem, com.google.web.bindery.event.shared.Event toBeMapped)
Event
to a given EXECUTABLE LIElement
.
To be used when LIElement
has been retrieved with addExecutableMenuItem(String, String, String)
executableMenuItem
- toBeMapped
- void show(int mx, int my)
void hide()
BaseMenuView getView()
void enableElement(com.google.gwt.dom.client.Element element, boolean enabled)
boolean isDisabled(com.google.gwt.dom.client.Element element)
boolean isShown()
void onContextMenuEvent(com.google.gwt.event.dom.client.ContextMenuEvent event)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.