public class Part extends Object implements Serializable
Constructor and Description |
---|
Part()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
Property |
getDefaultProperty()
Default property
|
String |
getExternalEditorUrl()
External editor URL
|
String |
getGlobalId()
Global ID of the part
|
String |
getHtmlClass()
HTML Class, if the part is of type
Property.Type.LIST , Property.Type.ORDEREDLIST or Property.Type.UNORDEREDLIST |
Integer |
getId()
Local ID of the part
|
String |
getKeyword()
Part keyword
|
Integer |
getMarkupLanguageId()
Optional markup language ID for restricting the part to a specific template markup
|
String |
getName()
Part name
|
Map<String,String> |
getNameI18n()
Map of translated names (keys are the language codes)
|
List<SelectOption> |
getOptions()
Possible options
|
OverviewSetting |
getOverviewSettings()
Overview settings (if type is OVERVIEW)
|
Integer |
getPartOrder()
Part order
|
String |
getPolicy()
Validation policy
|
RegexModel |
getRegex()
Regular expression definition for validation of text parttypes
|
SelectSetting |
getSelectSettings()
Selection settings (if type is SELECT or MULTISELECT)
|
Property.Type |
getType()
Part type
|
int |
getTypeId()
Part type ID
|
boolean |
isEditable()
True if the part is editable
|
boolean |
isHidden()
True if the part is hidden
|
boolean |
isHideInEditor()
Flag for hiding the part in the Tag Editor
|
boolean |
isLiveEditable()
True if the part is live (inline) editable
|
boolean |
isMandatory()
True if the part is mandatory
|
Part |
setDefaultProperty(Property defaultProperty)
Set the default property
|
Part |
setEditable(boolean editable) |
Part |
setExternalEditorUrl(String externalEditorUrl)
Set the URL to the external editor
|
Part |
setGlobalId(String globalId)
Set the global ID
|
Part |
setHidden(boolean hidden) |
Part |
setHideInEditor(boolean hideInEditor)
Set hideInEditor flag
|
Part |
setHtmlClass(String htmlClass)
Set the html class
|
Part |
setId(Integer id)
Set the local ID
|
Part |
setKeyword(String keyword) |
Part |
setLiveEditable(boolean liveEditable) |
Part |
setMandatory(boolean mandatory)
Set the mandatory flag
|
Part |
setMarkupLanguageId(Integer markupLanguageId)
Set the markup language ID
|
Part |
setName(String name) |
Part |
setName(String name,
String language)
Set the name in the given language
|
Part |
setNameI18n(Map<String,String> nameI18n)
Set translated names
|
Part |
setOptions(List<SelectOption> options) |
Part |
setOverviewSettings(OverviewSetting overviewSettings)
Set overview settings
|
Part |
setPartOrder(Integer partOrder)
Set the part order
|
Part |
setPolicy(String policy)
Set the validation policy
|
Part |
setRegex(RegexModel regex)
Set regular expression
|
Part |
setSelectSettings(SelectSetting selectSettings)
Set selection settings
|
Part |
setType(Property.Type type)
Set the type
|
Part |
setTypeId(int typeId)
Set the part type ID
|
public String getName()
public String getKeyword()
public boolean isHidden()
public Part setHidden(boolean hidden)
hidden
- the hidden to setpublic boolean isEditable()
public Part setEditable(boolean editable)
editable
- the editable to setpublic boolean isLiveEditable()
public Part setLiveEditable(boolean liveEditable)
liveEditable
- the liveEditable to setpublic boolean isMandatory()
public Part setMandatory(boolean mandatory)
mandatory
- flagpublic Property.Type getType()
public Part setType(Property.Type type)
type
- typepublic int getTypeId()
public Part setTypeId(int typeId)
typeId
- type IDpublic Integer getId()
public String getGlobalId()
public Part setGlobalId(String globalId)
globalId
- global IDpublic Property getDefaultProperty()
public Part setDefaultProperty(Property defaultProperty)
defaultProperty
- default propertypublic RegexModel getRegex()
public Part setRegex(RegexModel regex)
regex
- regular expressionpublic boolean isHideInEditor()
public Part setHideInEditor(boolean hideInEditor)
hideInEditor
- flagpublic String getExternalEditorUrl()
public Part setExternalEditorUrl(String externalEditorUrl)
externalEditorUrl
- URLpublic List<SelectOption> getOptions()
public Part setOptions(List<SelectOption> options)
options
- the options to setpublic OverviewSetting getOverviewSettings()
public Part setOverviewSettings(OverviewSetting overviewSettings)
overviewSettings
- overview settingspublic SelectSetting getSelectSettings()
public Part setSelectSettings(SelectSetting selectSettings)
selectSettings
- selection settingspublic Integer getMarkupLanguageId()
public Part setMarkupLanguageId(Integer markupLanguageId)
markupLanguageId
- IDpublic String getHtmlClass()
Property.Type.LIST
, Property.Type.ORDEREDLIST
or Property.Type.UNORDEREDLIST
public Part setHtmlClass(String htmlClass)
htmlClass
- html classpublic Integer getPartOrder()
public Part setPartOrder(Integer partOrder)
partOrder
- orderpublic String getPolicy()
public Part setPolicy(String policy)
policy
- policypublic Map<String,String> getNameI18n()
public Part setNameI18n(Map<String,String> nameI18n)
nameI18n
- translation mapCopyright © 2024 Gentics Software. All rights reserved.