Class FKTreeUIDefinition


  • public class FKTreeUIDefinition
    extends ForeignKeyUIDefinition
    Implementation of the foreign key tree ui definition. It uses a tree grid for its input and filter types
    • Constructor Detail

      • FKTreeUIDefinition

        public FKTreeUIDefinition()
    • Method Detail

      • getFieldProperties

        public String getFieldProperties​(Field field,
                                         boolean getValueFromSession)
        Description copied from class: UIDefinition
        Computes properties to initialize and set the field in a Smartclient form. This can be the default value or the sets of values in the valuemap.
        Overrides:
        getFieldProperties in class UIDefinition
        Parameters:
        field - the field for which the information should be computed.
        Returns:
        a JSONObject string which is used to initialize the formitem.
      • getFieldProperties

        public String getFieldProperties​(Field field)
        Description copied from class: UIDefinition
        Computes properties to initialize and set the field in a Smartclient form. This can be the default value or the sets of values in the valuemap. NOTE: the field parameter may be null, implementors of subclasses should take this into account.
        Overrides:
        getFieldProperties in class UIDefinition
        Parameters:
        field - the field for which the information should be computed. NOTE: the caller is allowed to pass null for cases where the field properties are needed for a FormItem which is not backed by an Openbravo field.
        Returns:
        a JSONObject string which is used to initialize the formitem.
      • getReferencedTreeFromReference

        public static ReferencedTree getReferencedTreeFromReference​(Reference reference)