Class LayoutFunctions

java.lang.Object
org.nuxeo.ecm.platform.forms.layout.functions.LayoutFunctions

public class LayoutFunctions extends Object
Provides helper methods, declared as static, to be used by the rendering framework.
Since:
5.5
  • Constructor Details

    • LayoutFunctions

      public LayoutFunctions()
  • Method Details

    • getWidgetTypeDefinition

      public static WidgetTypeDefinition getWidgetTypeDefinition(String category, String typeName)
    • getFieldDefinitionsAsString

      public static String getFieldDefinitionsAsString(FieldDefinition[] defs)
      Returns a String representing each of the field definitions property name, separated by a space.
    • getSelectedRows

      public static List<LayoutRow> getSelectedRows(Layout layout, List<String> selectedRowNames, boolean showAlwaysSelected)
    • getNotSelectedRows

      public static List<LayoutRow> getNotSelectedRows(Layout layout, List<String> selectedRowNames)
    • getDefaultSelectedRowNames

      public static List<String> getDefaultSelectedRowNames(Layout layout, boolean showAlwaysSelected)
    • computeLayoutDefinitionId

      public static String computeLayoutDefinitionId(LayoutDefinition layoutDef)
      Returns an identifier computed from this definition so that an identical definition will have the same id.
      Since:
      5.5
    • computeLayoutRowDefinitionId

      public static String computeLayoutRowDefinitionId(LayoutRowDefinition layoutRowDef)
      Returns an identifier computed from this definition so that an identical definition will have the same id.
      Since:
      5.5
    • computeWidgetDefinitionId

      public static String computeWidgetDefinitionId(WidgetDefinition widgetDef)
      Returns an identifier computed from this definition so that an identical definition will have the same id.
      Since:
      5.5