public abstract class MolPluginCore
extends javax.faces.component.UIInput
implements javax.faces.event.ComponentSystemEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
MolPluginCore.PluginType
Supported chemical structure plugin types.
|
protected static class |
MolPluginCore.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY
Component family returned by
getFamily() |
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
| Constructor and Description |
|---|
MolPluginCore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCssExt(String href)
Enqueues loading of a stylesheet resource file.
|
protected void |
addCssResource(String resource)
Enqueues loading of a stylesheet resource file.
|
protected void |
addScriptExt(String src)
Enqueues loading of a JavaScript resource file.
|
protected void |
addScriptResource(String resource)
Enqueues loading of a JavaScript resource file.
|
protected StringBuilder |
encodeLoadExtResources(String loaderJSVar)
Creates an inline JavaScript code fragment for loading resources that have
been enqueued via
addScriptExt(String) and
addCssExt(String). |
String |
getFamily() |
int |
getHeight()
Return the value of the
height property. |
String |
getWidgetVar()
Return the value of the
widgetVar property. |
int |
getWidth()
Return the value of the
width property. |
boolean |
isBorder()
Return the value of the
border property. |
boolean |
isReadonly()
Return the value of the
readonly property. |
void |
processEvent(javax.faces.event.ComponentSystemEvent event) |
void |
setBorder(boolean border)
Set the value of the
border property. |
void |
setHeight(int height)
Set the value of the
height property. |
void |
setReadonly(boolean readonly)
Set the value of the
readonly property. |
void |
setWidgetVar(String widgetVar)
Set the value of the
widgetVar property. |
void |
setWidth(int width)
Set the value of the
width property. |
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, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValuegetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, 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, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic static final String COMPONENT_FAMILY
getFamily()public static final int DEFAULT_HEIGHT
public static final int DEFAULT_WIDTH
public String getFamily()
getFamily in class javax.faces.component.UIInputpublic boolean isBorder()
border property.
Flag indicating that this element is rendered with a border.
false if it has
not been set in the JSF view.public void setBorder(boolean border)
border property.border - boolean value which indicates that the plugin component renders
surrounded by a borderpublic int getHeight()
height property.
The height of the structure editor plugin in pixels.
public void setHeight(int height)
height property.height - height of the rendered pluginpublic boolean isReadonly()
readonly property.
Flag indicating that this element is in editable (full structure editor) or in view-only mode.
false if it has
not been set in the JSF view.public void setReadonly(boolean readonly)
readonly property.readonly - boolean value which indicates if the plugin component renders
an editor or a viewerpublic String getWidgetVar()
widgetVar property.
The client-side variable name of a Promise object that embeds the plugin's JavaScript instance.
public void setWidgetVar(String widgetVar)
widgetVar property.widgetVar - name of the client-side Promise object that embeds the
plugin's JavaScript instancepublic int getWidth()
width property.
The width of the structure editor plugin in pixels.
public void setWidth(int width)
width property.width - width of the rendered pluginprotected void addScriptResource(String resource)
processEvent(ComponentSystemEvent) method in the PostAddToViewEvent
event.resource - name of the file in the web project's resource libraryprotected void addScriptExt(String src)
molecularfaces.ResourcesLoader.src - path of the resource fileprotected void addCssResource(String resource)
processEvent(ComponentSystemEvent) method in the PostAddToViewEvent
event.resource - name of the file in the web project's resource libraryprotected void addCssExt(String href)
molecularfaces.ResourcesLoader.href - path of the resource filepublic void processEvent(javax.faces.event.ComponentSystemEvent event)
throws javax.faces.event.AbortProcessingException
processEvent in interface javax.faces.event.ComponentSystemEventListenerprocessEvent in class javax.faces.component.UIComponentjavax.faces.event.AbortProcessingExceptionprotected StringBuilder encodeLoadExtResources(String loaderJSVar)
addScriptExt(String) and
addCssExt(String).loaderJSVar - JavaScript variable name of the
molecularfaces.ResourcesLoader instanceCopyright © 2021 Leibniz Institute of Plant Biochemistry (IPB), Halle (Saale), Germany. All rights reserved.