Class ScenarioSimulationMainGridPanelMouseMoveHandler
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.handlers.AbstractScenarioSimulationGridPanelHandler
-
- org.drools.workbench.screens.scenariosimulation.client.handlers.ScenarioSimulationMainGridPanelMouseMoveHandler
-
- All Implemented Interfaces:
com.ait.lienzo.client.core.event.NodeMouseMoveHandler,com.google.gwt.event.shared.EventHandler,ScenarioSimulationGridPanelMouseMoveHandler
@Dependent public class ScenarioSimulationMainGridPanelMouseMoveHandler extends AbstractScenarioSimulationGridPanelHandler implements ScenarioSimulationGridPanelMouseMoveHandler
This class is meant to provide common implementations for on hover behavior to be used by both mouse keyboard handler
-
-
Field Summary
Fields Modifier and Type Field Description protected IntegercurrentlyShownBodyColumnIndexprotected IntegercurrentlyShownBodyRowIndexprotected ErrorReportPopoverPresentererrorReportPopupPresenter-
Fields inherited from class org.drools.workbench.screens.scenariosimulation.client.handlers.AbstractScenarioSimulationGridPanelHandler
rendererHelper, scenarioGrid, scenarioGridPanel
-
-
Constructor Summary
Constructors Constructor Description ScenarioSimulationMainGridPanelMouseMoveHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdecorateWithEMHTMLTag(String value)protected StringdecorateWithStrongHTMLTag(String value)protected StringgenerateFieldsHierarchy(List<String> hierarchy)protected intgetCellHeight(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column, int uiRowIndex)protected StringgetCollectionHTMLErrorMessage(Object wrongValue, List<String> pathToWrongValue)voidhidePopover()protected booleanmanageBodyCoordinates(Integer uiRowIndex, Integer uiColumnIndex)This method check if the click happened on an column of a grid row.protected voidmanageFactMappingValue(org.drools.scenariosimulation.api.model.FactMappingValue toManage, Integer uiRowIndex, Integer uiColumnIndex)protected voidmanageFailedFactMappingValue(org.drools.scenariosimulation.api.model.FactMappingValue toManage, Integer uiRowIndex, Integer uiColumnIndex)protected booleanmanageGivenExpectHeaderCoordinates(ScenarioHeaderMetaData clickedScenarioHeaderMetadata, ScenarioGridColumn scenarioGridColumn, String group, Integer uiColumnIndex)This method manage the click happened on an GIVEN or EXPECT header, starting editing it if not already did.voidonNodeMouseMove(com.ait.lienzo.client.core.event.NodeMouseMoveEvent event)protected com.ait.lienzo.client.core.types.Point2DretrieveCellMiddleXYPosition(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column, int uiRowIndex)voidsetErrorReportPopupPresenter(ErrorReportPopoverPresenter errorReportPopupPresenter)protected voidsetupPopupPresenter(org.drools.scenariosimulation.api.model.FactMappingValue factMappingValue, int uiRowIndex, int uiColumnIndex, int xPosition, int yPosition, PopoverView.Position position)protected voidshowErrorPopoverWithoutSuggestion(String errorMessage, int xPosition, int yPosition, PopoverView.Position position)protected voidshowErrorPopoverWithSuggestion(Object expectedValue, Object errorValue, int uiRowIndex, int uiColumnIndex, int xPosition, int yPosition, PopoverView.Position position)-
Methods inherited from class org.drools.workbench.screens.scenariosimulation.client.handlers.AbstractScenarioSimulationGridPanelHandler
convertDOMToGridCoordinateLocal, getColumnScenarioHeaderMetaDataLocal, getUiColumnIndexLocal, getUiHeaderRowIndexLocal, getUiRowIndexLocal, manageCoordinates, manageHeaderCoordinates, setScenarioGridPanel
-
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.handlers.ScenarioSimulationGridPanelMouseMoveHandler
setScenarioGridPanel
-
-
-
-
Field Detail
-
errorReportPopupPresenter
protected ErrorReportPopoverPresenter errorReportPopupPresenter
-
currentlyShownBodyRowIndex
protected Integer currentlyShownBodyRowIndex
-
currentlyShownBodyColumnIndex
protected Integer currentlyShownBodyColumnIndex
-
-
Method Detail
-
onNodeMouseMove
public void onNodeMouseMove(com.ait.lienzo.client.core.event.NodeMouseMoveEvent event)
- Specified by:
onNodeMouseMovein interfacecom.ait.lienzo.client.core.event.NodeMouseMoveHandler
-
hidePopover
public void hidePopover()
- Specified by:
hidePopoverin interfaceScenarioSimulationGridPanelMouseMoveHandler
-
setErrorReportPopupPresenter
public void setErrorReportPopupPresenter(ErrorReportPopoverPresenter errorReportPopupPresenter)
- Specified by:
setErrorReportPopupPresenterin interfaceScenarioSimulationGridPanelMouseMoveHandler
-
manageGivenExpectHeaderCoordinates
protected boolean manageGivenExpectHeaderCoordinates(ScenarioHeaderMetaData clickedScenarioHeaderMetadata, ScenarioGridColumn scenarioGridColumn, String group, Integer uiColumnIndex)
Description copied from class:AbstractScenarioSimulationGridPanelHandlerThis method manage the click happened on an GIVEN or EXPECT header, starting editing it if not already did.- Specified by:
manageGivenExpectHeaderCoordinatesin classAbstractScenarioSimulationGridPanelHandler- Returns:
-
manageBodyCoordinates
protected boolean manageBodyCoordinates(Integer uiRowIndex, Integer uiColumnIndex)
Description copied from class:AbstractScenarioSimulationGridPanelHandlerThis method check if the click happened on an column of a grid row. If it is so, select the cell, otherwise returnsfalse- Specified by:
manageBodyCoordinatesin classAbstractScenarioSimulationGridPanelHandler- Returns:
-
manageFactMappingValue
protected void manageFactMappingValue(org.drools.scenariosimulation.api.model.FactMappingValue toManage, Integer uiRowIndex, Integer uiColumnIndex)
-
manageFailedFactMappingValue
protected void manageFailedFactMappingValue(org.drools.scenariosimulation.api.model.FactMappingValue toManage, Integer uiRowIndex, Integer uiColumnIndex)
-
setupPopupPresenter
protected void setupPopupPresenter(org.drools.scenariosimulation.api.model.FactMappingValue factMappingValue, int uiRowIndex, int uiColumnIndex, int xPosition, int yPosition, PopoverView.Position position)
-
showErrorPopoverWithoutSuggestion
protected void showErrorPopoverWithoutSuggestion(String errorMessage, int xPosition, int yPosition, PopoverView.Position position)
-
showErrorPopoverWithSuggestion
protected void showErrorPopoverWithSuggestion(Object expectedValue, Object errorValue, int uiRowIndex, int uiColumnIndex, int xPosition, int yPosition, PopoverView.Position position)
-
getCollectionHTMLErrorMessage
protected String getCollectionHTMLErrorMessage(Object wrongValue, List<String> pathToWrongValue)
-
retrieveCellMiddleXYPosition
protected com.ait.lienzo.client.core.types.Point2D retrieveCellMiddleXYPosition(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column, int uiRowIndex)
-
getCellHeight
protected int getCellHeight(org.uberfire.ext.wires.core.grids.client.model.GridColumn<?> column, int uiRowIndex)
-
-