Interface BaseMenuView.BaseMenuPresenter
-
- All Known Subinterfaces:
HeaderMenuPresenter
- All Known Implementing Classes:
AbstractColumnMenuPresenter,AbstractHeaderGroupMenuPresenter,AbstractHeaderMenuPresenter,BaseMenu,ExpectedContextMenu,GivenContextMenu,GridContextMenu,HeaderExpectedContextMenu,HeaderGivenContextMenu,OtherContextMenu
- Enclosing interface:
- BaseMenuView<M extends BaseMenu>
public static interface BaseMenuView.BaseMenuPresenter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.gwt.dom.client.LIElementaddExecutableMenuItem(String id, String label, String i18n)Add an executable menu voice in form ofLIElementto the underlying view It is an overload ofaddExecutableMenuItem(String, String, String, Event)to dynamically provide an event at runtimecom.google.gwt.dom.client.LIElementaddExecutableMenuItem(String id, String label, String i18n, com.google.web.bindery.event.shared.Event event)Add an executable menu voice in form ofLIElementto the underlying viewcom.google.gwt.dom.client.LIElementaddExecutableMenuItemAfter(String id, String label, String i18n, com.google.gwt.dom.client.LIElement previous)Add an executable menu voice in form ofLIElementto the underlying view after another one It is an overload ofaddExecutableMenuItem(String, String, String, Event)to dynamically provide an event at runtimecom.google.gwt.dom.client.LIElementaddMenuItem(String id, String label, String i18n)Add a label menu voice in form ofLIElementto the underlying viewvoidenableElement(com.google.gwt.dom.client.Element element, boolean enabled)BaseMenuViewgetView()voidhide()voidinitialise()booleanisDisabled(com.google.gwt.dom.client.Element element)booleanisShown()Method to retrieve the visibility state of the viewvoidmapEvent(com.google.gwt.dom.client.LIElement executableMenuItem, com.google.web.bindery.event.shared.Event toBeMapped)Method to map anEventto a given EXECUTABLELIElement.voidonContextMenuEvent(com.google.gwt.event.dom.client.ContextMenuEvent event)voidremoveMenuItem(com.google.gwt.dom.client.LIElement toRemove)Remove a menu voice from the given menuvoidshow(int mx, int my)
-
-
-
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 ofLIElementto 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 ofLIElementto the underlying view- Parameters:
id-label-i18n-event- theEventto fire on click- Returns:
-
addExecutableMenuItem
com.google.gwt.dom.client.LIElement addExecutableMenuItem(String id, String label, String i18n)
Add an executable menu voice in form ofLIElementto the underlying view It is an overload ofaddExecutableMenuItem(String, String, String, Event)to dynamically provide an event at runtime- Parameters:
id-label-i18n-
-
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 ofLIElementto the underlying view after another one It is an overload ofaddExecutableMenuItem(String, String, String, Event)to dynamically provide an event at runtime- Parameters:
id-label-i18n-previous- theLIElementafter 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 anEventto a given EXECUTABLELIElement. To be used whenLIElementhas been retrieved withaddExecutableMenuItem(String, String, String)- Parameters:
executableMenuItem-toBeMapped-
-
show
void show(int mx, int my)
-
hide
void hide()
-
getView
BaseMenuView getView()
-
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)
-
-