@Dependent public class RightPanelPresenter extends Object implements RightPanelView.Presenter
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,FactModelTree> |
dataObjectFieldsMap |
static int |
DEFAULT_PREFERRED_WIDHT |
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 |
| Constructor and Description |
|---|
RightPanelPresenter() |
RightPanelPresenter(RightPanelView 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) |
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clearDataObjectList() |
void |
clearInstanceList() |
protected void |
clearLists() |
void |
clearSimpleJavaInstanceFieldList() |
void |
clearSimpleJavaTypeList() |
protected boolean |
filterTerm(String key,
String search,
boolean notEqualsSearch) |
org.uberfire.workbench.model.Position |
getDefaultPosition() |
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) |
String |
getTitle() |
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,
String propertyName,
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 |
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 |
setup() |
public static final int DEFAULT_PREFERRED_WIDHT
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 RightPanelPresenter()
@Inject public RightPanelPresenter(RightPanelView view, ListGroupItemPresenter listGroupItemPresenter)
@PostConstruct public void setup()
public org.uberfire.workbench.model.Position getDefaultPosition()
public String getTitle()
public com.google.gwt.user.client.ui.Widget asWidget()
public void onClearSearch()
onClearSearch in interface RightPanelView.Presenterpublic void onClearNameField()
onClearNameField in interface RightPanelView.Presenterpublic void onClearStatus()
onClearStatus in interface RightPanelView.Presenterpublic void clearDataObjectList()
clearDataObjectList in interface RightPanelView.Presenterpublic void clearSimpleJavaTypeList()
clearSimpleJavaTypeList in interface RightPanelView.Presenterpublic void clearInstanceList()
clearInstanceList in interface RightPanelView.Presenterpublic void clearSimpleJavaInstanceFieldList()
clearSimpleJavaInstanceFieldList in interface RightPanelView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromFactTypeMap(String factName)
getFactModelTreeFromFactTypeMap in interface RightPanelView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromSimpleJavaTypeMap(String factName)
getFactModelTreeFromSimpleJavaTypeMap in interface RightPanelView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromInstanceMap(String factName)
getFactModelTreeFromInstanceMap in interface RightPanelView.Presenterpublic Optional<FactModelTree> getFactModelTreeFromSimpleJavaInstanceMap(String factName)
getFactModelTreeFromSimpleJavaInstanceMap in interface RightPanelView.Presenterpublic FactModelTree getFactModelTreeFromHiddenMap(String factName)
getFactModelTreeFromHiddenMap in interface RightPanelView.Presenterpublic void setDataObjectFieldsMap(SortedMap<String,FactModelTree> dataObjectFieldsMap)
setDataObjectFieldsMap in interface RightPanelView.Presenterpublic void setSimpleJavaTypeFieldsMap(SortedMap<String,FactModelTree> simpleJavaTypeFieldsMap)
setSimpleJavaTypeFieldsMap in interface RightPanelView.Presenterpublic void setHiddenFieldsMap(SortedMap<String,FactModelTree> hiddenFieldsMap)
setHiddenFieldsMap in interface RightPanelView.Presenterpublic void setInstanceFieldsMap(SortedMap<String,FactModelTree> instanceFieldsMap)
setInstanceFieldsMap in interface RightPanelView.Presenterpublic void setSimpleJavaInstanceFieldsMap(SortedMap<String,FactModelTree> simpleJavaInstanceFieldsMap)
setSimpleJavaInstanceFieldsMap in interface RightPanelView.Presenterpublic void onShowClearButton()
onShowClearButton in interface RightPanelView.Presenterpublic void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
setEventBus in interface RightPanelView.Presenterpublic void onSearchedEvent(String search)
RightPanelView.PresenteronSearchedEvent in interface RightPanelView.Presenterpublic void onPerfectMatchSearchedEvent(String search, boolean notEqualsSearch)
RightPanelView.PresenteronPerfectMatchSearchedEvent in interface RightPanelView.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 RightPanelView.Presenterpublic void addSimpleJavaTypeListGroupItemView(String factName, FactModelTree factModelTree)
addSimpleJavaTypeListGroupItemView in interface RightPanelView.Presenterpublic void addInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addInstanceListGroupItemView in interface RightPanelView.Presenterpublic void addSimpleJavaInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addSimpleJavaInstanceListGroupItemView in interface RightPanelView.Presenterpublic void onEnableEditorTab()
RightPanelView.PresenteronEnableEditorTab in interface RightPanelView.Presenterpublic void onEnableEditorTab(String factName, String propertyName, boolean notEqualsSearch)
RightPanelView.PresenteronEnableEditorTab in interface RightPanelView.PresenterpropertyName - the string to eventually use to select the property in the right panelnotEqualsSearch - set to true to perform a not filter, i.e. to show only results different than filterTermpublic void onDisableEditorTab()
RightPanelView.PresenteronDisableEditorTab in interface RightPanelView.Presenterpublic void setSelectedElement(ListGroupItemView selected)
RightPanelView.PresentersetSelectedElement in interface RightPanelView.Presenterpublic void setSelectedElement(FieldItemView selected)
RightPanelView.PresentersetSelectedElement in interface RightPanelView.Presenterpublic void onModifyColumn()
RightPanelView.PresenterSetPropertyHeaderScenarioSImulationCommand or SetPropertyHeaderScenarioSImulationCommand,
depending on the element currently selectedonModifyColumn in interface RightPanelView.Presenterprotected Optional<FactModelTree> getFactModelTreeFromMaps(String key)
protected boolean isSimple(String key)
protected void clearLists()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.