Class LayoutRowDefinitionImpl
java.lang.Object
org.nuxeo.ecm.platform.forms.layout.api.impl.LayoutRowDefinitionImpl
- All Implemented Interfaces:
Serializable,LayoutRowDefinition
Default implementation for a layout row definition.
Useful to compute rows independently from the layout service.
- Since:
- 5.4
- Author:
- Anahide Tchertchian, Antoine Taillefer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Map<String,Map<String, Serializable>> protected booleanprotected WidgetReference[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLayoutRowDefinitionImpl(String name, String widget) LayoutRowDefinitionImpl(String name, String widget, String category) Instantiates a newLayoutRowDefinitionImplwith a given widget name and category.LayoutRowDefinitionImpl(String name, Map<String, Map<String, Serializable>> properties, List<WidgetReference> widgets, boolean alwaysSelected, boolean selectedByDefault) LayoutRowDefinitionImpl(String name, Map<String, Map<String, Serializable>> properties, WidgetReference[] widgets, boolean alwaysSelected, boolean selectedByDefault) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone instance of this row definition.booleangetDefaultName(int index) Returns the default name for this row, given an index.getName()Returns the row nameReturns properties by mode.getProperties(String layoutMode) Returns a map of properties to use in a given mode.intgetSize()Returns the row sizeReturns the list of widget references to use at a given row.booleanReturn true if this row should be considered always selectedbooleanReturns true if this row should be considered selected by default
-
Field Details
-
name
-
properties
-
widgets
-
alwaysSelected
protected boolean alwaysSelected -
selectedByDefault
protected boolean selectedByDefault
-
-
Constructor Details
-
LayoutRowDefinitionImpl
protected LayoutRowDefinitionImpl() -
LayoutRowDefinitionImpl
Instantiates a newLayoutRowDefinitionImplwith a given widget name and category.- Parameters:
name- the row namewidget- the widget namecategory- the category- Since:
- 5.6
-
LayoutRowDefinitionImpl
-
LayoutRowDefinitionImpl
public LayoutRowDefinitionImpl(String name, Map<String, Map<String, Serializable>> properties, List<WidgetReference> widgets, boolean alwaysSelected, boolean selectedByDefault) -
LayoutRowDefinitionImpl
public LayoutRowDefinitionImpl(String name, Map<String, Map<String, Serializable>> properties, WidgetReference[] widgets, boolean alwaysSelected, boolean selectedByDefault)
-
-
Method Details
-
getName
Description copied from interface:LayoutRowDefinitionReturns the row name- Specified by:
getNamein interfaceLayoutRowDefinition
-
getDefaultName
Description copied from interface:LayoutRowDefinitionReturns the default name for this row, given an index.- Specified by:
getDefaultNamein interfaceLayoutRowDefinition
-
getProperties
Description copied from interface:LayoutRowDefinitionReturns a map of properties to use in a given mode.- Specified by:
getPropertiesin interfaceLayoutRowDefinition
-
getProperties
Description copied from interface:LayoutRowDefinitionReturns properties by mode.- Specified by:
getPropertiesin interfaceLayoutRowDefinition
-
getSize
public int getSize()Description copied from interface:LayoutRowDefinitionReturns the row size- Specified by:
getSizein interfaceLayoutRowDefinition
-
getWidgetReferences
Description copied from interface:LayoutRowDefinitionReturns the list of widget references to use at a given row.- Specified by:
getWidgetReferencesin interfaceLayoutRowDefinition
-
isAlwaysSelected
public boolean isAlwaysSelected()Description copied from interface:LayoutRowDefinitionReturn true if this row should be considered always selected- Specified by:
isAlwaysSelectedin interfaceLayoutRowDefinition
-
isSelectedByDefault
public boolean isSelectedByDefault()Description copied from interface:LayoutRowDefinitionReturns true if this row should be considered selected by default- Specified by:
isSelectedByDefaultin interfaceLayoutRowDefinition
-
clone
Description copied from interface:LayoutRowDefinitionReturns a clone instance of this row definition.Useful for conversion of layout definition during export.
- Specified by:
clonein interfaceLayoutRowDefinition- Overrides:
clonein classObject
-
equals
-