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()
LayoutRowDefinitiongetName in interface LayoutRowDefinitionpublic String getDefaultName(int index)
LayoutRowDefinitiongetDefaultName in interface LayoutRowDefinitionpublic Map<String,Serializable> getProperties(String layoutMode)
LayoutRowDefinitiongetProperties in interface LayoutRowDefinitionpublic Map<String,Map<String,Serializable>> getProperties()
LayoutRowDefinitiongetProperties in interface LayoutRowDefinitionpublic int getSize()
LayoutRowDefinitiongetSize in interface LayoutRowDefinitionpublic WidgetReference[] getWidgetReferences()
LayoutRowDefinitiongetWidgetReferences in interface LayoutRowDefinitionpublic boolean isAlwaysSelected()
LayoutRowDefinitionisAlwaysSelected in interface LayoutRowDefinitionpublic boolean isSelectedByDefault()
LayoutRowDefinitionisSelectedByDefault in interface LayoutRowDefinitionpublic LayoutRowDefinition clone()
LayoutRowDefinitionUseful for conversion of layout definition during export.
clone in interface LayoutRowDefinitionclone in class ObjectCopyright © 2019 Nuxeo. All rights reserved.