@Component(tag="codemirror_xml",
widgetModule="fujion-codemirror-xml",
widgetClass="CodeMirrorXML",
parentTag="*",
description="XML Extensions CodeMirror JavaScript editor.")
public class CodeMirrorXML
extends CodeMirrorBase<CodeMirrorXML.XMLOptions>
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeMirrorXML.SchemaInfo
Represents the collection of tags that comprise a schema.
|
static class |
CodeMirrorXML.Tag
Represents a single XML tag with its attributes and children.
|
protected static class |
CodeMirrorXML.XMLOptions |
options| Constructor and Description |
|---|
CodeMirrorXML() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlignCDATA()
Returns the alignCDATA setting.
|
Boolean |
getAutoCloseTags()
Returns the autoCloseTags setting.
|
boolean |
getAutoComplete()
Returns the autoComplete setting.
|
String |
getJumpShortcut()
Returns the key combination that will jump to the tag matching the one currently under the
cursor.
|
boolean |
getMatchClosing()
Returns the matchClosing setting which controls whether the mode checks that close tags match
the corresponding opening tag, and highlights mismatches as errors.
|
boolean |
getMatchTags()
Returns the matchTags setting.
|
boolean |
isHtmlMode()
Returns the HTML mode setting.
|
void |
setAlignCDATA(boolean alignCDATA)
Sets the alignCDATA setting.
|
void |
setAutoCloseTags(Boolean autoCloseTags)
Sets the autoCloseTags setting.
|
void |
setAutoComplete(boolean autoComplete)
Sets the autoComplete setting.
|
void |
setHtmlMode(Boolean htmlMode)
Sets the HTML mode setting.
|
void |
setJumpShortcut(String jumpShortcut)
Sets the key combination that will jump to the tag matching the one currently under the
cursor.
|
void |
setMatchClosing(boolean matchClosing)
Sets the matchClosing setting which controls whether the mode checks that close tags match
the corresponding opening tag, and highlights mismatches as errors.
|
void |
setMatchTags(boolean matchTags)
Sets the matchTags setting.
|
void |
setSchemaInfo(CodeMirrorXML.SchemaInfo schemaInfo)
Sets schema information.
|
_initProps, _toString, _toValue, format, getLineNumbers, getMode, getOptions, getPlaceholder, isReadonly, refreshOptions, setLineNumbers, setMode, setPlaceholder, setReadonly_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, print, print, 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, addChild, addChild, addChild, addChildren, addComposite, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, detachChildren, disableChildren, disableChildren, finalize, findAllNamed, findAttribute, findByName, findByName, findChild, findChildByData, findChildByLabel, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttributes, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getControllers, getData, getData, getDefinition, getFirstChild, getFirstChild, getId, getIndex, getLastChild, getLastController, getLastController, getName, getNamespace, getNextSibling, getNextSibling, getPage, getParent, getPreviousSibling, getPreviousSibling, getRoot, hasChildren, hasEventListener, hasEventListener, initialize, invoke, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isInitializing, isNamespace, isRendered, loadModule, loadModule, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireController@Component.PropertyGetter(value="autoCloseTags",
bindable=false,
description="If true, automatically generate closing XML tags.")
public Boolean getAutoCloseTags()
@Component.PropertySetter(value="autoCloseTags",
bindable=false,
defaultValue="true",
description="If true, automatically generate closing XML tags.")
public void setAutoCloseTags(Boolean autoCloseTags)
autoCloseTags - The autoCloseTags setting.@Component.PropertyGetter(value="matchTags",
bindable=false,
description="If true, highlight matching tag.")
public boolean getMatchTags()
@Component.PropertySetter(value="matchTags",
bindable=false,
defaultValue="true",
description="If true, highlight matching tag.")
public void setMatchTags(boolean matchTags)
matchTags - The matchTags setting.@Component.PropertyGetter(value="autoComplete",
bindable=false,
description="If true, autocompletion mode is enabled.")
public boolean getAutoComplete()
@Component.PropertySetter(value="autoComplete",
bindable=false,
defaultValue="true",
description="If true, autocompletion mode is enabled.")
public void setAutoComplete(boolean autoComplete)
autoComplete - The autoComplete setting.@Component.PropertyGetter(value="htmlMode",
bindable=false,
description="If true, sets the mode to parse HTML instead of XML. This means attributes do not have to be quoted, and some elements (such as br) do not require a closing tag.")
public boolean isHtmlMode()
@Component.PropertySetter(value="htmlMode",
bindable=false,
defaultValue="false",
description="If true, sets the mode to parse HTML instead of XML. This means attributes do not have to be quoted, and some elements (such as br) do not require a closing tag.")
public void setHtmlMode(Boolean htmlMode)
htmlMode - The HTML mode setting.@Component.PropertyGetter(value="matchClosing",
bindable=false,
description="Controls whether the mode checks that close tags match the corresponding opening tag, and highlights mismatches as errors.")
public boolean getMatchClosing()
@Component.PropertySetter(value="matchClosing",
bindable=false,
defaultValue="true",
description="Controls whether the mode checks that close tags match the corresponding opening tag, and highlights mismatches as errors. ")
public void setMatchClosing(boolean matchClosing)
matchClosing - The matchClosing setting.@Component.PropertyGetter(value="alignCDATA",
bindable=false,
description="Setting this to true will force the opening tag of CDATA blocks to not be indented.")
public boolean getAlignCDATA()
@Component.PropertySetter(value="alignCDATA",
bindable=false,
defaultValue="false",
description="Setting this to true will force the opening tag of CDATA blocks to not be indented.")
public void setAlignCDATA(boolean alignCDATA)
alignCDATA - The alignCDATA setting.@Component.PropertyGetter(value="jumpShortcut",
bindable=false,
description="Key combination to jump to matching tag.")
public String getJumpShortcut()
@Component.PropertySetter(value="jumpShortcut",
bindable=false,
defaultValue="Alt-J",
description="Key combination to jump to matching tag.")
public void setJumpShortcut(String jumpShortcut)
jumpShortcut - Key combination to jump to matching tag.public void setSchemaInfo(CodeMirrorXML.SchemaInfo schemaInfo)
schemaInfo - The schema information.Copyright © 2023 Fujion Framework. All rights reserved.