@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)
It determines if a key (factTitle) is present or not in the search variable.
|
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 filterTerm,
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 |
onUndoSearch() |
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() |
protected void |
updateInstanceIsAssignedStatus(String key)
It navigates through the maps, to check if the given key is present or not in the keySet of these maps.
|
void |
updateInstanceListSeparator() |
protected void |
updateSeparators() |
void |
updateSimpleJavaInstanceFieldListSeparator() |
void |
updateSimpleJavaTypeListSeparator() |
asWidget, getDefaultPosition, getTitle, isCurrentlyShow, setCurrentPath, setupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCurrentlyShow, setCurrentPathpublic 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.Presenterpublic void onUndoSearch()
onUndoSearch in interface TestToolsView.Presenterpublic void onClearNameField()
onClearNameField in interface TestToolsView.Presenterpublic void onClearStatus()
onClearStatus in interface TestToolsView.Presenterpublic void clearDataObjectList()
clearDataObjectList in interface TestToolsView.Presenterpublic void clearSimpleJavaTypeList()
clearSimpleJavaTypeList in interface TestToolsView.Presenterpublic void clearInstanceList()
clearInstanceList in interface TestToolsView.Presenterpublic void clearSimpleJavaInstanceFieldList()
clearSimpleJavaInstanceFieldList in interface TestToolsView.Presenterpublic void updateDataObjectListSeparator()
updateDataObjectListSeparator in interface TestToolsView.Presenterpublic void updateSimpleJavaTypeListSeparator()
updateSimpleJavaTypeListSeparator in interface TestToolsView.Presenterpublic void updateInstanceListSeparator()
updateInstanceListSeparator in interface TestToolsView.Presenterpublic void updateSimpleJavaInstanceFieldListSeparator()
updateSimpleJavaInstanceFieldListSeparator in interface TestToolsView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromFactTypeMap(String factName)
getFactModelTreeFromFactTypeMap in interface TestToolsView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromSimpleJavaTypeMap(String factName)
getFactModelTreeFromSimpleJavaTypeMap in interface TestToolsView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromInstanceMap(String factName)
getFactModelTreeFromInstanceMap in interface TestToolsView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromSimpleJavaInstanceMap(String factName)
getFactModelTreeFromSimpleJavaInstanceMap in interface TestToolsView.Presenterpublic FactModelTree getFactModelTreeFromHiddenMap(String factName)
getFactModelTreeFromHiddenMap in interface TestToolsView.Presenterpublic void setDataObjectFieldsMap(SortedMap<String,FactModelTree> dataObjectFieldsMap)
setDataObjectFieldsMap in interface TestToolsView.Presenterpublic void setSimpleJavaTypeFieldsMap(SortedMap<String,FactModelTree> simpleJavaTypeFieldsMap)
setSimpleJavaTypeFieldsMap in interface TestToolsView.Presenterpublic void setInstanceFieldsMap(SortedMap<String,FactModelTree> instanceFieldsMap)
setInstanceFieldsMap in interface TestToolsView.Presenterpublic void setSimpleJavaInstanceFieldsMap(SortedMap<String,FactModelTree> simpleJavaInstanceFieldsMap)
setSimpleJavaInstanceFieldsMap in interface TestToolsView.Presenterpublic void setHiddenFieldsMap(SortedMap<String,FactModelTree> hiddenFieldsMap)
setHiddenFieldsMap in interface TestToolsView.Presenterpublic void hideProperties(Map<String,List<List<String>>> propertiesToHide)
hideProperties in interface TestToolsView.Presenterpublic void onShowClearButton()
onShowClearButton in interface TestToolsView.Presenterpublic void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
setEventBus in interface TestToolsView.Presenterpublic void onSearchedEvent(String search)
TestToolsView.PresenteronSearchedEvent in interface TestToolsView.Presenterpublic void onPerfectMatchSearchedEvent(String search, boolean notEqualsSearch)
TestToolsView.PresenteronPerfectMatchSearchedEvent in interface TestToolsView.PresenternotEqualsSearch - 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.Presenterpublic void addSimpleJavaTypeListGroupItemView(String factName, FactModelTree factModelTree)
addSimpleJavaTypeListGroupItemView in interface TestToolsView.Presenterpublic void addInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addInstanceListGroupItemView in interface TestToolsView.Presenterpublic void addSimpleJavaInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addSimpleJavaInstanceListGroupItemView in interface TestToolsView.Presenterpublic void onEnableEditorTab()
TestToolsView.PresenteronEnableEditorTab in interface TestToolsView.Presenterpublic void onEnableEditorTab(String filterTerm, List<String> propertyNameElements, boolean notEqualsSearch)
TestToolsView.PresenteronEnableEditorTab in interface TestToolsView.PresenterpropertyNameElements - 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.PresenteronDisableEditorTab in interface TestToolsView.Presenterpublic void setSelectedElement(ListGroupItemView selected)
TestToolsView.PresentersetSelectedElement in interface TestToolsView.Presenterpublic void setSelectedElement(FieldItemView selected)
TestToolsView.PresentersetSelectedElement in interface TestToolsView.Presenterpublic void onModifyColumn()
TestToolsView.PresenterSetPropertyHeaderScenarioSImulationCommand or SetPropertyHeaderScenarioSImulationCommand,
depending on the element currently selectedonModifyColumn in interface TestToolsView.Presenterpublic void reset()
SubDockView.PresenterSubDock componentreset in interface SubDockView.Presenterprotected void updateInstanceIsAssignedStatus(String key)
key - protected Optional<FactModelTree> getFactModelTreeFromMaps(String key)
protected boolean isSimple(String key)
protected void clearLists()
protected void updateSeparators()
protected boolean filterTerm(String key, String search, boolean notEqualsSearch)
key - It's the title of the fact to searchsearch - It represents a concatenation of titles, with ";" as separatornotEqualsSearch - It establishes the method logic: to check if a key is present or not in search stringCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.