public static interface ExecutableMenuItemView.Presenter
Modifier and Type | Method and Description |
---|---|
void |
enableElement(boolean toEnable) |
void |
fireEvent(com.google.gwt.dom.client.LIElement clickedElement) |
com.google.gwt.dom.client.LIElement |
getLExecutableMenuElement(String id,
String innerText)
This method retrieve an EXECUTABLE element (i.e. with a behaviour) to be put inside the menu
It is an overload of
getLExecutableMenuElement(String, String, Event) to dynamically provide
an event at runtime |
com.google.gwt.dom.client.LIElement |
getLExecutableMenuElement(String id,
String innerText,
com.google.web.bindery.event.shared.Event event)
This method retrieve an EXECUTABLE element (i.e. with a behaviour) to be put inside the menu
|
void |
init(BaseMenu parent) |
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 |
onClickEvent(com.google.gwt.event.dom.client.ClickEvent event,
com.google.gwt.dom.client.LIElement clickedElement) |
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus) |
void init(BaseMenu parent)
void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
void fireEvent(com.google.gwt.dom.client.LIElement clickedElement)
com.google.gwt.dom.client.LIElement getLExecutableMenuElement(String id, String innerText, com.google.web.bindery.event.shared.Event event)
id
- innerText
- event
- com.google.gwt.dom.client.LIElement getLExecutableMenuElement(String id, String innerText)
getLExecutableMenuElement(String, String, Event)
to dynamically provide
an event at runtimeid
- innerText
- 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 getLExecutableMenuElement(String, String)
executableMenuItem
- toBeMapped
- void enableElement(boolean toEnable)
void onClickEvent(com.google.gwt.event.dom.client.ClickEvent event, com.google.gwt.dom.client.LIElement clickedElement)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.