Interface ModelValueHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getValue​(java.lang.Object model, java.lang.String expression)
      Retrieves the value from the model using the given expression.
      java.lang.Object getValue​(java.lang.Object model, java.lang.String expression, boolean useSessionLanguageForLocalized)
      Retrieves the value from the model using the given expression.
      <T> java.lang.Class<T> getValueType​(java.lang.Object model, java.lang.String expression)
      Retrieves the type of the value of the model using the given expression.
      void setValue​(java.lang.Object model, java.lang.String expression, java.lang.Object value)
      Stores the given value to the model using the given expression.
    • Method Detail

      • setValue

        void setValue​(java.lang.Object model,
                      java.lang.String expression,
                      java.lang.Object value)
        Stores the given value to the model using the given expression. You can use expressions like 'product.media.code' to navigate through data structures. See implementations for detail. It also notifies the widget about the change. This is used to keep cockpit NG components like editors and actions uptodate.
        Parameters:
        model - the object to apply the expression on
        expression - the expression, can be like 'product.media.code'
        value - the value to store
      • getValue

        java.lang.Object getValue​(java.lang.Object model,
                                  java.lang.String expression,
                                  boolean useSessionLanguageForLocalized)
        Retrieves the value from the model using the given expression. You can use expressions like 'product.media.code' to navigate through data structures. See implementations for detail.
        Parameters:
        model - the object to apply the expression on
        expression - the expression, can be like 'product.media.code'
        useSessionLanguageForLocalized - if true the value for the session language will be returned instead of all values for all available locales
        Returns:
        the value of evaluation ef the given expression
        Since:
        1.15.4
      • getValue

        java.lang.Object getValue​(java.lang.Object model,
                                  java.lang.String expression)
        Retrieves the value from the model using the given expression. You can use expressions like 'product.media.code' to navigate through data structures. See implementations for detail.
        Parameters:
        model - the object to apply the expression on
        expression - the expression, can be like 'product.media.code'
        Returns:
        the value of evaluation ef the given expression
      • getValueType

        <T> java.lang.Class<T> getValueType​(java.lang.Object model,
                                            java.lang.String expression)
        Retrieves the type of the value of the model using the given expression.
        Parameters:
        model - the object to apply the expression on
        expression - the expression, can be like 'product.media.code'
        Returns:
        the type of the value