|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.forms.layout.api.impl.LayoutImpl
public class LayoutImpl
Implementation for layouts.
Constructor Summary | |
---|---|
LayoutImpl(java.lang.String name,
java.lang.String mode,
java.lang.String template,
java.util.List<LayoutRow> rows,
int columns)
|
|
LayoutImpl(java.lang.String name,
java.lang.String mode,
java.lang.String template,
java.util.List<LayoutRow> rows,
int columns,
java.util.Map<java.lang.String,java.io.Serializable> properties)
|
Method Summary | |
---|---|
int |
getColumns()
Returns the maximum number of columns. |
java.lang.String |
getId()
Returns the layout id, unique within the facelet context. |
java.lang.String |
getMode()
Returns the layout mode. |
java.lang.String |
getName()
Returns the layout name used to identify it within the layout service. |
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. |
LayoutRow[] |
getRows()
Returns the table of widgets. |
java.lang.String |
getTemplate()
Returns the template used to render widgets. |
Widget |
getWidget(java.lang.String name)
Returns widget with given name. |
java.util.Map<java.lang.String,Widget> |
getWidgetMap()
Returns a widget map, with widget name as key. |
void |
setId(java.lang.String id)
Sets the layout id, unique within the facelet context. |
void |
setProperty(java.lang.String name,
java.io.Serializable value)
Sets property with given name on the layout. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LayoutImpl(java.lang.String name, java.lang.String mode, java.lang.String template, java.util.List<LayoutRow> rows, int columns)
public LayoutImpl(java.lang.String name, java.lang.String mode, java.lang.String template, java.util.List<LayoutRow> rows, int columns, java.util.Map<java.lang.String,java.io.Serializable> properties)
Method Detail |
---|
public java.lang.String getId()
Layout
getId
in interface Layout
public void setId(java.lang.String id)
Layout
setId
in interface Layout
public java.lang.String getName()
Layout
getName
in interface Layout
public java.lang.String getMode()
Layout
getMode
in interface Layout
public java.lang.String getTemplate()
Layout
getTemplate
in interface Layout
public LayoutRow[] getRows()
Layout
This list is computed from the LayoutDefinition
rows.
Widgets that are not found are ignored.
getRows
in interface Layout
public int getColumns()
Layout
getColumns
in interface Layout
public Widget getWidget(java.lang.String name)
Layout
Only widgets of the first level are retrieved.
getWidget
in interface Layout
public java.util.Map<java.lang.String,Widget> getWidgetMap()
Layout
Only widgets of the first level are retrieved.
getWidgetMap
in interface Layout
public java.util.Map<java.lang.String,java.io.Serializable> getProperties()
Layout
The way that properties will be mapped to rendered components is managed by the widget type.
getProperties
in interface Layout
public java.io.Serializable getProperty(java.lang.String name)
Layout
getProperty
in interface Layout
name
- the property name.
public void setProperty(java.lang.String name, java.io.Serializable value)
Layout
setProperty
in interface Layout
name
- the property name.value
- the property value or null if not found.public java.lang.String toString()
toString
in class java.lang.Object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |