Class AbstractColumnMenuPresenter
- 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.AbstractColumnMenuPresenter
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,BaseMenuView.BaseMenuPresenter,HeaderMenuPresenter
- Direct Known Subclasses:
ExpectedContextMenu,GivenContextMenu
public abstract class AbstractColumnMenuPresenter extends AbstractHeaderMenuPresenter
This class is meant to provide common methods to column-specific menusExpectedContextMenuandGivenContextMenu, both instance and property header. It is provided to avoid code duplication in concrete implementations
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.dom.client.LIElementcolumnContextLIElementprotected StringCOLUMNCONTEXTMENU_COLUMNprotected StringCOLUMNCONTEXTMENU_DELETE_COLUMNprotected StringCOLUMNCONTEXTMENU_DELETE_INSTANCEprotected StringCOLUMNCONTEXTMENU_DUPLICATE_INSTANCEprotected StringCOLUMNCONTEXTMENU_I18Nprotected StringCOLUMNCONTEXTMENU_INSERT_COLUMN_LEFTprotected StringCOLUMNCONTEXTMENU_INSERT_COLUMN_RIGHTprotected StringCOLUMNCONTEXTMENU_LABELprotected com.google.gwt.dom.client.LIElementdeleteColumnInstanceLIElementprotected com.google.gwt.dom.client.LIElementduplicateInstanceLIElementprotected com.google.gwt.dom.client.LIElementinsertColumnLeftLIElementprotected com.google.gwt.dom.client.LIElementinsertColumnRightLIElement-
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 AbstractColumnMenuPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitMenu()This method set column-specific menu items and common SCENARIO menu itemsvoidshow(GridWidget gridWidget, int mx, int my, int columnIndex, String group, boolean asProperty, boolean showDuplicateInstance)-
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
-
COLUMNCONTEXTMENU_COLUMN
protected String COLUMNCONTEXTMENU_COLUMN
-
COLUMNCONTEXTMENU_INSERT_COLUMN_LEFT
protected String COLUMNCONTEXTMENU_INSERT_COLUMN_LEFT
-
COLUMNCONTEXTMENU_INSERT_COLUMN_RIGHT
protected String COLUMNCONTEXTMENU_INSERT_COLUMN_RIGHT
-
COLUMNCONTEXTMENU_DELETE_COLUMN
protected String COLUMNCONTEXTMENU_DELETE_COLUMN
-
COLUMNCONTEXTMENU_DELETE_INSTANCE
protected String COLUMNCONTEXTMENU_DELETE_INSTANCE
-
COLUMNCONTEXTMENU_DUPLICATE_INSTANCE
protected String COLUMNCONTEXTMENU_DUPLICATE_INSTANCE
-
COLUMNCONTEXTMENU_LABEL
protected String COLUMNCONTEXTMENU_LABEL
-
COLUMNCONTEXTMENU_I18N
protected String COLUMNCONTEXTMENU_I18N
-
insertColumnLeftLIElement
protected com.google.gwt.dom.client.LIElement insertColumnLeftLIElement
-
insertColumnRightLIElement
protected com.google.gwt.dom.client.LIElement insertColumnRightLIElement
-
deleteColumnInstanceLIElement
protected com.google.gwt.dom.client.LIElement deleteColumnInstanceLIElement
-
duplicateInstanceLIElement
protected com.google.gwt.dom.client.LIElement duplicateInstanceLIElement
-
columnContextLIElement
protected com.google.gwt.dom.client.LIElement columnContextLIElement
-
-
Method Detail
-
initMenu
public void initMenu()
This method set column-specific menu items and common SCENARIO menu items- Specified by:
initMenuin interfaceHeaderMenuPresenter- Overrides:
initMenuin classAbstractHeaderMenuPresenter
-
show
public void show(GridWidget gridWidget, int mx, int my, int columnIndex, String group, boolean asProperty, boolean showDuplicateInstance)
-
-