Interface PropertyView.Presenter

    • 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 the InputElements to edit the properties shown at the given baseNodeId and hide their SpanElements
        Parameters:
        itemId - the id of the item containing the LIElement
      • stopEditProperties

        void stopEditProperties​(String itemId)
        Show the SpanElements of the properties shown at the given baseNodeId without change their values, and and hide their InputElements
        Parameters:
        itemId - the id of the item containing the LIElement
      • getSimpleProperties

        Map<String,​String> getSimpleProperties​(String itemId)
        Retrieve the simple properties shown at the given itemId
        Parameters:
        itemId - the id of the item containing the LIElement
        Returns:
        the map with updated values
      • updateProperties

        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
        Parameters:
        itemId - the id of the item containing the LIElement
        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 the LIElement
        propertyName -
        propertyValue -
        Returns:
        the LIElement containing 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 the LIElement
        propertyName -
        propertyValue -
        Returns:
        the LIElement containing the property' fields in editing mode
      • onToggleRowExpansion

        void onToggleRowExpansion​(String itemId,
                                  boolean isShown)
        Parameters:
        itemId - the id of the item containing the LIElement
        isShown - true it the item is currently shown
      • deleteProperties

        void deleteProperties​(String itemId)
        Remove all the properties belonging to the given baseNodeId from both DOM and internal Map
        Parameters:
        itemId - the id of the item containing the LIElement