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:
java.io.Serializable, LayoutRow

public class LayoutRowImpl
extends java.lang.Object
implements LayoutRow

Implementation for layout rows.

Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
LayoutRowImpl(java.util.List<Widget> widgets, java.util.Map<java.lang.String,java.io.Serializable> properties)
           
LayoutRowImpl(java.lang.String name, boolean selectedByDefault, boolean alwaysSelected, java.util.List<Widget> widgets, java.util.Map<java.lang.String,java.io.Serializable> properties)
           
 
Method Summary
 java.lang.String getName()
           
 java.util.Map<java.lang.String,java.io.Serializable> getProperties()
          Get properties to use in this mode.
 java.io.Serializable getProperty(java.lang.String name)
          Returns property with given name in this mode.
 int getSize()
           
 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutRowImpl

public LayoutRowImpl(java.util.List<Widget> widgets,
                     java.util.Map<java.lang.String,java.io.Serializable> properties)

LayoutRowImpl

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

getName

public java.lang.String getName()
Specified by:
getName in interface LayoutRow

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 java.util.Map<java.lang.String,java.io.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 java.io.Serializable getProperty(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.