Class LayoutRowImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.forms.layout.api.impl.LayoutRowImpl
-
- All Implemented Interfaces:
Serializable
,LayoutRow
public class LayoutRowImpl extends Object implements LayoutRow
Implementation for layout rows.- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
alwaysSelected
protected String
definitionId
protected String
name
protected Map<String,Serializable>
properties
protected boolean
selectedByDefault
protected Widget[]
widgets
-
Constructor Summary
Constructors Modifier Constructor Description protected
LayoutRowImpl()
LayoutRowImpl(String name, boolean selectedByDefault, boolean alwaysSelected, List<Widget> widgets, Map<String,Serializable> properties, String definitionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Map<String,Serializable>
getProperties()
Get properties to use in this mode.Serializable
getProperty(String name)
Returns property with given name in this mode.int
getSize()
String
getTagConfigId()
Returns the unique identifier of this widget to be used in tag configuration.Widget[]
getWidgets()
boolean
isAlwaysSelected()
Return true if this row should be considered always selectedboolean
isSelectedByDefault()
Returns true if this row should be considered selected by defaultString
toString()
-
-
-
Method Detail
-
getTagConfigId
public String getTagConfigId()
Description copied from interface:LayoutRow
Returns the unique identifier of this widget to be used in tag configuration.- Specified by:
getTagConfigId
in interfaceLayoutRow
- See Also:
Layout.getTagConfigId()
-
isAlwaysSelected
public boolean isAlwaysSelected()
Description copied from interface:LayoutRow
Return true if this row should be considered always selected- Specified by:
isAlwaysSelected
in interfaceLayoutRow
-
isSelectedByDefault
public boolean isSelectedByDefault()
Description copied from interface:LayoutRow
Returns true if this row should be considered selected by default- Specified by:
isSelectedByDefault
in interfaceLayoutRow
-
getWidgets
public Widget[] getWidgets()
- Specified by:
getWidgets
in interfaceLayoutRow
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:LayoutRow
Get properties to use in this mode.The way that properties will be mapped to rendered components is managed by the widget type.
- Specified by:
getProperties
in interfaceLayoutRow
-
getProperty
public Serializable getProperty(String name)
Description copied from interface:LayoutRow
Returns property with given name in this mode.- Specified by:
getProperty
in interfaceLayoutRow
- Parameters:
name
- the property name.- Returns:
- the property value or null if not found.
-
-