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 booleanalwaysSelectedprotected StringdefinitionIdprotected Stringnameprotected Map<String,Serializable>propertiesprotected booleanselectedByDefaultprotected Widget[]widgets
-
Constructor Summary
Constructors Modifier Constructor Description protectedLayoutRowImpl()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 StringgetName()Map<String,Serializable>getProperties()Get properties to use in this mode.SerializablegetProperty(String name)Returns property with given name in this mode.intgetSize()StringgetTagConfigId()Returns the unique identifier of this widget to be used in tag configuration.Widget[]getWidgets()booleanisAlwaysSelected()Return true if this row should be considered always selectedbooleanisSelectedByDefault()Returns true if this row should be considered selected by defaultStringtoString()
-
-
-
Method Detail
-
getTagConfigId
public String getTagConfigId()
Description copied from interface:LayoutRowReturns the unique identifier of this widget to be used in tag configuration.- Specified by:
getTagConfigIdin interfaceLayoutRow- See Also:
Layout.getTagConfigId()
-
isAlwaysSelected
public boolean isAlwaysSelected()
Description copied from interface:LayoutRowReturn true if this row should be considered always selected- Specified by:
isAlwaysSelectedin interfaceLayoutRow
-
isSelectedByDefault
public boolean isSelectedByDefault()
Description copied from interface:LayoutRowReturns true if this row should be considered selected by default- Specified by:
isSelectedByDefaultin interfaceLayoutRow
-
getWidgets
public Widget[] getWidgets()
- Specified by:
getWidgetsin interfaceLayoutRow
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:LayoutRowGet properties to use in this mode.The way that properties will be mapped to rendered components is managed by the widget type.
- Specified by:
getPropertiesin interfaceLayoutRow
-
getProperty
public Serializable getProperty(String name)
Description copied from interface:LayoutRowReturns property with given name in this mode.- Specified by:
getPropertyin interfaceLayoutRow- Parameters:
name- the property name.- Returns:
- the property value or null if not found.
-
-