Interface TestToolsView.Presenter
-
- All Superinterfaces:
SubDockView.Presenter
- All Known Implementing Classes:
TestToolsPresenter
- Enclosing interface:
- TestToolsView
public static interface TestToolsView.Presenter extends SubDockView.Presenter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDataObjectListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)voidaddInstanceListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)voidaddSimpleJavaInstanceListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)voidaddSimpleJavaTypeListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)voidclearDataObjectList()voidclearInstanceList()voidclearSelection()voidclearSimpleJavaInstanceFieldList()voidclearSimpleJavaTypeList()Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree>getFactModelTreeFromFactTypeMap(String factName)org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTreegetFactModelTreeFromHiddenMap(String factName)Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree>getFactModelTreeFromInstanceMap(String factName)Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree>getFactModelTreeFromSimpleJavaInstanceMap(String factName)Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree>getFactModelTreeFromSimpleJavaTypeMap(String factName)voidhideInstances()Method to hide all the instance-related htmlvoidonClearSearch()voidonClearStatus()voidonDisableEditorTab()By default the Editor Tab must be disabled (no user interaction allowed).voidonEnableEditorTab()By default the Editor Tab is disabled (no user interaction allowed).voidonEnableEditorTab(String factName, List<String> propertyNameElements, boolean notEqualsSearch)By default the Editor Tab is disabled (no user interaction allowed).voidonModifyColumn()Method to fire aSetPropertyHeaderScenarioSImulationCommandorSetPropertyHeaderScenarioSImulationCommand, depending on the element currently selectedvoidonPerfectMatchSearchedEvent(String search, boolean notEqualsSearch)Filter the data in the right panel if they are exactly the same as the given search string, case-sensitive.voidonSearchedEvent(String search)Filter the data in the right panel if they contains the given search string, case-unsensitive.voidonShowClearButton()voidonUndoSearch()voidpopulateTestTools(TestToolsPresenterData data)voidsetEventBus(com.google.gwt.event.shared.EventBus eventBus)voidsetSelectedElement(FieldItemView selected)Method to set the "selected" information - use this to set the property level headervoidsetSelectedElement(ListGroupItemView selected)Method to set the "selected" information - use this to set the instance level headervoidshowInstanceListContainerSeparator(boolean show)voidupdateInstanceListSeparator()-
Methods inherited from interface org.drools.workbench.screens.scenariosimulation.client.rightpanel.SubDockView.Presenter
isCurrentlyShow, reset, setCurrentPath
-
-
-
-
Method Detail
-
onClearSearch
void onClearSearch()
-
onUndoSearch
void onUndoSearch()
-
onClearStatus
void onClearStatus()
-
populateTestTools
void populateTestTools(TestToolsPresenterData data)
-
onShowClearButton
void onShowClearButton()
-
onSearchedEvent
void onSearchedEvent(String search)
Filter the data in the right panel if they contains the given search string, case-unsensitive. To be used by manual search- Parameters:
search-
-
onPerfectMatchSearchedEvent
void onPerfectMatchSearchedEvent(String search, boolean notEqualsSearch)
Filter the data in the right panel if they are exactly the same as the given search string, case-sensitive. To be used by filter fired by grid.- Parameters:
search-notEqualsSearch- set totrueto perform a not filter, i.e. to show only results different than filterTerm
-
clearDataObjectList
void clearDataObjectList()
-
clearSimpleJavaTypeList
void clearSimpleJavaTypeList()
-
clearInstanceList
void clearInstanceList()
-
clearSimpleJavaInstanceFieldList
void clearSimpleJavaInstanceFieldList()
-
updateInstanceListSeparator
void updateInstanceListSeparator()
-
addDataObjectListGroupItemView
void addDataObjectListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)
-
addSimpleJavaTypeListGroupItemView
void addSimpleJavaTypeListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)
-
addInstanceListGroupItemView
void addInstanceListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)
-
addSimpleJavaInstanceListGroupItemView
void addSimpleJavaInstanceListGroupItemView(String factName, org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree factModelTree)
-
hideInstances
void hideInstances()
Method to hide all the instance-related html
-
setEventBus
void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
-
showInstanceListContainerSeparator
void showInstanceListContainerSeparator(boolean show)
-
getFactModelTreeFromFactTypeMap
Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> getFactModelTreeFromFactTypeMap(String factName)
-
getFactModelTreeFromSimpleJavaTypeMap
Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> getFactModelTreeFromSimpleJavaTypeMap(String factName)
-
getFactModelTreeFromInstanceMap
Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> getFactModelTreeFromInstanceMap(String factName)
-
getFactModelTreeFromSimpleJavaInstanceMap
Optional<org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree> getFactModelTreeFromSimpleJavaInstanceMap(String factName)
-
getFactModelTreeFromHiddenMap
org.drools.workbench.screens.scenariosimulation.model.typedescriptor.FactModelTree getFactModelTreeFromHiddenMap(String factName)
-
onEnableEditorTab
void onEnableEditorTab()
By default the Editor Tab is disabled (no user interaction allowed). Use this when click on grid' instance header. Call this method to show all the first-level data models enabled (i.e. double-clickable to map to an instance header/column) and their properties disabled (i.e. not double-clickable)
-
onEnableEditorTab
void onEnableEditorTab(String factName, List<String> propertyNameElements, boolean notEqualsSearch)
By default the Editor Tab is disabled (no user interaction allowed). Use this when click on grid' property header. Call this method to show only the data model with the given name, disabled (i.e. not double-clickable) and their properties enabled (i.e. double-clickable to map to a property header/column below the belonging data model instance one)- Parameters:
factName-propertyNameElements- TheListto eventually use to select the property in the test tools panelnotEqualsSearch- set totrueto perform a not filter, i.e. to show only results different than filterTerm
-
onDisableEditorTab
void onDisableEditorTab()
By default the Editor Tab must be disabled (no user interaction allowed). It is enabled only by click on grid' header
-
onModifyColumn
void onModifyColumn()
Method to fire aSetPropertyHeaderScenarioSImulationCommandorSetPropertyHeaderScenarioSImulationCommand, depending on the element currently selected
-
setSelectedElement
void setSelectedElement(ListGroupItemView selected)
Method to set the "selected" information - use this to set the instance level header- Parameters:
selected-
-
setSelectedElement
void setSelectedElement(FieldItemView selected)
Method to set the "selected" information - use this to set the property level header- Parameters:
selected-
-
clearSelection
void clearSelection()
-
-