public class LayoutTypeConfigurationImpl extends Object implements LayoutTypeConfiguration
Constructor and Description |
---|
LayoutTypeConfigurationImpl() |
Modifier and Type | Method and Description |
---|---|
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() |
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) |
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 void setTitle(String title)
public String getDescription()
getDescription
in interface LayoutTypeConfiguration
public void setDescription(String description)
public String getDemoId()
LayoutTypeConfiguration
getDemoId
in interface LayoutTypeConfiguration
public void setDemoId(String demoId)
public boolean isDemoPreviewEnabled()
LayoutTypeConfiguration
isDemoPreviewEnabled
in interface LayoutTypeConfiguration
public void setDemoPreviewEnabled(boolean demoPreviewEnabled)
public List<String> getSupportedModes()
getSupportedModes
in interface LayoutTypeConfiguration
public boolean isHandlingLabels()
LayoutTypeConfiguration
isHandlingLabels
in interface LayoutTypeConfiguration
public void setHandlingLabels(boolean handlingLabels)
public List<String> getSupportedControls()
LayoutTypeConfiguration
getSupportedControls
in interface LayoutTypeConfiguration
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 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)
Copyright © 2015 Nuxeo SA. All rights reserved.