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:
  • Field Details

    • name

      protected String name
    • selectedByDefault

      protected boolean selectedByDefault
    • alwaysSelected

      protected boolean alwaysSelected
    • widgets

      protected Widget[] widgets
    • properties

      protected Map<String,Serializable> properties
    • definitionId

      protected String definitionId
  • Constructor Details

    • LayoutRowImpl

      protected LayoutRowImpl()
    • LayoutRowImpl

      public LayoutRowImpl(String name, boolean selectedByDefault, boolean alwaysSelected, List<Widget> widgets, Map<String,Serializable> properties, String definitionId)
      Since:
      5.5
  • Method Details

    • 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:
    • 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