public class WidgetTypeConfigurationImpl extends Object implements WidgetTypeConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
acceptingSubWidgets |
protected List<String> |
categories |
protected boolean |
complex |
protected boolean |
containingForm |
protected Map<String,Map<String,Serializable>> |
defaultControlValues |
protected List<FieldDefinition> |
defaultFieldDefinitions |
protected List<String> |
defaultFieldTypes |
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 boolean |
list |
protected Map<String,Serializable> |
properties |
protected Map<String,List<LayoutDefinition>> |
propertyLayouts |
protected String |
sinceVersion |
protected List<String> |
supportedControls |
protected List<String> |
supportedFieldTypes |
protected List<String> |
supportedModes |
protected String |
title |
| Constructor and Description |
|---|
WidgetTypeConfigurationImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getCategories() |
Map<String,Serializable> |
getConfProperties()
Returns configuration properties.
|
Serializable |
getConfProperty(String propName) |
Map<String,Map<String,Serializable>> |
getDefaultControlValues() |
Map<String,Serializable> |
getDefaultControlValues(String mode) |
List<FieldDefinition> |
getDefaultFieldDefinitions() |
List<String> |
getDefaultFieldTypes() |
Map<String,Map<String,Serializable>> |
getDefaultPropertyValues()
Returns the default values for the widget type properties, by mode.
|
Map<String,Serializable> |
getDefaultPropertyValues(String mode)
Returns the default values for the widget 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() |
Map<String,List<LayoutDefinition>> |
getFieldLayouts()
Returns the map of field layouts per mode.
|
List<LayoutDefinition> |
getFieldLayouts(String mode,
String additionalMode)
Returns the list of layouts for given mode and additional modes.
|
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> |
getSupportedFieldTypes() |
List<String> |
getSupportedModes() |
String |
getTitle() |
boolean |
isAcceptingSubWidgets() |
boolean |
isComplex() |
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).
|
boolean |
isList() |
void |
setAcceptingSubWidgets(boolean acceptingSubWidgets) |
void |
setCategories(List<String> categories) |
void |
setComplex(boolean complex) |
void |
setContainingForm(boolean containingForm) |
void |
setDefaultControlValues(Map<String,Map<String,Serializable>> values) |
void |
setDefaultFieldDefinitions(List<FieldDefinition> defaultFieldDefinitions) |
void |
setDefaultFieldTypes(List<String> defaultFieldTypes) |
void |
setDefaultPropertyValues(Map<String,Map<String,Serializable>> values) |
void |
setDemoId(String demoId) |
void |
setDemoPreviewEnabled(boolean demoPreviewEnabled) |
void |
setDeprecatedVersion(String deprecatedVersion) |
void |
setDescription(String description) |
void |
setFieldLayouts(Map<String,List<LayoutDefinition>> fieldLayouts) |
void |
setHandlingLabels(boolean handlingLabels) |
void |
setList(boolean list) |
void |
setProperties(Map<String,Serializable> properties) |
void |
setPropertyLayouts(Map<String,List<LayoutDefinition>> propertyLayouts) |
void |
setSinceVersion(String sinceVersion) |
void |
setSupportedControls(List<String> supportedControls) |
void |
setSupportedFieldTypes(List<String> supportedFieldTypes) |
void |
setSupportedModes(List<String> supportedModes) |
void |
setTitle(String title) |
protected String sinceVersion
protected String deprecatedVersion
protected String description
protected boolean demoPreviewEnabled
protected Map<String,Serializable> properties
protected List<String> supportedModes
protected boolean acceptingSubWidgets
protected boolean handlingLabels
protected List<String> supportedControls
protected boolean list
protected boolean complex
protected boolean containingForm
protected List<String> supportedFieldTypes
protected List<String> defaultFieldTypes
protected List<FieldDefinition> defaultFieldDefinitions
protected List<String> categories
protected Map<String,List<LayoutDefinition>> propertyLayouts
protected Map<String,Map<String,Serializable>> defaultPropertyValues
protected Map<String,Map<String,Serializable>> defaultControlValues
protected Map<String,List<LayoutDefinition>> fieldLayouts
public WidgetTypeConfigurationImpl()
public String getSinceVersion()
WidgetTypeConfigurationgetSinceVersion in interface WidgetTypeConfigurationpublic String getDeprecatedVersion()
WidgetTypeConfigurationgetDeprecatedVersion in interface WidgetTypeConfigurationpublic String getTitle()
getTitle in interface WidgetTypeConfigurationpublic String getDescription()
getDescription in interface WidgetTypeConfigurationpublic String getDemoId()
WidgetTypeConfigurationgetDemoId in interface WidgetTypeConfigurationpublic boolean isDemoPreviewEnabled()
WidgetTypeConfigurationisDemoPreviewEnabled in interface WidgetTypeConfigurationpublic Map<String,Serializable> getConfProperties()
WidgetTypeConfigurationgetConfProperties in interface WidgetTypeConfigurationpublic Serializable getConfProperty(String propName)
getConfProperty in interface WidgetTypeConfigurationpublic List<String> getSupportedModes()
getSupportedModes in interface WidgetTypeConfigurationpublic boolean isAcceptingSubWidgets()
isAcceptingSubWidgets in interface WidgetTypeConfigurationpublic boolean isList()
isList in interface WidgetTypeConfigurationpublic boolean isComplex()
isComplex in interface WidgetTypeConfigurationpublic boolean isContainingForm()
WidgetTypeConfigurationSince 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 WidgetTypeConfigurationpublic List<String> getSupportedFieldTypes()
getSupportedFieldTypes in interface WidgetTypeConfigurationpublic List<String> getDefaultFieldTypes()
getDefaultFieldTypes in interface WidgetTypeConfigurationpublic List<FieldDefinition> getDefaultFieldDefinitions()
getDefaultFieldDefinitions in interface WidgetTypeConfigurationpublic List<String> getCategories()
getCategories in interface WidgetTypeConfigurationpublic Map<String,List<LayoutDefinition>> getPropertyLayouts()
getPropertyLayouts in interface WidgetTypeConfigurationpublic List<LayoutDefinition> getLayouts(Map<String,List<LayoutDefinition>> allLayouts, String mode, String additionalMode)
public List<LayoutDefinition> getPropertyLayouts(String mode, String additionalMode)
getPropertyLayouts in interface WidgetTypeConfigurationpublic void setSinceVersion(String sinceVersion)
public void setDeprecatedVersion(String deprecatedVersion)
public void setDescription(String description)
public void setDemoPreviewEnabled(boolean demoPreviewEnabled)
public void setProperties(Map<String,Serializable> properties)
public void setSupportedModes(List<String> supportedModes)
public void setAcceptingSubWidgets(boolean acceptingSubWidgets)
public void setList(boolean list)
public void setComplex(boolean complex)
public void setContainingForm(boolean containingForm)
public void setSupportedFieldTypes(List<String> supportedFieldTypes)
public void setDefaultFieldTypes(List<String> defaultFieldTypes)
public void setDefaultFieldDefinitions(List<FieldDefinition> defaultFieldDefinitions)
public void setCategories(List<String> categories)
public void setPropertyLayouts(Map<String,List<LayoutDefinition>> propertyLayouts)
public boolean isHandlingLabels()
WidgetTypeConfigurationisHandlingLabels in interface WidgetTypeConfigurationpublic void setHandlingLabels(boolean handlingLabels)
public Map<String,Map<String,Serializable>> getDefaultPropertyValues()
WidgetTypeConfigurationgetDefaultPropertyValues in interface WidgetTypeConfigurationpublic Map<String,Serializable> getDefaultPropertyValues(String mode)
WidgetTypeConfigurationgetDefaultPropertyValues in interface WidgetTypeConfigurationpublic void setDefaultPropertyValues(Map<String,Map<String,Serializable>> values)
public Map<String,Map<String,Serializable>> getDefaultControlValues()
getDefaultControlValues in interface WidgetTypeConfigurationpublic Map<String,Serializable> getDefaultControlValues(String mode)
getDefaultControlValues in interface WidgetTypeConfigurationpublic void setDefaultControlValues(Map<String,Map<String,Serializable>> values)
public Map<String,List<LayoutDefinition>> getFieldLayouts()
WidgetTypeConfigurationgetFieldLayouts in interface WidgetTypeConfigurationWidgetTypeConfiguration.getFieldLayouts(String, String)public List<LayoutDefinition> getFieldLayouts(String mode, String additionalMode)
WidgetTypeConfigurationThese layouts are used to document accepted fields on the widget type, depending on the rendering mode.
getFieldLayouts in interface WidgetTypeConfigurationmode - the mode to retrieve layouts for.additionalMode - additional mode to take into account, typically BuiltinModes.ANYpublic void setFieldLayouts(Map<String,List<LayoutDefinition>> fieldLayouts)
public List<String> getSupportedControls()
WidgetTypeConfigurationgetSupportedControls in interface WidgetTypeConfigurationpublic void setSupportedControls(List<String> supportedControls)
Copyright © 2018 Nuxeo. All rights reserved.