Interface ContentType
-
- All Known Implementing Classes:
ContentType.DefinedType
public interface ContentType
Describes the content of aConfig
in a more technical way. In fact it provides information to determine how the content should be rendered in a editor (e.g. CodeMirror).- Author:
- domi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ContentType.DefinedType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCmMode()
The CodeMirror mode as defined in Stapler (org.kohsuke.stapler.codemirror.mode.*
).String
getMime()
Actually the 'mode' attribute for the CodeMirror editor.
-
-
-
Method Detail
-
getCmMode
String getCmMode()
The CodeMirror mode as defined in Stapler (org.kohsuke.stapler.codemirror.mode.*
).
Currently Supported:- clike
- css
- diff
- haskell
- htmlmixed
- javascript
- lua
- php
- plsql
- python
- rst
- smaltalk
- stex
- xml
<textarea name="config.content" codemirror-mode="${contentType.cmMode}" ... />
- Returns:
- the CodeMirror mode
-
getMime
String getMime()
Actually the 'mode' attribute for the CodeMirror editor. As in:<textarea name="config.content" codemirror-config="mode:'${contentType.mime}',lineNumbers: true" ... />
- Returns:
- the mime.
-
-