Package io.jmix.ui.component
Interface SourceCodeEditor
- All Superinterfaces:
Component,Component.BelongToFrame,Component.Editable,Component.Focusable,Component.HasCaption,Component.HasDescription,Component.HasIcon,Field<String>,HasContextHelp,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,HasValidator<String>,HasValue<String>,HasValueSource<String>,Requirable,Validatable
- All Known Implementing Classes:
SourceCodeEditorImpl
@StudioComponent(caption="SourceCodeEditor",
category="Components",
xmlElement="sourceCodeEditor",
icon="io/jmix/ui/icon/component/sourceCodeEditor.svg",
canvasBehaviour=SOURCE_CODE_EDITOR,
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/source-code-editor.html")
public interface SourceCodeEditor
extends Field<String>, Component.Focusable
Text area component with source code highlighting support.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasValue
HasValue.ValueChangeEvent<V> -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptiongetMode()intReturns a string representation of the value.getValue()booleanbooleanbooleanbooleanbooleanvoidReset the stack of undo/redo redo operations.voidsetHandleTabKey(boolean handleTabKey) Enables Tab key handling as tab symbol.voidsetHighlightActiveLine(boolean highlightActiveLine) voidsetMode(HighlightMode mode) voidsetPrintMarginColumn(int printMarginColumn) Set print margin position in symbolsvoidsetShowGutter(boolean showGutter) voidsetShowPrintMargin(boolean showPrintMargin) voidsetSuggester(Suggester suggester) voidsetSuggestOnDot(boolean suggest) Sets whether SourceCodeEditor should suggest options after typing a dot character.Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndexMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasValidator
addValidator, addValidators, getValidators, removeValidatorMethods inherited from interface io.jmix.ui.component.HasValue
addValueChangeListener, clear, getEmptyValue, isEmpty, setValueMethods inherited from interface io.jmix.ui.component.data.HasValueSource
getValueSource, setValueSourceMethods inherited from interface io.jmix.ui.component.Requirable
getRequiredMessage, isRequired, setRequired, setRequiredMessageMethods inherited from interface io.jmix.ui.component.Validatable
isValid, isValidateOnCommit, validate
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getMode
HighlightMode getMode() -
setMode
@StudioProperty(type=ENUMERATION, defaultValue="Text", options={"ABAP","ABC","ActionScript","ADA","ApacheConf","AsciiDoc","AssemblyX86","AutoHot","BatchFile","C9SearchResults","Clojure","Cobol","CoffeeScript","ColdFusion","CSharp","CSS","Curly","CCpp","D","Dart","Diff","Django","Dot","EJS","Elixir","Elm","Erlang","Forth","FreeMarker","Glsl","Go","Groovy","HAML","Handlebars","Haskell","HaXe","HTML","HTMLCompletions","HTMLRuby","INI","Jack","Jade","Java","JavaScript","JSON","JSONiq","JSP","JSX","Julia","LaTeX","Lean","LESS","Liquid","Lisp","LiveScript","LogiQL","LSL","Lua","LuaPage","Lucene","Makefile","Markdown","MATLAB","MEL","MIPSAssembler","MUSHCode","MUSHCodeHighRules","MySQL","Nix","ObjectiveC","OCaml","Pascal","Perl","PgSQL","PHP","PlainText","Powershell","Prolog","Properties","Protobuf","Python","R","RDoc","RHTML","Ruby","Rust","SASS","SCAD","Scala","Scheme","SCSS","SH","SJS","Snippets","SoyTemplate","Space","SQL","Stylus","SVG","Tcl","Tex","Text","Textile","Toml","Twig","Typescript","VBScript","Velocity","Verilog","VHDL","XML","XQuery","YAML"}) void setMode(HighlightMode mode) -
getSuggester
-
setSuggester
-
getAutoCompleteSupport
AutoCompleteSupport getAutoCompleteSupport() -
setShowGutter
-
isShowGutter
boolean isShowGutter() -
setShowPrintMargin
@StudioProperty(name="printMargin", defaultValue="true") void setShowPrintMargin(boolean showPrintMargin) -
isShowPrintMargin
boolean isShowPrintMargin() -
setPrintMarginColumn
Set print margin position in symbols- Parameters:
printMarginColumn- print margin position in symbols
-
getPrintMarginColumn
int getPrintMarginColumn()- Returns:
- print margin position in symbols
-
setHighlightActiveLine
-
isHighlightActiveLine
boolean isHighlightActiveLine() -
setHandleTabKey
Enables Tab key handling as tab symbol. If handleTabKey is false then Tab/Shift-Tab key press will change focus to next/previous field. -
isHandleTabKey
boolean isHandleTabKey()- Returns:
- if Tab key handling is enabled
-
getValue
-
getRawValue
String getRawValue()Returns a string representation of the value. -
resetEditHistory
void resetEditHistory()Reset the stack of undo/redo redo operations. -
isSuggestOnDot
boolean isSuggestOnDot()- Returns:
- true if SourceCodeEditor suggests options after typing a dot character
-
setSuggestOnDot
Sets whether SourceCodeEditor should suggest options after typing a dot character. Default value is true.- Parameters:
suggest- suggest option
-