public class CodeFieldDefinition extends ConfiguredFieldDefinition
Constructor and Description |
---|
CodeFieldDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
getFileNameProperty()
Defines the Vaadin propertyId under which file name is exposed by the current form
Item . |
int |
getHeight()
Defines the height of this code field, in pixels.
|
String |
getLanguage()
Defines the programming language to use for syntax highlighting.
|
void |
setFileNameProperty(String fileNameProperty) |
void |
setHeight(int height) |
void |
setLanguage(String language) |
addValidator, getConverterClass, getDefaultValue, getDescription, getFieldType, getI18nBasename, getLabel, getName, getRequiredErrorMessage, getStyleName, getTransformerClass, getType, getValidators, isI18n, isReadOnly, isRequired, setConverterClass, setDefaultValue, setDescription, setFieldType, setI18n, setI18nBasename, setLabel, setName, setReadOnly, setRequired, setRequiredErrorMessage, setStyleName, setTransformerClass, setType, setValidators
public String getLanguage()
See the AceMode
enum for possible values, "freemarker"
is also supported.
AceMode
public void setLanguage(String language)
public String getFileNameProperty()
Item
.public void setFileNameProperty(String fileNameProperty)
public int getHeight()
300
.public void setHeight(int height)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.