AdfEditingAgent capabilities.
Method Summary
|
protected Object |
CreateLink(AdfRichTextEditor component, HTMLElement doc, String value)
-
Default implementation for executing a createlink command.
|
public Object |
execCommand(AdfRichTextEditor component, HTMLFrameElement inlineFrame, String command, Object value)
-
Executes a command on the document, selection, or the given range.
|
private Object |
_executeCommand(AdfRichTextEditor component, HTMLElement doc, String command, String value)
-
Default implementation for executing an editing command.
|
protected Object |
ExecuteRedo(AdfRichTextEditor component, HTMLFrameElement inlineFrame, HTMLElement doc)
-
Default implementation for executing an redo command.
|
protected Object |
ExecuteUndo(AdfRichTextEditor component, HTMLFrameElement inlineFrame, HTMLElement doc)
-
Default implementation for executing an undo command.
|
public Object |
getColor(Object value)
|
public HTMLFrameElement |
getContentWindow(HTMLElement inlineFrame)
-
Retrieves the contentWindow of the inline frame.
|
public Object |
getDefaultContent()
|
public Object |
getFocusBlurElement(HTMLFrameElement inlineFrame)
-
Gets the element that receives focus- and blur-events.
|
public String |
getInlineFrameContent(HTMLFrameElement inlineFrame, Object keepOriginal)
-
Gets the content of the inlineFrame.
|
public HTMLDocument |
getInlineFrameDocument(HTMLFrameElement inlineFrame)
-
Retrieves the document of the inline frame.
|
public static AdfEditingAgent |
getInstance()
-
Gets the current instance of the agent.
|
private String |
_getLinkURLForSelection(AdfRichTextEditor component, HTMLFrameElement inlineFrame)
-
Default implementation for obtaining the URL of the link wrapping the current selection.
|
public Object |
getSelectionRange(HTMLFrameElement inlineFrame)
-
Gets the current selection-object.
|
public Object |
handleTab(Object inlineFrame, Object keyDownEvt)
|
public Object |
insertHtmlAtSelection(HTMLFrameElement inlineFrame, String htmlFragment)
-
Inserts an HTML fragment in place of the current selection or at the current cursor position.
|
public Object |
isDesignMode(HTMLFrameElement inlineFrame)
-
Checks if the inlineFrame is in designMode.
|
public Object |
isDesignModeReloadingFrame()
-
Returns true if setting design mode to "on" will reload the IFRAME, false otherwise
|
protected Boolean |
IsNodeWrappingRange(Range range, Node node)
-
Default implementation for checking if the supplied node is wrapping a range
|
public Boolean |
queryCommandEnabled(AdfRichTextEditor component, HTMLFrameElement inlineFrame, String command)
-
Checks if a command is enabled for the current context.
|
private Boolean |
_queryCommandEnabled(AdfRichTextEditor component, HTMLFrameElement inlineFrame, String command)
-
Default implementation for checking if a command is enabled for the current context.
|
public Boolean |
queryCommandIndeterminate(HTMLFrameElement inlineFrame, String commandIdentifier)
-
Queries whether the value for command is indeterminate.
|
public Object |
queryCommandState(HTMLFrameElement inlineFrame, String commandIdentifier)
-
Queries the state of the current command.
|
public Object |
queryCommandValue(HTMLFrameElement inlineFrame, String commandIdentifier)
-
Queries the value for the command.
|
protected Boolean |
QueryRedoEnabled(AdfRichTextEditor component, HTMLFrameElement inlineFrame)
-
Default implementation for checking if the redo command is enabled for the current context.
|
protected Boolean |
QueryUndoEnabled(AdfRichTextEditor component, HTMLFrameElement inlineFrame)
-
Default implementation for checking if the undo command is enabled for the current context.
|
public Object |
setInlineFrameContent(HTMLFrameElement inlineFrame, String newContent)
-
Sets the content of the inlineFrame.
|
public Boolean |
setInlineFrameContentEditable(HTMLFrameElement inlineFrame)
-
Makes an inline frame contentEditable.
|
public Object |
setRTL(HTMLDocument doc)
-
Sets the RTL-value for this document.
|
public Object |
setSelectionRange(HTMLFrameElement inlineFrame, DOMSelection range)
-
Sets the range of the selection
|
public String |
toBrowserSpecificCommand(String command)
-
When given a command for use with document.execCommand, this will change the command to be a browser-specific command.
|
public Object |
updateValueHistory(AdfRichTextEditor component, HTMLFrameElement inlineFrame, String newValue)
-
Updates the undo/redo information for this editor.
|