public class LayoutTypeConfigurationImpl extends Object implements LayoutTypeConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
categories |
protected boolean |
containingForm |
protected Map<String,Map<String,Serializable>> |
defaultPropertyValues |
protected String |
demoId |
protected boolean |
demoPreviewEnabled |
protected String |
deprecatedVersion |
protected String |
description |
protected Map<String,List<LayoutDefinition>> |
fieldLayouts |
protected boolean |
handlingLabels |
protected Map<String,List<LayoutDefinition>> |
propertyLayouts |
protected String |
sinceVersion |
protected List<String> |
supportedControls |
protected List<String> |
supportedModes |
protected String |
title |
| Constructor and Description |
|---|
LayoutTypeConfigurationImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getCategories() |
Map<String,Map<String,Serializable>> |
getDefaultPropertyValues()
Returns the default values for the layout type properties, by mode.
|
Map<String,Serializable> |
getDefaultPropertyValues(String mode)
Returns the default values for the layout type properties, for given mode.
|
String |
getDemoId()
Returns the identifier to be used for the demo, or null if no demo is available.
|
String |
getDeprecatedVersion()
Returns the version name since the widget type has been deprecated (5.4, 5.4.2, etc...)
|
String |
getDescription() |
protected List<LayoutDefinition> |
getLayouts(Map<String,List<LayoutDefinition>> allLayouts,
String mode,
String additionalMode) |
Map<String,List<LayoutDefinition>> |
getPropertyLayouts() |
List<LayoutDefinition> |
getPropertyLayouts(String mode,
String additionalMode) |
String |
getSinceVersion()
Returns the version name since the widget type has been available (5.4, 5.4.2, etc...)
|
List<String> |
getSupportedControls()
Returns the list of supported controls, e.g.
|
List<String> |
getSupportedModes() |
String |
getTitle() |
boolean |
isContainingForm()
Returns true if widget will be containing forms.
|
boolean |
isDemoPreviewEnabled()
Returns true is the preview is enabled on the demo.
|
boolean |
isHandlingLabels()
Returns true if widget knows how to display its label (some widget types might delegate this to their containing
widget or layout, usually when defining form layouts).
|
void |
setCategories(List<String> categories) |
void |
setContainingForm(boolean containingForm) |
void |
setDefaultPropertyValues(Map<String,Map<String,Serializable>> defaultPropertyValues) |
void |
setDemoId(String demoId) |
void |
setDemoPreviewEnabled(boolean demoPreviewEnabled) |
void |
setDeprecatedVersion(String deprecatedVersion) |
void |
setDescription(String description) |
void |
setHandlingLabels(boolean handlingLabels) |
void |
setPropertyLayouts(Map<String,List<LayoutDefinition>> propertyLayouts) |
void |
setSinceVersion(String sinceVersion) |
void |
setSupportedControls(List<String> supportedControls) |
void |
setSupportedModes(List<String> supportedModes) |
void |
setTitle(String title) |
protected String sinceVersion
protected String deprecatedVersion
protected String description
protected boolean demoPreviewEnabled
protected List<String> supportedModes
protected boolean handlingLabels
protected List<String> supportedControls
protected boolean containingForm
protected List<String> categories
protected Map<String,List<LayoutDefinition>> propertyLayouts
protected Map<String,Map<String,Serializable>> defaultPropertyValues
protected Map<String,List<LayoutDefinition>> fieldLayouts
public LayoutTypeConfigurationImpl()
public String getSinceVersion()
LayoutTypeConfigurationgetSinceVersion in interface LayoutTypeConfigurationpublic void setSinceVersion(String sinceVersion)
public String getDeprecatedVersion()
LayoutTypeConfigurationgetDeprecatedVersion in interface LayoutTypeConfigurationpublic void setDeprecatedVersion(String deprecatedVersion)
public String getTitle()
getTitle in interface LayoutTypeConfigurationpublic String getDescription()
getDescription in interface LayoutTypeConfigurationpublic void setDescription(String description)
public String getDemoId()
LayoutTypeConfigurationgetDemoId in interface LayoutTypeConfigurationpublic boolean isDemoPreviewEnabled()
LayoutTypeConfigurationisDemoPreviewEnabled in interface LayoutTypeConfigurationpublic void setDemoPreviewEnabled(boolean demoPreviewEnabled)
public List<String> getSupportedModes()
getSupportedModes in interface LayoutTypeConfigurationpublic void setSupportedModes(List<String> supportedModes)
public boolean isHandlingLabels()
LayoutTypeConfigurationisHandlingLabels in interface LayoutTypeConfigurationpublic void setHandlingLabels(boolean handlingLabels)
public List<String> getSupportedControls()
LayoutTypeConfigurationgetSupportedControls in interface LayoutTypeConfigurationpublic void setSupportedControls(List<String> supportedControls)
public boolean isContainingForm()
LayoutTypeConfigurationSince forms cannot contains any sub forms, layouts using this widget should not be surrounded by any form. Other widgets in the same layouts not containing forms may then need a surrounding form that could be added by the layout template.
isContainingForm in interface LayoutTypeConfigurationpublic void setContainingForm(boolean containingForm)
public List<String> getCategories()
getCategories in interface LayoutTypeConfigurationpublic void setCategories(List<String> categories)
public Map<String,List<LayoutDefinition>> getPropertyLayouts()
getPropertyLayouts in interface LayoutTypeConfigurationpublic List<LayoutDefinition> getPropertyLayouts(String mode, String additionalMode)
getPropertyLayouts in interface LayoutTypeConfigurationpublic void setPropertyLayouts(Map<String,List<LayoutDefinition>> propertyLayouts)
public Map<String,Map<String,Serializable>> getDefaultPropertyValues()
LayoutTypeConfigurationgetDefaultPropertyValues in interface LayoutTypeConfigurationpublic Map<String,Serializable> getDefaultPropertyValues(String mode)
LayoutTypeConfigurationgetDefaultPropertyValues in interface LayoutTypeConfigurationpublic void setDefaultPropertyValues(Map<String,Map<String,Serializable>> defaultPropertyValues)
protected List<LayoutDefinition> getLayouts(Map<String,List<LayoutDefinition>> allLayouts, String mode, String additionalMode)
Copyright © 2018 Nuxeo. All rights reserved.