@Dependent public class ListGroupItemPresenter extends Object implements ListGroupItemView.Presenter
| Modifier and Type | Field and Description |
|---|---|
protected FieldItemPresenter |
fieldItemPresenter |
protected Map<String,ListGroupItemView> |
listGroupItemViewMap |
protected RightPanelView.Presenter |
rightPanelPresenter |
protected ViewsProvider |
viewsProvider |
| Constructor and Description |
|---|
ListGroupItemPresenter() |
| Modifier and Type | Method and Description |
|---|---|
protected ListGroupItemView |
commonGetListGroupItemView(String parentPath,
String factName,
boolean toExpand) |
void |
disable() |
void |
enable()
Use this when click on grid' instance header.
|
void |
enable(String factName)
Use this when click on grid' instance header.
|
com.google.gwt.dom.client.DivElement |
getDivElement(String factName,
FactModelTree factModelTree)
This method returns a top-level
DivElement representing a complex (i.e. expandable) property, i.e. a class containing other properties |
com.google.gwt.dom.client.DivElement |
getDivElement(String fullPath,
String factName,
String factModelTreeClass)
This method returns a nested
DivElement representing a complex (i.e. expandable) property, i.e. a class containing other properties |
void |
init(RightPanelView.Presenter rightPanelPresenter) |
void |
onSelectedElement(FieldItemView selected)
Method to set the "selected" information - use this to set the property level header
|
void |
onSelectedElement(ListGroupItemView selected)
Method to set the "selected" information - use this to set the instance level header
|
void |
onToggleRowExpansion(ListGroupItemView listGroupItemView,
boolean currentlyShown) |
protected void |
populateListGroupItemView(ListGroupItemView toPopulate,
String factName,
String factType)
Set the property' name (factName) and type (factModelTreeClass) of a given
ListGroupItemView |
protected void |
populateListGroupItemView(ListGroupItemView toPopulate,
String parentPath,
String factName,
FactModelTree factModelTree)
Populate the "Assets" list.
|
void |
selectProperty(String factName,
String propertyName)
Expand the node and select the given property
|
void |
unselectAll() |
@Inject protected ViewsProvider viewsProvider
@Inject protected FieldItemPresenter fieldItemPresenter
protected RightPanelView.Presenter rightPanelPresenter
protected Map<String,ListGroupItemView> listGroupItemViewMap
public void enable()
ListGroupItemView.Presenterenable in interface ListGroupItemView.Presenterpublic void enable(String factName)
ListGroupItemView.Presenterenable in interface ListGroupItemView.Presenterpublic void unselectAll()
unselectAll in interface ListGroupItemView.Presenterpublic void selectProperty(String factName, String propertyName)
ListGroupItemView.PresenterselectProperty in interface ListGroupItemView.Presenterpublic void disable()
disable in interface ListGroupItemView.Presenterpublic void init(RightPanelView.Presenter rightPanelPresenter)
init in interface ListGroupItemView.Presenterpublic com.google.gwt.dom.client.DivElement getDivElement(String factName, FactModelTree factModelTree)
ListGroupItemView.PresenterDivElement representing a complex (i.e. expandable) property, i.e. a class containing other propertiesgetDivElement in interface ListGroupItemView.Presenterpublic com.google.gwt.dom.client.DivElement getDivElement(String fullPath, String factName, String factModelTreeClass)
ListGroupItemView.PresenterDivElement representing a complex (i.e. expandable) property, i.e. a class containing other propertiesgetDivElement in interface ListGroupItemView.PresenterfullPath - the parent pathfactName - the property' namefactModelTreeClass - the property' typepublic void onToggleRowExpansion(ListGroupItemView listGroupItemView, boolean currentlyShown)
onToggleRowExpansion in interface ListGroupItemView.Presenterpublic void onSelectedElement(ListGroupItemView selected)
ListGroupItemView.PresenteronSelectedElement in interface ListGroupItemView.Presenterpublic void onSelectedElement(FieldItemView selected)
ListGroupItemView.PresenteronSelectedElement in interface ListGroupItemView.Presenterprotected void populateListGroupItemView(ListGroupItemView toPopulate, String parentPath, String factName, FactModelTree factModelTree)
toPopulate - parentPath - factName - factModelTree - the FactModelTree with all properties of a given typeprotected void populateListGroupItemView(ListGroupItemView toPopulate, String factName, String factType)
ListGroupItemViewtoPopulate - factName - the property' namefactType - the property' typeprotected ListGroupItemView commonGetListGroupItemView(String parentPath, String factName, boolean toExpand)
parentPath - the parent' path - empty for top-level elementsfactName - toExpand - If true, on onToggleRowExpansion(ListGroupItemView, boolean) inner properties will be populatedCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.