@Component(tag="codemirror", widgetModule="fujion-codemirror", widgetClass="CodeMirror", parentTag="*", description="Fujion wrapper for CodeMirror JavaScript editor.") public class CodeMirror extends BaseInputComponent<String>
BaseComponent.SubComponent| Constructor and Description |
|---|
CodeMirror() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_toString(String value) |
protected String |
_toValue(String value) |
void |
format()
Invokes the CodeMirror format method.
|
boolean |
getLineNumbers()
Returns the CodeMirror lineNumbers parameter.
|
String |
getMode()
Returns the CodeMirror mode parameter.
|
String |
getPlaceholder()
Returns the placeholder message that is displayed when the editor is empty.
|
boolean |
isReadonly()
Returns true if the editor is set to read-only.
|
void |
setLineNumbers(boolean lineNumbers)
Sets the CodeMirror lineNumbers parameter.
|
void |
setMode(String mode)
Sets the CodeMirror mode parameter.
|
void |
setPlaceholder(String placeholder)
Sets the placeholder value.
|
void |
setReadonly(boolean readonly)
Set the read-only state of the editor.
|
_getValue, _onChange, _setValue, _setValue, _toClient, clear, getValue, setValue_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, reportSize, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerpublic void format()
@Component.PropertyGetter(value="readonly", description="True if read-only.") public boolean isReadonly()
@Component.PropertySetter(value="readonly", defaultValue="false", description="True if read-only.") public void setReadonly(boolean readonly)
readonly - The read-only state.@Component.PropertyGetter(value="placeholder", description="The placeholder message that is displayed when the editor is empty.") public String getPlaceholder()
@Component.PropertySetter(value="placeholder", description="The placeholder message that is displayed when the editor is empty.") public void setPlaceholder(String placeholder)
placeholder - The placeholder value.@Component.PropertyGetter(value="mode", description="The CodeMirror mode parameter.") public String getMode()
@Component.PropertySetter(value="mode", description="The CodeMirror mode parameter.") public void setMode(String mode)
mode - The CodeMirror mode parameter.@Component.PropertyGetter(value="lineNumbers", description="The CodeMirror lineNumbers parameter.") public boolean getLineNumbers()
@Component.PropertySetter(value="lineNumbers", description="The CodeMirror lineNumbers parameter.") public void setLineNumbers(boolean lineNumbers)
lineNumbers - The CodeMirror lineNumbers parameter.protected String _toValue(String value)
_toValue in class BaseInputComponent<String>protected String _toString(String value)
_toString in class BaseInputComponent<String>Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.