Class AbstractHeaderMenuPresenter
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.editor.menu.BaseMenu
-
- org.drools.workbench.screens.scenariosimulation.client.editor.menu.AbstractHeaderMenuPresenter
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,BaseMenuView.BaseMenuPresenter,HeaderMenuPresenter
- Direct Known Subclasses:
AbstractColumnMenuPresenter,AbstractHeaderGroupMenuPresenter,GridContextMenu,OtherContextMenu
public abstract class AbstractHeaderMenuPresenter extends BaseMenu implements HeaderMenuPresenter
This is the first ScenarioSimulation specific abstract class - i.e. it is bound to a specific use case. Not every implementation would need this. Menu initialization may be done in other different ways. It is provided to avoid code duplication in concrete implementations
-
-
Field Summary
Fields Modifier and Type Field Description protected ScenarioSimulationEditorConstantsconstantsprotected com.google.gwt.dom.client.LIElementgridTitleElementprotected StringHEADERCONTEXTMENU_GRID_TITLEprotected StringHEADERCONTEXTMENU_PREPEND_ROWprotected com.google.gwt.dom.client.LIElementinsertRowBelowElementThe Insert row below menu element in the header contextual menuprotected ScenarioGridModelmodel-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.editor.menu.BaseMenu
executableMenuItemPresenter, menuItemPresenter, view
-
-
Constructor Summary
Constructors Constructor Description AbstractHeaderMenuPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitMenu()This method set common SCENARIO menu itemsvoidsetEventBus(com.google.gwt.event.shared.EventBus eventBus)voidshow(GridWidget gridWidget, int mx, int my)-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.editor.menu.BaseMenu
addExecutableMenuItem, addExecutableMenuItem, addExecutableMenuItemAfter, addMenuItem, asWidget, enableElement, getRootPanel, getView, hide, initialise, isDisabled, isShown, mapEvent, onContextMenuEvent, removeMenuItem, show, updateExecutableMenuItemAttributes, updateMenuItemAttributes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.workbench.screens.scenariosimulation.client.editor.menu.BaseMenuView.BaseMenuPresenter
addExecutableMenuItem, addExecutableMenuItem, addExecutableMenuItemAfter, addMenuItem, enableElement, getView, hide, initialise, isDisabled, isShown, mapEvent, onContextMenuEvent, removeMenuItem, show
-
-
-
-
Field Detail
-
constants
protected ScenarioSimulationEditorConstants constants
-
model
protected ScenarioGridModel model
-
HEADERCONTEXTMENU_GRID_TITLE
protected String HEADERCONTEXTMENU_GRID_TITLE
-
HEADERCONTEXTMENU_PREPEND_ROW
protected String HEADERCONTEXTMENU_PREPEND_ROW
-
insertRowBelowElement
protected com.google.gwt.dom.client.LIElement insertRowBelowElement
The Insert row below menu element in the header contextual menu
-
gridTitleElement
protected com.google.gwt.dom.client.LIElement gridTitleElement
-
-
Method Detail
-
setEventBus
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
-
initMenu
public void initMenu()
This method set common SCENARIO menu items- Specified by:
initMenuin interfaceHeaderMenuPresenter
-
show
public void show(GridWidget gridWidget, int mx, int my)
-
-