@Dependent public class ListGroupItemPresenter extends Object implements ListGroupItemView.Presenter
Modifier and Type | Field and Description |
---|---|
protected FieldItemPresenter |
fieldItemPresenter |
protected Map<String,ListGroupItemView> |
listGroupItemViewMap |
protected TestToolsView.Presenter |
testToolsPresenter |
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 filterTerm)
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 |
String |
getFilterTerm() |
void |
hideProperty(String factName,
List<String> propertyParts)
Hide the node of the given property
|
void |
init(TestToolsView.Presenter testToolsPresenter) |
boolean |
isInstanceAssigned(String factName) |
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 |
reset() |
void |
selectProperty(String factName,
List<String> propertyParts)
Expand the node and select the given property
|
void |
setInstanceAssigned(String factName,
boolean assigned) |
void |
showAll() |
void |
unselectAll() |
@Inject protected ViewsProvider viewsProvider
@Inject protected FieldItemPresenter fieldItemPresenter
protected TestToolsView.Presenter testToolsPresenter
protected Map<String,ListGroupItemView> listGroupItemViewMap
public void enable()
ListGroupItemView.Presenter
enable
in interface ListGroupItemView.Presenter
public void enable(String filterTerm)
ListGroupItemView.Presenter
enable
in interface ListGroupItemView.Presenter
public void unselectAll()
unselectAll
in interface ListGroupItemView.Presenter
public void showAll()
showAll
in interface ListGroupItemView.Presenter
public void selectProperty(String factName, List<String> propertyParts)
ListGroupItemView.Presenter
selectProperty
in interface ListGroupItemView.Presenter
public void hideProperty(String factName, List<String> propertyParts)
ListGroupItemView.Presenter
hideProperty
in interface ListGroupItemView.Presenter
public boolean isInstanceAssigned(String factName)
isInstanceAssigned
in interface ListGroupItemView.Presenter
public void setInstanceAssigned(String factName, boolean assigned)
setInstanceAssigned
in interface ListGroupItemView.Presenter
public void disable()
disable
in interface ListGroupItemView.Presenter
public void init(TestToolsView.Presenter testToolsPresenter)
init
in interface ListGroupItemView.Presenter
public com.google.gwt.dom.client.DivElement getDivElement(String factName, FactModelTree factModelTree)
ListGroupItemView.Presenter
DivElement
representing a complex (i.e. expandable) property, i.e. a class containing other propertiesgetDivElement
in interface ListGroupItemView.Presenter
public com.google.gwt.dom.client.DivElement getDivElement(String fullPath, String factName, String factModelTreeClass)
ListGroupItemView.Presenter
DivElement
representing a complex (i.e. expandable) property, i.e. a class containing other propertiesgetDivElement
in interface ListGroupItemView.Presenter
fullPath
- the parent pathfactName
- the property' namefactModelTreeClass
- the property' typepublic void onToggleRowExpansion(ListGroupItemView listGroupItemView, boolean currentlyShown)
onToggleRowExpansion
in interface ListGroupItemView.Presenter
public void onSelectedElement(ListGroupItemView selected)
ListGroupItemView.Presenter
onSelectedElement
in interface ListGroupItemView.Presenter
public void onSelectedElement(FieldItemView selected)
ListGroupItemView.Presenter
onSelectedElement
in interface ListGroupItemView.Presenter
public void reset()
reset
in interface ListGroupItemView.Presenter
public String getFilterTerm()
getFilterTerm
in interface ListGroupItemView.Presenter
protected 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)
ListGroupItemView
toPopulate
- 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–2020 JBoss by Red Hat. All rights reserved.