public class SourceCodeEditorImpl extends AbstractField<JmixSourceCodeEditor,java.lang.String,java.lang.String> implements SourceCodeEditor
Modifier and Type | Class and Description |
---|---|
protected class |
SourceCodeEditorImpl.SourceCodeEditorSuggester |
SourceCodeEditor.Mode
HasValue.ValueChangeEvent<V>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
protected AutoCompleteSupport |
autoCompleteSupport |
protected HighlightMode |
mode |
protected Suggester |
suggester |
protected SuggestionExtension |
suggestionExtension |
protected boolean |
suggestOnDot |
editable, parentEditableChangeListener, validators, VALIDATORS_LIST_INITIAL_CAPACITY
internalValue, uiTestIdsSupport, valueBinding
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
SourceCodeEditorImpl() |
Modifier and Type | Method and Description |
---|---|
protected AutoCompleteSupport |
createAutoCompleteSupport() |
protected JmixSourceCodeEditor |
createComponent() |
void |
focus()
Sets focus to this component
|
AutoCompleteSupport |
getAutoCompleteSupport() |
HighlightMode |
getMode() |
int |
getPrintMarginColumn() |
java.lang.String |
getRawValue()
Returns a string representation of the value.
|
Suggester |
getSuggester() |
int |
getTabIndex()
Gets the tabulator index of the
HasTabIndex component. |
java.lang.String |
getValue() |
protected void |
handleAttach(com.vaadin.server.ClientConnector.AttachEvent attachEvent) |
protected void |
initComponent(JmixSourceCodeEditor component) |
boolean |
isHandleTabKey() |
boolean |
isHighlightActiveLine() |
boolean |
isShowGutter() |
boolean |
isShowPrintMargin() |
boolean |
isSuggestOnDot() |
void |
resetEditHistory()
Reset the stack of undo/redo redo operations.
|
void |
setHandleTabKey(boolean handleTabKey)
Enables Tab key handling as tab symbol.
|
void |
setHighlightActiveLine(boolean highlightActiveLine) |
void |
setMode(HighlightMode mode) |
void |
setPrintMarginColumn(int printMarginColumn)
Set print margin position in symbols
|
void |
setShowGutter(boolean showGutter) |
void |
setShowPrintMargin(boolean showPrintMargin) |
void |
setSuggester(Suggester suggester) |
void |
setSuggestOnDot(boolean suggest)
Sets whether SourceCodeEditor should suggest options after typing a dot character.
|
void |
setTabIndex(int tabIndex)
Sets the tabulator index of the
Focusable component. |
addValidator, attachValueChangeListener, getDatatypeConversionErrorMsg, getErrorMessage, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeValidator, setEditable, setEditableToComponent, setParent, setRequired, setRequiredMessage, setupComponentErrorProvider, triggerValidators, validate
addValueChangeListener, commit, componentValueChanged, convertToModel, convertToPresentation, discard, fieldValueEquals, getValueSource, isBuffered, isModified, setBuffered, setUiTestId, setUiTestIdsSupport, setValue, setValueSource, setValueToPresentation, valueBindingActivated, valueBindingConnected
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueSource, setValueSource
addValueChangeListener, clear, getEmptyValue, isEmpty, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
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, withUnwrappedComposition
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addValidator, addValidators, getValidators, removeValidator
getRequiredMessage, isRequired, setRequired, setRequiredMessage
isFocusable, setFocusable
protected boolean suggestOnDot
protected HighlightMode mode
protected Suggester suggester
protected SuggestionExtension suggestionExtension
protected AutoCompleteSupport autoCompleteSupport
protected JmixSourceCodeEditor createComponent()
protected AutoCompleteSupport createAutoCompleteSupport()
protected void initComponent(JmixSourceCodeEditor component)
protected void handleAttach(com.vaadin.server.ClientConnector.AttachEvent attachEvent)
public HighlightMode getMode()
getMode
in interface SourceCodeEditor
public void setMode(HighlightMode mode)
setMode
in interface SourceCodeEditor
public void resetEditHistory()
SourceCodeEditor
resetEditHistory
in interface SourceCodeEditor
@Nullable public Suggester getSuggester()
getSuggester
in interface SourceCodeEditor
public void setSuggester(@Nullable Suggester suggester)
setSuggester
in interface SourceCodeEditor
public AutoCompleteSupport getAutoCompleteSupport()
getAutoCompleteSupport
in interface SourceCodeEditor
public void setShowGutter(boolean showGutter)
setShowGutter
in interface SourceCodeEditor
public boolean isShowGutter()
isShowGutter
in interface SourceCodeEditor
public void setShowPrintMargin(boolean showPrintMargin)
setShowPrintMargin
in interface SourceCodeEditor
public boolean isShowPrintMargin()
isShowPrintMargin
in interface SourceCodeEditor
public void setPrintMarginColumn(int printMarginColumn)
SourceCodeEditor
setPrintMarginColumn
in interface SourceCodeEditor
printMarginColumn
- print margin position in symbolspublic int getPrintMarginColumn()
getPrintMarginColumn
in interface SourceCodeEditor
public void setHighlightActiveLine(boolean highlightActiveLine)
setHighlightActiveLine
in interface SourceCodeEditor
public boolean isHighlightActiveLine()
isHighlightActiveLine
in interface SourceCodeEditor
public void setHandleTabKey(boolean handleTabKey)
SourceCodeEditor
setHandleTabKey
in interface SourceCodeEditor
public boolean isHandleTabKey()
isHandleTabKey
in interface SourceCodeEditor
@Nullable public java.lang.String getValue()
getValue
in interface HasValue<java.lang.String>
getValue
in interface SourceCodeEditor
getValue
in class AbstractValueComponent<JmixSourceCodeEditor,java.lang.String,java.lang.String>
public java.lang.String getRawValue()
SourceCodeEditor
getRawValue
in interface SourceCodeEditor
public void focus()
Component.Focusable
focus
in interface Component.Focusable
public int getTabIndex()
Component.Focusable
HasTabIndex
component.getTabIndex
in interface Component.Focusable
HasTabIndex
componentpublic void setTabIndex(int tabIndex)
Component.Focusable
Focusable
component.
The tab index property is used to specify the order in which the
fields are focused when the user presses the Tab key. Components with
a defined tab index are focused sequentially first, and then the
components with no tab index.setTabIndex
in interface Component.Focusable
tabIndex
- tab indexpublic boolean isSuggestOnDot()
isSuggestOnDot
in interface SourceCodeEditor
public void setSuggestOnDot(boolean suggest)
SourceCodeEditor
setSuggestOnDot
in interface SourceCodeEditor
suggest
- suggest option