@ApplicationScoped public class TestToolsPresenter extends AbstractSubDockPresenter<TestToolsView> implements TestToolsView.Presenter
Modifier and Type | Field and Description |
---|---|
protected Map<String,FactModelTree> |
dataObjectFieldsMap |
protected boolean |
editingColumnEnabled |
protected com.google.gwt.event.shared.EventBus |
eventBus |
protected Map<String,FactModelTree> |
hiddenFieldsMap |
static String |
IDENTIFIER |
protected Map<String,FactModelTree> |
instanceFieldsMap |
protected FieldItemView |
selectedFieldItemView |
protected ListGroupItemView |
selectedListGroupItemView |
protected Map<String,FactModelTree> |
simpleJavaInstanceFieldsMap |
protected Map<String,FactModelTree> |
simpleJavaTypeFieldsMap |
currentPath, DEFAULT_PREFERRED_WIDHT, title, view
Constructor and Description |
---|
TestToolsPresenter() |
TestToolsPresenter(TestToolsView view,
ListGroupItemPresenter listGroupItemPresenter) |
Modifier and Type | Method and Description |
---|---|
void |
addDataObjectListGroupItemView(String factName,
FactModelTree factModelTree) |
void |
addInstanceListGroupItemView(String instanceName,
FactModelTree factModelTree) |
void |
addSimpleJavaInstanceListGroupItemView(String instanceName,
FactModelTree factModelTree) |
void |
addSimpleJavaTypeListGroupItemView(String factName,
FactModelTree factModelTree) |
void |
clearDataObjectList() |
void |
clearInstanceList() |
protected void |
clearLists() |
void |
clearSimpleJavaInstanceFieldList() |
void |
clearSimpleJavaTypeList() |
protected boolean |
filterTerm(String key,
String search,
boolean notEqualsSearch) |
Optional<FactModelTree> |
getFactModelTreeFromFactTypeMap(String factName) |
FactModelTree |
getFactModelTreeFromHiddenMap(String factName) |
Optional<FactModelTree> |
getFactModelTreeFromInstanceMap(String factName) |
protected Optional<FactModelTree> |
getFactModelTreeFromMaps(String key) |
Optional<FactModelTree> |
getFactModelTreeFromSimpleJavaInstanceMap(String factName) |
Optional<FactModelTree> |
getFactModelTreeFromSimpleJavaTypeMap(String factName) |
protected Optional<String> |
getFullPackage(String className) |
void |
hideProperties(Map<String,List<List<String>>> propertiesToHide) |
protected boolean |
isSimple(String key) |
void |
onClearNameField() |
void |
onClearSearch() |
void |
onClearStatus() |
void |
onDisableEditorTab()
By default the Editor Tab must be disabled (no user interaction allowed).
|
void |
onEnableEditorTab()
By default the Editor Tab is disabled (no user interaction allowed).
|
void |
onEnableEditorTab(String factName,
List<String> propertyNameElements,
boolean notEqualsSearch)
By default the Editor Tab is disabled (no user interaction allowed).
|
void |
onModifyColumn()
Method to fire a
SetPropertyHeaderScenarioSImulationCommand or SetPropertyHeaderScenarioSImulationCommand ,
depending on the element currently selected |
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.
|
void |
onSearchedEvent(String search)
Filter the data in the right panel if they contains the given search string, case-unsensitive.
|
void |
onShowClearButton() |
void |
reset()
It resets the current status of the
SubDock component |
void |
setDataObjectFieldsMap(SortedMap<String,FactModelTree> dataObjectFieldsMap) |
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus) |
void |
setHiddenFieldsMap(SortedMap<String,FactModelTree> hiddenFieldsMap) |
void |
setInstanceFieldsMap(SortedMap<String,FactModelTree> instanceFieldsMap) |
void |
setSelectedElement(FieldItemView selected)
Method to set the "selected" information - use this to set the property level header
|
void |
setSelectedElement(ListGroupItemView selected)
Method to set the "selected" information - use this to set the instance level header
|
void |
setSimpleJavaInstanceFieldsMap(SortedMap<String,FactModelTree> simpleJavaInstanceFieldsMap) |
void |
setSimpleJavaTypeFieldsMap(SortedMap<String,FactModelTree> simpleJavaTypeFieldsMap) |
void |
updateDataObjectListSeparator() |
void |
updateInstanceListSeparator() |
protected void |
updateSeparators() |
void |
updateSimpleJavaInstanceFieldListSeparator() |
void |
updateSimpleJavaTypeListSeparator() |
asWidget, getDefaultPosition, getTitle, isCurrentlyShow, setCurrentPath, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCurrentlyShow, setCurrentPath
public static final String IDENTIFIER
protected Map<String,FactModelTree> dataObjectFieldsMap
protected Map<String,FactModelTree> simpleJavaTypeFieldsMap
protected Map<String,FactModelTree> instanceFieldsMap
protected Map<String,FactModelTree> simpleJavaInstanceFieldsMap
protected Map<String,FactModelTree> hiddenFieldsMap
protected com.google.gwt.event.shared.EventBus eventBus
protected boolean editingColumnEnabled
protected ListGroupItemView selectedListGroupItemView
protected FieldItemView selectedFieldItemView
public TestToolsPresenter()
@Inject public TestToolsPresenter(TestToolsView view, ListGroupItemPresenter listGroupItemPresenter)
public void onClearSearch()
onClearSearch
in interface TestToolsView.Presenter
public void onClearNameField()
onClearNameField
in interface TestToolsView.Presenter
public void onClearStatus()
onClearStatus
in interface TestToolsView.Presenter
public void clearDataObjectList()
clearDataObjectList
in interface TestToolsView.Presenter
public void clearSimpleJavaTypeList()
clearSimpleJavaTypeList
in interface TestToolsView.Presenter
public void clearInstanceList()
clearInstanceList
in interface TestToolsView.Presenter
public void clearSimpleJavaInstanceFieldList()
clearSimpleJavaInstanceFieldList
in interface TestToolsView.Presenter
public void updateDataObjectListSeparator()
updateDataObjectListSeparator
in interface TestToolsView.Presenter
public void updateSimpleJavaTypeListSeparator()
updateSimpleJavaTypeListSeparator
in interface TestToolsView.Presenter
public void updateInstanceListSeparator()
updateInstanceListSeparator
in interface TestToolsView.Presenter
public void updateSimpleJavaInstanceFieldListSeparator()
updateSimpleJavaInstanceFieldListSeparator
in interface TestToolsView.Presenter
public Optional<FactModelTree> getFactModelTreeFromFactTypeMap(String factName)
getFactModelTreeFromFactTypeMap
in interface TestToolsView.Presenter
public Optional<FactModelTree> getFactModelTreeFromSimpleJavaTypeMap(String factName)
getFactModelTreeFromSimpleJavaTypeMap
in interface TestToolsView.Presenter
public Optional<FactModelTree> getFactModelTreeFromInstanceMap(String factName)
getFactModelTreeFromInstanceMap
in interface TestToolsView.Presenter
public Optional<FactModelTree> getFactModelTreeFromSimpleJavaInstanceMap(String factName)
getFactModelTreeFromSimpleJavaInstanceMap
in interface TestToolsView.Presenter
public FactModelTree getFactModelTreeFromHiddenMap(String factName)
getFactModelTreeFromHiddenMap
in interface TestToolsView.Presenter
public void setDataObjectFieldsMap(SortedMap<String,FactModelTree> dataObjectFieldsMap)
setDataObjectFieldsMap
in interface TestToolsView.Presenter
public void setSimpleJavaTypeFieldsMap(SortedMap<String,FactModelTree> simpleJavaTypeFieldsMap)
setSimpleJavaTypeFieldsMap
in interface TestToolsView.Presenter
public void setInstanceFieldsMap(SortedMap<String,FactModelTree> instanceFieldsMap)
setInstanceFieldsMap
in interface TestToolsView.Presenter
public void setSimpleJavaInstanceFieldsMap(SortedMap<String,FactModelTree> simpleJavaInstanceFieldsMap)
setSimpleJavaInstanceFieldsMap
in interface TestToolsView.Presenter
public void setHiddenFieldsMap(SortedMap<String,FactModelTree> hiddenFieldsMap)
setHiddenFieldsMap
in interface TestToolsView.Presenter
public void hideProperties(Map<String,List<List<String>>> propertiesToHide)
hideProperties
in interface TestToolsView.Presenter
public void onShowClearButton()
onShowClearButton
in interface TestToolsView.Presenter
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
setEventBus
in interface TestToolsView.Presenter
public void onSearchedEvent(String search)
TestToolsView.Presenter
onSearchedEvent
in interface TestToolsView.Presenter
public void onPerfectMatchSearchedEvent(String search, boolean notEqualsSearch)
TestToolsView.Presenter
onPerfectMatchSearchedEvent
in interface TestToolsView.Presenter
notEqualsSearch
- set to true
to perform a not filter, i.e. to show only results different than filterTermpublic void addDataObjectListGroupItemView(String factName, FactModelTree factModelTree)
addDataObjectListGroupItemView
in interface TestToolsView.Presenter
public void addSimpleJavaTypeListGroupItemView(String factName, FactModelTree factModelTree)
addSimpleJavaTypeListGroupItemView
in interface TestToolsView.Presenter
public void addInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addInstanceListGroupItemView
in interface TestToolsView.Presenter
public void addSimpleJavaInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addSimpleJavaInstanceListGroupItemView
in interface TestToolsView.Presenter
public void onEnableEditorTab()
TestToolsView.Presenter
onEnableEditorTab
in interface TestToolsView.Presenter
public void onEnableEditorTab(String factName, List<String> propertyNameElements, boolean notEqualsSearch)
TestToolsView.Presenter
onEnableEditorTab
in interface TestToolsView.Presenter
propertyNameElements
- The List
to eventually use to select the property in the test tools panelnotEqualsSearch
- set to true
to perform a not filter, i.e. to show only results different than filterTermpublic void onDisableEditorTab()
TestToolsView.Presenter
onDisableEditorTab
in interface TestToolsView.Presenter
public void setSelectedElement(ListGroupItemView selected)
TestToolsView.Presenter
setSelectedElement
in interface TestToolsView.Presenter
public void setSelectedElement(FieldItemView selected)
TestToolsView.Presenter
setSelectedElement
in interface TestToolsView.Presenter
public void onModifyColumn()
TestToolsView.Presenter
SetPropertyHeaderScenarioSImulationCommand
or SetPropertyHeaderScenarioSImulationCommand
,
depending on the element currently selectedonModifyColumn
in interface TestToolsView.Presenter
public void reset()
SubDockView.Presenter
SubDock
componentreset
in interface SubDockView.Presenter
protected Optional<FactModelTree> getFactModelTreeFromMaps(String key)
protected boolean isSimple(String key)
protected void clearLists()
protected void updateSeparators()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.