Class MonacoEditorCommon<TEditorOpts>
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.html.HtmlInputTextarea
org.primefaces.extensions.component.monacoeditor.MonacoEditorCommon<TEditorOpts>
- All Implemented Interfaces:
EventListener
,javax.faces.component.behavior.ClientBehaviorHolder
,javax.faces.component.EditableValueHolder
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.component.ValueHolder
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
,org.primefaces.component.api.PrimeClientBehaviorHolder
,org.primefaces.component.api.Widget
- Direct Known Subclasses:
MonacoDiffEditorBase
,MonacoEditorBase
public abstract class MonacoEditorCommon<TEditorOpts>
extends javax.faces.component.html.HtmlInputTextarea
implements javax.faces.component.behavior.ClientBehaviorHolder, org.primefaces.component.api.PrimeClientBehaviorHolder, org.primefaces.component.api.Widget
Base component for both the standalone and diff monaco code editor widget, in its framed and inline variants.
- Since:
- 11.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.faces.component.html.HtmlInputTextarea
javax.faces.component.html.HtmlInputTextarea.PropertyKeys
-
Field Summary
FieldsFields inherited from class javax.faces.component.html.HtmlInputTextarea
COMPONENT_TYPE
Fields inherited from class javax.faces.component.UIInput
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Fields inherited from interface org.primefaces.component.api.PrimeClientBehaviorHolder
DEFAULT_SELECT_EVENT_NAMES
Fields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MonacoEditorCommon
(String rendererType, Class<TEditorOpts> editorOptionsClass) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final Map
<String, EditorStandaloneTheme> final String
final TEditorOpts
final String
final String
final String
final String
final String
final String
final String
final String
final String
final String
getWidth()
final boolean
saveState
(javax.faces.context.FacesContext context) final void
setAutoResize
(boolean autoResize) final void
setBasename
(String basename) final void
setCustomThemes
(Map<String, EditorStandaloneTheme> customThemes) final void
setDirectory
(String directory) final void
setEditorOptions
(EditorOptions editorOptions) final void
setExtension
(String extension) final void
final void
final void
setLocaleUrl
(String localeUrl) final void
setOninitialized
(String oninitialized) final void
setOnpaste
(String onpaste) final void
setPlaceholder
(String placeholder) final void
final void
setWidgetVar
(String widgetVar) final void
Methods inherited from class javax.faces.component.html.HtmlInputTextarea
getAccesskey, getCols, getDefaultEventName, getDir, getEventNames, getLabel, getLang, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getRows, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setCols, setDir, setDisabled, setLabel, setLang, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setRows, setStyle, setStyleClass, setTabindex, setTitle
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, setConverter
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventName, getEventNames
Methods inherited from interface org.primefaces.component.api.PrimeClientBehaviorHolder
getBehaviorEventMapping
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
Field Details
-
COMPONENT_FAMILY
- See Also:
-
-
Constructor Details
-
MonacoEditorCommon
-
-
Method Details
-
calculateLocale
-
getBasename
-
getCustomThemes
-
getDirectory
-
getEditorOptions
-
getExtension
-
getFamily
- Overrides:
getFamily
in classjavax.faces.component.UIInput
-
getHeight
-
getOninitialized
-
getOnpaste
-
getPlaceholder
-
getScheme
-
getLocale
-
getLocaleUrl
-
getWidgetVar
-
getWidth
-
isAutoResize
public final boolean isAutoResize() -
setAutoResize
public final void setAutoResize(boolean autoResize) -
setBasename
-
setCustomThemes
-
setDirectory
-
setEditorOptions
-
setExtension
-
setHeight
-
setOninitialized
-
setOnpaste
-
setPlaceholder
-
setScheme
-
setLocale
-
setLocaleUrl
-
setWidgetVar
-
setWidth
-
saveState
- Specified by:
saveState
in interfacejavax.faces.component.StateHolder
- Overrides:
saveState
in classjavax.faces.component.UIInput
-