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
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected Map<String,
Map<String, Serializable>> protected boolean
protected WidgetReference[]
-
Constructor Summary
ModifierConstructorDescriptionprotected
LayoutRowDefinitionImpl
(String name, String widget) LayoutRowDefinitionImpl
(String name, String widget, String category) Instantiates a newLayoutRowDefinitionImpl
with 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.boolean
getDefaultName
(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.int
getSize()
Returns the row sizeReturns the list of widget references to use at a given row.boolean
Return true if this row should be considered always selectedboolean
Returns 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 newLayoutRowDefinitionImpl
with 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:LayoutRowDefinition
Returns the row name- Specified by:
getName
in interfaceLayoutRowDefinition
-
getDefaultName
Description copied from interface:LayoutRowDefinition
Returns the default name for this row, given an index.- Specified by:
getDefaultName
in interfaceLayoutRowDefinition
-
getProperties
Description copied from interface:LayoutRowDefinition
Returns a map of properties to use in a given mode.- Specified by:
getProperties
in interfaceLayoutRowDefinition
-
getProperties
Description copied from interface:LayoutRowDefinition
Returns properties by mode.- Specified by:
getProperties
in interfaceLayoutRowDefinition
-
getSize
public int getSize()Description copied from interface:LayoutRowDefinition
Returns the row size- Specified by:
getSize
in interfaceLayoutRowDefinition
-
getWidgetReferences
Description copied from interface:LayoutRowDefinition
Returns the list of widget references to use at a given row.- Specified by:
getWidgetReferences
in interfaceLayoutRowDefinition
-
isAlwaysSelected
public boolean isAlwaysSelected()Description copied from interface:LayoutRowDefinition
Return true if this row should be considered always selected- Specified by:
isAlwaysSelected
in interfaceLayoutRowDefinition
-
isSelectedByDefault
public boolean isSelectedByDefault()Description copied from interface:LayoutRowDefinition
Returns true if this row should be considered selected by default- Specified by:
isSelectedByDefault
in interfaceLayoutRowDefinition
-
clone
Description copied from interface:LayoutRowDefinition
Returns a clone instance of this row definition.Useful for conversion of layout definition during export.
- Specified by:
clone
in interfaceLayoutRowDefinition
- Overrides:
clone
in classObject
-
equals
-