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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LayoutFunctions.LayoutRowsSorter
Sorter that re-arranges rows according to the row names order.
-
Constructor Summary
Constructors Constructor Description LayoutFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
computeLayoutDefinitionId(LayoutDefinition layoutDef)
Returns an identifier computed from this definition so that an identical definition will have the same id.static String
computeLayoutRowDefinitionId(LayoutRowDefinition layoutRowDef)
Returns an identifier computed from this definition so that an identical definition will have the same id.static String
computeWidgetDefinitionId(WidgetDefinition widgetDef)
Returns an identifier computed from this definition so that an identical definition will have the same id.static List<String>
getDefaultSelectedRowNames(Layout layout, boolean showAlwaysSelected)
static String
getFieldDefinitionsAsString(FieldDefinition[] defs)
Returns a String representing each of the field definitions property name, separated by a space.static List<LayoutRow>
getNotSelectedRows(Layout layout, List<String> selectedRowNames)
static List<LayoutRow>
getSelectedRows(Layout layout, List<String> selectedRowNames, boolean showAlwaysSelected)
static WidgetTypeDefinition
getWidgetTypeDefinition(String category, String typeName)
-
-
-
Method Detail
-
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
-
-