Peer for the richTextEditor component.
Method Summary
|
public Object |
addBinding(String componentClientId, Object componentClient, String command, String commandParameter, String propertyName, String eventType)
-
Adds the binding for command .
|
private Object |
_addCommandBinding(Object componentId, Object bindComponent, String command, String commandParameter)
-
Binds the the command to the component.
|
private Object |
_addContextChangeListeners(HTMLDocument field)
-
Adds the listeners for context changes.
|
private Object |
_addStyleBinding(String componentId, String propertyName, String styleKey, String eventType)
-
Binds the value of the style to the property of the component.
|
private Object |
_cmdCreateLink()
-
Wrapper for the "createlink" command, useful for creating callbacks.
|
private Object |
_commandBindingActionListener(AdfActionEvent event)
-
Handles the events fired by the components that are bound to this component, and translates these into commands.
|
protected Object |
ComponentRemoved(AdfUIComponent component)
-
Handles the removal of a component.
|
private Object |
_createIframe(Object component)
-
Creates an IFRAME by replacing a placeholder DIV with an IFRAME
|
private Object |
_execCommand(String key, Object value)
-
Executes a command on the document, selection, or the given range.
|
public Object |
executeCommand(Object cmd, Object value)
|
protected Object |
Focus()
-
Programmatically focuses the document.
|
protected Object |
GetComponentLabel(Object component, Object domElement)
-
The richTextEditor has label tags in it for the form controls in the toolbar, which we want to ignore when looking for the component label.
|
private HTMLElement |
_getContentField(Object component)
-
Gets the contentField (the iframe).
|
private Boolean |
_getIndeterminateStyling(String styleKey)
-
Queries whether the value for styleKey is currently indeterminate.
|
protected Object |
GetInlineEditor(Event event)
-
Override to return an inline editor that edits the component's label property
|
private Object |
_getOneThroughSevenFontSize(Object value)
|
public Object |
getSelectionRange(Object component)
|
private Object |
_getSelectionStyling(String styleKey)
-
Gets the value of the styleKey for the current context.
|
private Object |
_getSourceCodeField(Object component)
|
protected Object |
GetSubIdDomElement(Object subElementId)
-
Returns the DOM element identified by the passed in subId.
|
protected Object |
GetSubmittedValue(AdfUIComponent component, HTMLElement domElement)
-
Returns the submittedValue by getting the value of the input dom node.
|
private Object |
_handleBlur(Object evt)
|
protected Object |
HandleComponentAction(Object componentEvent)
-
Handles ActionEvents by children of this component.
|
protected Object |
HandleComponentClick(Object componentEvent)
-
Handles a click on the component.
|
protected Object |
HandleComponentFocus(Object componentEvent)
|
private Object |
_handleContextChanged()
-
Handles the changing of context.
|
private Object |
_handleContextChangedForCommands()
|
private Object |
_handleContextChangedForStyles()
|
private Object |
_handleFocus(Object evt)
-
This handles the first time we focused the component.
|
private Object |
_handleKeyDown(Object evt)
|
private Object |
_handleLoad(Object nativeEvent)
-
Called when the IFRAME has finished loading.
|
private Object |
_handleMouseDown(Object evt)
|
protected static Object |
HandleTimerUpdate(Object clientId)
-
Method use for handling the timer.
|
private Object |
_ignoreNextEvent(String styleKey)
-
Ignores the next event for the styleKey .
|
protected Object |
Init(Object component)
-
Initializes the instance.
|
protected static Object |
InitConstants()
|
protected Object |
InitDomElement(AdfUIComponent component, HTMLElement domElement)
-
Initialize the associated domElement when the peer is created.
|
protected static Object |
InitSubclass()
|
public Object |
isEmpty(Object value)
-
Check whether the input text is empty Return whether the input text is empty so the client side can do the validation for required field.
|
private Boolean |
_isIgnoreNextEvent(String styleKey)
-
Checks if we need to ignore the next event.
|
private Object |
_makeEditable(AdfUIComponent component)
-
Makes a component editable, i.e.
|
private Object |
_queryCommandValue(Object key)
|
private Object |
_removeCommandBindings(AdfUIComponent component)
-
Removes all the bindings of components to a command.
|
private Object |
_removeContextChangeListeners(AdfUIComponent component)
-
Removes the listeners for context changes.
|
private Object |
_removeSelection()
-
Removes the saved selection.
|
private Object |
_removeStyleBindings(AdfUIComponent component)
-
Removes all the bindings of components to a style-command.
|
private Object |
_restoreSelection()
-
Restores the previous selection, if necessary.
|
private Object |
_saveSelection()
-
Saves of the current selection, if necessary.
|
protected Object |
ScrollIntoView(Object component, Object focus, String subTargetId)
-
Overrriden to provide RTE specific implementation.
|
public Object |
setCodeEditingMode(Boolean newCodeEditingMode)
-
Specifies the new source code editing mode.
|
protected Object |
SetDisplayValue(AdfUIComponent component, HTMLElement domElement, String newValue)
-
Set the display string.
|
private Object |
_setInlineFrameContent(HTMLElement inlineFrame, String content)
-
Sets content as the content of the inline frame.
|
private Object |
_setInlineFrameStyle(Object inlineFrameDocument)
|
protected Object |
ShowFormatHint()
-
Show converter hints in note window for this component.
|
private Object |
_stopDialogsFromBeingInactivatedDueToIframes()
-
Since the richTextEditor uses an iframe, it is possible that dialogs containing this component will become inactivated when focus is moved into the iframe.
|
private Object |
_styleBindingActionListener(AdfActionEvent event)
-
Handles the events fired by the components that are bound to this component.
|
private Boolean |
_toggleSelectionStyling(String styleKey)
-
Toggles the styling with styleKey on the current selection.
|
private static Number |
_toolboxVisitChildrenCallback(AdfUIComponent component)
-
Callback for the visitor of children components of the toolbox when switching editing modes.
|
private Object |
_updateValue()
-
Updates the value of the component in the hidden form element.
|