public class LayoutImpl extends Object implements Layout
| Constructor and Description |
|---|
LayoutImpl(String name,
String mode,
String template,
List<LayoutRow> rows,
int columns)
Deprecated.
since 5.5: use
LayoutImpl(String, String, String, List, int, Map, String) |
LayoutImpl(String name,
String mode,
String template,
List<LayoutRow> rows,
int columns,
Map<String,Serializable> properties)
Deprecated.
since 5.5: use
LayoutImpl(String, String, String, List, int, Map, String) |
LayoutImpl(String name,
String mode,
String template,
List<LayoutRow> rows,
int columns,
Map<String,Serializable> properties,
String definitionId) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumns()
Returns the maximum number of columns.
|
String |
getId()
Returns the layout id, unique within the facelet context.
|
String |
getMode()
Returns the layout mode.
|
String |
getName()
Returns the layout name used to identify it within the layout service.
|
Map<String,Serializable> |
getProperties()
Get properties to use in this mode.
|
Serializable |
getProperty(String name)
Returns property with given name in this mode.
|
LayoutRow[] |
getRows()
Returns the table of widgets.
|
String |
getTagConfigId()
Returns the unique identifier of this widget to be used in tag
configuration.
|
String |
getTemplate()
Returns the template used to render widgets.
|
Widget |
getWidget(String name)
Returns widget with given name.
|
Map<String,Widget> |
getWidgetMap()
Returns a widget map, with widget name as key.
|
void |
setId(String id)
Sets the layout id, unique within the facelet context.
|
void |
setProperty(String name,
Serializable value)
Sets property with given name on the layout.
|
String |
toString() |
@Deprecated public LayoutImpl(String name, String mode, String template, List<LayoutRow> rows, int columns)
LayoutImpl(String, String, String, List, int, Map, String)@Deprecated public LayoutImpl(String name, String mode, String template, List<LayoutRow> rows, int columns, Map<String,Serializable> properties)
LayoutImpl(String, String, String, List, int, Map, String)public String getId()
Layoutpublic String getTagConfigId()
LayoutIn JSF, layouts are rendered dynamically and re-use the tag configuration of the tag rendering them when adding handlers to the facelet hierarchy. Since this tag identifier is used to perform some kind of caching on the JSF layer, it needs to change when the layout definition changes, so that JSF components are not mistaken for another one.
This identifier is unique to a given layout definition and always returns the same result given the same layout definition.
getTagConfigId in interface Layoutpublic void setId(String id)
Layoutpublic String getName()
Layoutpublic String getTemplate()
LayoutgetTemplate in interface Layoutpublic LayoutRow[] getRows()
Layout
This list is computed from the LayoutDefinition rows.
Widgets that are not found are ignored.
public int getColumns()
LayoutgetColumns in interface Layoutpublic Widget getWidget(String name)
LayoutOnly widgets of the first level are retrieved.
public Map<String,Widget> getWidgetMap()
LayoutOnly widgets of the first level are retrieved.
getWidgetMap in interface Layoutpublic Map<String,Serializable> getProperties()
LayoutThe way that properties will be mapped to rendered components is managed by the widget type.
getProperties in interface Layoutpublic Serializable getProperty(String name)
LayoutgetProperty in interface Layoutname - the property name.public void setProperty(String name, Serializable value)
LayoutsetProperty in interface Layoutname - the property name.value - the property value or null if not found.Copyright © 2011 Nuxeo SA. All Rights Reserved.