public class LayoutRowDefinitionImpl extends Object implements LayoutRowDefinition
Useful to compute rows independently from the layout service.
Modifier and Type | Field and Description |
---|---|
protected boolean |
alwaysSelected |
protected String |
name |
protected Map<String,Map<String,Serializable>> |
properties |
protected boolean |
selectedByDefault |
protected WidgetReference[] |
widgets |
Modifier | Constructor and Description |
---|---|
protected |
LayoutRowDefinitionImpl() |
|
LayoutRowDefinitionImpl(String name,
Map<String,Map<String,Serializable>> properties,
List<WidgetReference> widgets,
boolean alwaysSelected,
boolean selectedByDefault) |
|
LayoutRowDefinitionImpl(String name,
Map<String,Map<String,Serializable>> properties,
WidgetReference[] widgets,
boolean alwaysSelected,
boolean selectedByDefault) |
|
LayoutRowDefinitionImpl(String name,
String widget) |
|
LayoutRowDefinitionImpl(String name,
String widget,
String category)
Instantiates a new
LayoutRowDefinitionImpl with a given widget name and category. |
Modifier and Type | Method and Description |
---|---|
LayoutRowDefinition |
clone()
Returns a clone instance of this row definition.
|
boolean |
equals(Object obj) |
String |
getDefaultName(int index)
Returns the default name for this row, given an index.
|
String |
getName()
Returns the row name
|
Map<String,Map<String,Serializable>> |
getProperties()
Returns properties by mode.
|
Map<String,Serializable> |
getProperties(String layoutMode)
Returns a map of properties to use in a given mode.
|
int |
getSize()
Returns the row size
|
WidgetReference[] |
getWidgetReferences()
Returns the list of widget references to use at a given row.
|
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
|
protected Map<String,Map<String,Serializable>> properties
protected WidgetReference[] widgets
protected boolean alwaysSelected
protected boolean selectedByDefault
protected LayoutRowDefinitionImpl()
public LayoutRowDefinitionImpl(String name, String widget, String category)
LayoutRowDefinitionImpl
with a given widget name and category.name
- the row namewidget
- the widget namecategory
- the categorypublic LayoutRowDefinitionImpl(String name, String widget)
public LayoutRowDefinitionImpl(String name, Map<String,Map<String,Serializable>> properties, List<WidgetReference> widgets, boolean alwaysSelected, boolean selectedByDefault)
public LayoutRowDefinitionImpl(String name, Map<String,Map<String,Serializable>> properties, WidgetReference[] widgets, boolean alwaysSelected, boolean selectedByDefault)
public String getName()
LayoutRowDefinition
getName
in interface LayoutRowDefinition
public String getDefaultName(int index)
LayoutRowDefinition
getDefaultName
in interface LayoutRowDefinition
public Map<String,Serializable> getProperties(String layoutMode)
LayoutRowDefinition
getProperties
in interface LayoutRowDefinition
public Map<String,Map<String,Serializable>> getProperties()
LayoutRowDefinition
getProperties
in interface LayoutRowDefinition
public int getSize()
LayoutRowDefinition
getSize
in interface LayoutRowDefinition
public WidgetReference[] getWidgetReferences()
LayoutRowDefinition
getWidgetReferences
in interface LayoutRowDefinition
public boolean isAlwaysSelected()
LayoutRowDefinition
isAlwaysSelected
in interface LayoutRowDefinition
public boolean isSelectedByDefault()
LayoutRowDefinition
isSelectedByDefault
in interface LayoutRowDefinition
public LayoutRowDefinition clone()
LayoutRowDefinition
Useful for conversion of layout definition during export.
clone
in interface LayoutRowDefinition
clone
in class Object
Copyright © 2018 Nuxeo. All rights reserved.