Interface PropertyView.Presenter
-
- All Known Implementing Classes:
PropertyPresenter
- Enclosing interface:
- PropertyView
public static interface PropertyView.Presenter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteProperties(String itemId)Remove all the properties belonging to the given baseNodeId from bothDOMand internalMapvoideditProperties(String itemId)Show theInputElements to edit the properties shown at the given baseNodeId and hide theirSpanElementscom.google.gwt.dom.client.LIElementgetEditingPropertyFields(String itemId, String propertyName, String propertyValue)com.google.gwt.dom.client.LIElementgetPropertyFields(String itemId, String propertyName, String propertyValue)StringgetPropertyValue(String propertyName)Get the text shown in the property valueMap<String,String>getSimpleProperties(String itemId)Retrieve the simple properties shown at the given itemIdvoidonToggleRowExpansion(String itemId, boolean isShown)voidstopEditProperties(String itemId)Show theSpanElements of the properties shown at the given baseNodeId without change their values, and and hide theirInputElementsMap<String,String>updateProperties(String itemId)Show theSpanElements of the properties shown at the given baseNodeId with the value of theirInputElements, and hide the latters
-
-
-
Method Detail
-
getPropertyValue
String getPropertyValue(String propertyName) throws Exception
Get the text shown in the property value- Parameters:
propertyName- the property fro which we are retrieving the value- Returns:
- Throws:
Exception- if the given property value is not found
-
editProperties
void editProperties(String itemId)
Show theInputElements to edit the properties shown at the given baseNodeId and hide theirSpanElements- Parameters:
itemId- the id of the item containing theLIElement
-
stopEditProperties
void stopEditProperties(String itemId)
Show theSpanElements of the properties shown at the given baseNodeId without change their values, and and hide theirInputElements- Parameters:
itemId- the id of the item containing theLIElement
-
getSimpleProperties
Map<String,String> getSimpleProperties(String itemId)
Retrieve the simple properties shown at the given itemId- Parameters:
itemId- the id of the item containing theLIElement- Returns:
- the map with updated values
-
updateProperties
Map<String,String> updateProperties(String itemId)
Show theSpanElements of the properties shown at the given baseNodeId with the value of theirInputElements, and hide the latters- Parameters:
itemId- the id of the item containing theLIElement- Returns:
- the map with updated values
-
getPropertyFields
com.google.gwt.dom.client.LIElement getPropertyFields(String itemId, String propertyName, String propertyValue)
- Parameters:
itemId- the id of the item containing theLIElementpropertyName-propertyValue-- Returns:
- the
LIElementcontaining the property' fields
-
getEditingPropertyFields
com.google.gwt.dom.client.LIElement getEditingPropertyFields(String itemId, String propertyName, String propertyValue)
- Parameters:
itemId- the id of the item containing theLIElementpropertyName-propertyValue-- Returns:
- the
LIElementcontaining the property' fields in editing mode
-
onToggleRowExpansion
void onToggleRowExpansion(String itemId, boolean isShown)
- Parameters:
itemId- the id of the item containing theLIElementisShown-trueit the item is currently shown
-
deleteProperties
void deleteProperties(String itemId)
Remove all the properties belonging to the given baseNodeId from bothDOMand internalMap- Parameters:
itemId- the id of the item containing theLIElement
-
-