public interface SourceCodeEditor extends Field, Component.Focusable
Modifier and Type | Interface and Description |
---|---|
static class |
SourceCodeEditor.Mode |
Field.Validator
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
AutoCompleteSupport |
getAutoCompleteSupport() |
SourceCodeEditor.Mode |
getMode() |
int |
getPrintMarginColumn() |
java.lang.String |
getRawValue()
Returns a string representation of the value.
|
Suggester |
getSuggester() |
java.lang.String |
getValue() |
boolean |
isHandleTabKey() |
boolean |
isHighlightActiveLine() |
boolean |
isShowGutter() |
boolean |
isShowPrintMargin() |
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(SourceCodeEditor.Mode mode) |
void |
setPrintMarginColumn(int printMarginColumn)
Set print margin position in symbols
|
void |
setShowGutter(boolean showGutter) |
void |
setShowPrintMargin(boolean showPrintMargin) |
void |
setSuggester(Suggester suggester) |
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addListener, addValueChangeListener, removeListener, removeValueChangeListener, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
getTabIndex, isFocusable, setFocusable, setTabIndex
static final java.lang.String NAME
SourceCodeEditor.Mode getMode()
void setMode(SourceCodeEditor.Mode mode)
Suggester getSuggester()
void setSuggester(Suggester suggester)
AutoCompleteSupport getAutoCompleteSupport()
void setShowGutter(boolean showGutter)
boolean isShowGutter()
void setShowPrintMargin(boolean showPrintMargin)
boolean isShowPrintMargin()
void setPrintMarginColumn(int printMarginColumn)
printMarginColumn
- print margin position in symbolsint getPrintMarginColumn()
void setHighlightActiveLine(boolean highlightActiveLine)
boolean isHighlightActiveLine()
void setHandleTabKey(boolean handleTabKey)
boolean isHandleTabKey()
java.lang.String getValue()
getValue
in interface Component.HasValue
java.lang.String getRawValue()
void resetEditHistory()