public class PropertyPresenter extends Object implements PropertyView.Presenter
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,com.google.gwt.dom.client.SpanElement> |
propertySpanElementMap
Map to pair a given property with the SpanElement showing its value |
protected Map<String,List<PropertyView>> |
propertyViewMap
Map to pair a given itemId with its PropertyEditorViews |
protected ViewsProvider |
viewsProvider |
| Constructor and Description |
|---|
PropertyPresenter() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteProperties(String itemId)
Remove all the properties belonging to the given baseNodeId from both
DOM and internal Map |
void |
editProperties(String itemId)
Show the
InputElements to edit the properties shown at the given baseNodeId and hide their SpanElements |
com.google.gwt.dom.client.LIElement |
getEditingPropertyFields(String itemId,
String propertyName,
String propertyValue) |
Map<String,String> |
getProperties(String itemId)
Retrieve the properties shown at the given itemId
|
com.google.gwt.dom.client.LIElement |
getPropertyFields(String itemId,
String propertyName,
String propertyValue) |
String |
getPropertyValue(String propertyName)
Get the text shown in the property value
|
void |
onToggleRowExpansion(String itemId,
boolean isShown) |
protected Map<String,String> |
stopEdit(String itemId,
boolean toUpdate) |
void |
stopEditProperties(String itemId)
Show the
SpanElements of the properties shown at the given baseNodeId without change their values, and and hide their InputElements |
Map<String,String> |
updateProperties(String itemId)
Show the
SpanElements of the properties shown at the given baseNodeId with the value of their InputElements, and hide the latters |
@Inject protected ViewsProvider viewsProvider
protected Map<String,com.google.gwt.dom.client.SpanElement> propertySpanElementMap
Map to pair a given property with the SpanElement showing its valueprotected Map<String,List<PropertyView>> propertyViewMap
Map to pair a given itemId with its PropertyEditorViewspublic String getPropertyValue(String propertyName) throws Exception
PropertyView.PresentergetPropertyValue in interface PropertyView.PresenterpropertyName - the property fro which we are retrieving the valueException - if the given property value is not foundpublic void editProperties(String itemId)
PropertyView.PresenterInputElements to edit the properties shown at the given baseNodeId and hide their SpanElementseditProperties in interface PropertyView.PresenteritemId - the id of the item containing the LIElementpublic void stopEditProperties(String itemId)
PropertyView.PresenterSpanElements of the properties shown at the given baseNodeId without change their values, and and hide their InputElementsstopEditProperties in interface PropertyView.PresenteritemId - the id of the item containing the LIElementpublic Map<String,String> updateProperties(String itemId)
PropertyView.PresenterSpanElements of the properties shown at the given baseNodeId with the value of their InputElements, and hide the lattersupdateProperties in interface PropertyView.PresenteritemId - the id of the item containing the LIElementpublic Map<String,String> getProperties(String itemId)
PropertyView.PresentergetProperties in interface PropertyView.PresenteritemId - the id of the item containing the LIElementpublic com.google.gwt.dom.client.LIElement getPropertyFields(String itemId, String propertyName, String propertyValue)
getPropertyFields in interface PropertyView.PresenteritemId - the id of the item containing the LIElementLIElement containing the property' fieldspublic com.google.gwt.dom.client.LIElement getEditingPropertyFields(String itemId, String propertyName, String propertyValue)
getEditingPropertyFields in interface PropertyView.PresenteritemId - the id of the item containing the LIElementLIElement containing the property' fields in editing modepublic void onToggleRowExpansion(String itemId, boolean isShown)
onToggleRowExpansion in interface PropertyView.PresenteritemId - the id of the item containing the LIElementisShown - true it the item is currently shownpublic void deleteProperties(String itemId)
PropertyView.PresenterDOM and internal MapdeleteProperties in interface PropertyView.PresenteritemId - the id of the item containing the LIElementCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.