Package org.opencms.gwt.shared
Interface I_CmsCodeMirrorClientConfiguration
public interface I_CmsCodeMirrorClientConfiguration
AutoBean interface that represents the configuration for the client-side CodeMirror editor widget.
-
Method Summary
Modifier and TypeMethodDescriptionGets the height, in pixels.Gets the CodeMirror I18N phrases, as a JSON string.Gets the start mode.void
Sets the height in pixels.void
setPhrasesJSON
(String json) Sets the CodeMirror I18N phrases as a JSON stringvoid
setStartMode
(String startMode) Sets the start mode.
-
Method Details
-
getHeight
Gets the height, in pixels.- Returns:
- the height (or null if no height was set)
-
getPhrasesJSON
Gets the CodeMirror I18N phrases, as a JSON string.- Returns:
- a JSON string containing the CodeMirror I18N phrases
-
getStartMode
Gets the start mode.- Returns:
- the start mode
-
setHeight
Sets the height in pixels.- Parameters:
height
- the height in pixesls
-
setPhrasesJSON
Sets the CodeMirror I18N phrases as a JSON string- Parameters:
json
- a JSON string with the CodeMirror I18N phrases
-
setStartMode
Sets the start mode.- Parameters:
startMode
- the start mode
-