@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 |
static String |
IDENTIFIER |
protected Map<String,FactModelTree> |
instanceFieldsMap |
protected FieldItemView |
selectedFieldItemView |
protected ListGroupItemView |
selectedListGroupItemView |
| 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) |
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clearDataObjectList() |
void |
clearInstanceList() |
protected boolean |
filterTerm(String key,
String search,
boolean notEqualsSearch) |
org.uberfire.workbench.model.Position |
getDefaultPosition() |
FactModelTree |
getFactModelTreeFromFactTypeMap(String factName) |
FactModelTree |
getFactModelTreeFromInstanceMap(String factName) |
String |
getTitle() |
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
SetPropertyHeaderCommand or SetPropertyHeaderCommand,
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 |
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 |
setup() |
public static final int DEFAULT_PREFERRED_WIDHT
public static final String IDENTIFIER
protected Map<String,FactModelTree> dataObjectFieldsMap
protected Map<String,FactModelTree> instanceFieldsMap
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 clearInstanceList()
clearInstanceList in interface RightPanelView.Presenterpublic FactModelTree getFactModelTreeFromFactTypeMap(String factName)
getFactModelTreeFromFactTypeMap in interface RightPanelView.Presenterpublic FactModelTree getFactModelTreeFromInstanceMap(String factName)
getFactModelTreeFromInstanceMap in interface RightPanelView.Presenterpublic void setDataObjectFieldsMap(SortedMap<String,FactModelTree> dataObjectFieldsMap)
setDataObjectFieldsMap in interface RightPanelView.Presenterpublic void setInstanceFieldsMap(SortedMap<String,FactModelTree> instanceFieldsMap)
setInstanceFieldsMap 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 addInstanceListGroupItemView(String instanceName, FactModelTree factModelTree)
addInstanceListGroupItemView 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.PresenterSetPropertyHeaderCommand or SetPropertyHeaderCommand,
depending on the element currently selectedonModifyColumn in interface RightPanelView.PresenterCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.