public class LayoutFunctions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LayoutFunctions.LayoutRowsSorter
Sorter that re-arranges rows according to the row names order.
|
Constructor and Description |
---|
LayoutFunctions() |
Modifier and Type | Method and 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) |
public LayoutFunctions()
public static WidgetTypeDefinition getWidgetTypeDefinition(String category, String typeName)
public static String getFieldDefinitionsAsString(FieldDefinition[] defs)
public static List<LayoutRow> getSelectedRows(Layout layout, List<String> selectedRowNames, boolean showAlwaysSelected)
public static List<LayoutRow> getNotSelectedRows(Layout layout, List<String> selectedRowNames)
public static List<String> getDefaultSelectedRowNames(Layout layout, boolean showAlwaysSelected)
public static String computeLayoutDefinitionId(LayoutDefinition layoutDef)
public static String computeLayoutRowDefinitionId(LayoutRowDefinition layoutRowDef)
public static String computeWidgetDefinitionId(WidgetDefinition widgetDef)
Copyright © 2015 Nuxeo SA. All rights reserved.