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()
LayoutTypeConfiguration
getSinceVersion
in interface LayoutTypeConfiguration
public void setSinceVersion(String sinceVersion)
public String getDeprecatedVersion()
LayoutTypeConfiguration
getDeprecatedVersion
in interface LayoutTypeConfiguration
public void setDeprecatedVersion(String deprecatedVersion)
public String getTitle()
getTitle
in interface LayoutTypeConfiguration
public String getDescription()
getDescription
in interface LayoutTypeConfiguration
public void setDescription(String description)
public String getDemoId()
LayoutTypeConfiguration
getDemoId
in interface LayoutTypeConfiguration
public boolean isDemoPreviewEnabled()
LayoutTypeConfiguration
isDemoPreviewEnabled
in interface LayoutTypeConfiguration
public void setDemoPreviewEnabled(boolean demoPreviewEnabled)
public List<String> getSupportedModes()
getSupportedModes
in interface LayoutTypeConfiguration
public void setSupportedModes(List<String> supportedModes)
public boolean isHandlingLabels()
LayoutTypeConfiguration
isHandlingLabels
in interface LayoutTypeConfiguration
public void setHandlingLabels(boolean handlingLabels)
public List<String> getSupportedControls()
LayoutTypeConfiguration
getSupportedControls
in interface LayoutTypeConfiguration
public void setSupportedControls(List<String> supportedControls)
public boolean isContainingForm()
LayoutTypeConfiguration
Since 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 LayoutTypeConfiguration
public void setContainingForm(boolean containingForm)
public List<String> getCategories()
getCategories
in interface LayoutTypeConfiguration
public void setCategories(List<String> categories)
public Map<String,List<LayoutDefinition>> getPropertyLayouts()
getPropertyLayouts
in interface LayoutTypeConfiguration
public List<LayoutDefinition> getPropertyLayouts(String mode, String additionalMode)
getPropertyLayouts
in interface LayoutTypeConfiguration
public void setPropertyLayouts(Map<String,List<LayoutDefinition>> propertyLayouts)
public Map<String,Map<String,Serializable>> getDefaultPropertyValues()
LayoutTypeConfiguration
getDefaultPropertyValues
in interface LayoutTypeConfiguration
public Map<String,Serializable> getDefaultPropertyValues(String mode)
LayoutTypeConfiguration
getDefaultPropertyValues
in interface LayoutTypeConfiguration
public 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.