Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.forms.layout.api.impl
Class LayoutRowImpl

java.lang.Object
  extended by 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

Constructor Summary
LayoutRowImpl(List<Widget> widgets, Map<String,Serializable> properties)
           
LayoutRowImpl(String name, boolean selectedByDefault, boolean alwaysSelected, List<Widget> widgets, Map<String,Serializable> properties)
           
 
Method Summary
 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 selected
 boolean isSelectedByDefault()
          Returns true if this row should be considered selected by default
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutRowImpl

public LayoutRowImpl(List<Widget> widgets,
                     Map<String,Serializable> properties)

LayoutRowImpl

public LayoutRowImpl(String name,
                     boolean selectedByDefault,
                     boolean alwaysSelected,
                     List<Widget> widgets,
                     Map<String,Serializable> properties)
Method Detail

getName

public String getName()
Specified by:
getName in interface LayoutRow

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 interface LayoutRow
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 interface LayoutRow

isSelectedByDefault

public boolean isSelectedByDefault()
Description copied from interface: LayoutRow
Returns true if this row should be considered selected by default

Specified by:
isSelectedByDefault in interface LayoutRow

getWidgets

public Widget[] getWidgets()
Specified by:
getWidgets in interface LayoutRow

getSize

public int getSize()
Specified by:
getSize in interface LayoutRow

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 interface LayoutRow

getProperty

public Serializable getProperty(String name)
Description copied from interface: LayoutRow
Returns property with given name in this mode.

Specified by:
getProperty in interface LayoutRow
Parameters:
name - the property name.
Returns:
the property value or null if not found.

toString

public String toString()
Overrides:
toString in class Object

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.