Class GridContextMenu
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.editor.menu.BaseMenu
-
- org.drools.workbench.screens.scenariosimulation.client.editor.menu.AbstractHeaderMenuPresenter
-
- org.drools.workbench.screens.scenariosimulation.client.editor.menu.GridContextMenu
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,BaseMenuView.BaseMenuPresenter,HeaderMenuPresenter
public abstract class GridContextMenu extends AbstractHeaderMenuPresenter
The contextual menu of a ROW cell whose GROUP does allow column modification (insert/delete). It has the same items hasAbstractColumnMenuPresenterand specific ones (?)
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.dom.client.LIElementdeleteRowLIElementprotected com.google.gwt.dom.client.LIElementduplicateRowLIElementprotected static StringGRIDCONTEXTMENU_DELETE_ROWprotected static StringGRIDCONTEXTMENU_DUPLICATE_ROWprotected static StringGRIDCONTEXTMENU_GRID_TITLEprotected static StringGRIDCONTEXTMENU_INSERT_ROW_ABOVEprotected static StringGRIDCONTEXTMENU_INSERT_ROW_BELOWprotected com.google.gwt.dom.client.LIElementinsertRowAboveLIElementprotected com.google.gwt.dom.client.LIElementinsertRowBelowLIElement-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.editor.menu.AbstractHeaderMenuPresenter
constants, gridTitleElement, HEADERCONTEXTMENU_GRID_TITLE, HEADERCONTEXTMENU_PREPEND_ROW, insertRowBelowElement, model
-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.editor.menu.BaseMenu
executableMenuItemPresenter, menuItemPresenter, view
-
-
Constructor Summary
Constructors Constructor Description GridContextMenu()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitMenu()This method set common SCENARIO menu itemsvoidshow(GridWidget gridWidget, int mx, int my, int rowIndex)-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.editor.menu.AbstractHeaderMenuPresenter
setEventBus, show
-
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
-
GRIDCONTEXTMENU_GRID_TITLE
protected static final String GRIDCONTEXTMENU_GRID_TITLE
- See Also:
- Constant Field Values
-
GRIDCONTEXTMENU_INSERT_ROW_ABOVE
protected static final String GRIDCONTEXTMENU_INSERT_ROW_ABOVE
- See Also:
- Constant Field Values
-
GRIDCONTEXTMENU_INSERT_ROW_BELOW
protected static final String GRIDCONTEXTMENU_INSERT_ROW_BELOW
- See Also:
- Constant Field Values
-
GRIDCONTEXTMENU_DELETE_ROW
protected static final String GRIDCONTEXTMENU_DELETE_ROW
- See Also:
- Constant Field Values
-
GRIDCONTEXTMENU_DUPLICATE_ROW
protected static final String GRIDCONTEXTMENU_DUPLICATE_ROW
- See Also:
- Constant Field Values
-
insertRowAboveLIElement
protected com.google.gwt.dom.client.LIElement insertRowAboveLIElement
-
insertRowBelowLIElement
protected com.google.gwt.dom.client.LIElement insertRowBelowLIElement
-
duplicateRowLIElement
protected com.google.gwt.dom.client.LIElement duplicateRowLIElement
-
deleteRowLIElement
protected com.google.gwt.dom.client.LIElement deleteRowLIElement
-
-
Method Detail
-
initMenu
public void initMenu()
Description copied from class:AbstractHeaderMenuPresenterThis method set common SCENARIO menu items- Specified by:
initMenuin interfaceHeaderMenuPresenter- Overrides:
initMenuin classAbstractHeaderMenuPresenter
-
show
public void show(GridWidget gridWidget, int mx, int my, int rowIndex)
-
-