OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.agent.edge
Class AdfEdgeEditingAgent

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adfinternal.view.js.agent.AdfEditingAgent
               |
               +--oracle.adfinternal.view.js.agent.edge.AdfEdgeEditingAgent

public class AdfEdgeEditingAgent
extends AdfEditingAgent
Edge AdfEditingAgent capabilities.


Field Summary


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfEdgeEditingAgent()
Edge AdfEditingAgent capabilities.

Method Summary

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 Object
getSelectionRange(HTMLFrameElement inlineFrame)
Gets the current selection-object.
public Object
getSelectionRangeString(Object selectionRange)
Provides the text of the current selection.
private Object
_getWindowSelection(Object inlineFrame)
Gets the selection of the window.
public Object
handleTab(Object inlineFrame, Object keyDownEvt)
private Object
_isContentEditableRequired()
public Boolean
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)
Implementation for checking if the supplied node is wrapping a range
public Object
queryCommandIndeterminate(Object inlineFrame, Object 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.
private Object
_setInlineFrameBodyContentEditable(Object body)
public Boolean
setInlineFrameContentEditable(HTMLFrameElement inlineFrame)
Makes an inline frame contentEditable.
public Object
setSelectionRange(HTMLFrameElement inlineFrame, DOMSelection range)
Sets the range of the selection

Methods inherited from oracle.adfinternal.view.js.agent.AdfEditingAgent

CreateLink, execCommand, ExecuteRedo, ExecuteUndo, getColor, getContentWindow, getInlineFrameDocument, getInstance, insertHtmlAtSelection, isEmptySelection, queryCommandEnabled, QueryRedoEnabled, QueryUndoEnabled, setInlineFrameContent, setRTL, toBrowserSpecificCommand, updateValueHistory, useContentEditable

Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, Init, toDebugString, toString

Field Detail


Constructor Detail


AdfEdgeEditingAgent

public AdfEdgeEditingAgent()

Edge AdfEditingAgent capabilities.

Method Detail


getDefaultContent

public Object getDefaultContent()

Return:
Object
Overrides:
AdfEditingAgent.getDefaultContent()

getFocusBlurElement

public Object getFocusBlurElement(HTMLFrameElement inlineFrame)

Gets the element that receives focus- and blur-events.

Parameters:
inlineFrame - The inline-frame
Return:
Object
Overrides:
AdfEditingAgent.getFocusBlurElement(HTMLFrameElement)

getInlineFrameContent

public String getInlineFrameContent(HTMLFrameElement inlineFrame,
                                    Object keepOriginal)

Gets the content of the inlineFrame.

Parameters:
inlineFrame - The inline frame
keepOriginal - indicates whether content should be returned as is without removing unnecessary content
Return:
String - The content of the inline frame.
Overrides:
AdfEditingAgent.getInlineFrameContent(HTMLFrameElement, Object)

getSelectionRange

public Object getSelectionRange(HTMLFrameElement inlineFrame)

Gets the current selection-object.

Parameters:
inlineFrame - The inline frame
Return:
Object
Overrides:
AdfEditingAgent.getSelectionRange(HTMLFrameElement)

getSelectionRangeString

public Object getSelectionRangeString(Object selectionRange)

Provides the text of the current selection. Within the editing agent's code since IE has its own specific impl.

Parameters:
selectionRange  
Return:
Object
Overrides:
AdfEditingAgent.getSelectionRangeString(Object)

_getWindowSelection

private Object _getWindowSelection(Object inlineFrame)

Gets the selection of the window.

Parameters:
inlineFrame  
Return:
Object

handleTab

public Object handleTab(Object inlineFrame,
                        Object keyDownEvt)

Parameters:
inlineFrame  
keyDownEvt  
Return:
Object
Overrides:
AdfEditingAgent.handleTab(Object, Object)

_isContentEditableRequired

private Object _isContentEditableRequired()

Return:
Object

isDesignMode

public Boolean isDesignMode(HTMLFrameElement inlineFrame)

Checks if the inlineFrame is in designMode.

Parameters:
inlineFrame - The inline frame
Return:
Boolean - Whether designMode is on.
Overrides:
AdfEditingAgent.isDesignMode(HTMLFrameElement)

isDesignModeReloadingFrame

public Object isDesignModeReloadingFrame()

Returns true if setting design mode to "on" will reload the IFRAME, false otherwise

Return:
Object
Overrides:
AdfEditingAgent.isDesignModeReloadingFrame()

IsNodeWrappingRange

protected Boolean IsNodeWrappingRange(Range range,
                                      Node node)

Implementation for checking if the supplied node is wrapping a range

Parameters:
range - The range object, usually corresponding to a seleciton
node - The node object that potentially wrapps the range
Return:
Boolean - Whether the supplied node wraps the supplied range
Overrides:
AdfEditingAgent.IsNodeWrappingRange(Range, Node)

queryCommandIndeterminate

public Object queryCommandIndeterminate(Object inlineFrame,
                                        Object commandIdentifier)

Queries whether the value for command is indeterminate.

Parameters:
inlineFrame  
commandIdentifier  
Return:
Object
Overrides:
AdfEditingAgent.queryCommandIndeterminate(HTMLFrameElement, String)

queryCommandState

public Object queryCommandState(HTMLFrameElement inlineFrame,
                                String commandIdentifier)

Queries the state of the current command.

Parameters:
inlineFrame - The inline frame
commandIdentifier - The command
Return:
Object - The value for the command
Overrides:
AdfEditingAgent.queryCommandState(HTMLFrameElement, String)

queryCommandValue

public Object queryCommandValue(HTMLFrameElement inlineFrame,
                                String commandIdentifier)

Queries the value for the command.

Parameters:
inlineFrame - The inline frame
commandIdentifier - The command
Return:
Object - The value for the command
Overrides:
AdfEditingAgent.queryCommandValue(HTMLFrameElement, String)

_setInlineFrameBodyContentEditable

private Object _setInlineFrameBodyContentEditable(Object body)

Parameters:
body  
Return:
Object

setInlineFrameContentEditable

public Boolean setInlineFrameContentEditable(HTMLFrameElement inlineFrame)

Makes an inline frame contentEditable.

Parameters:
inlineFrame - The inline frame
Return:
Boolean - Whether the action succeeded
Overrides:
AdfEditingAgent.setInlineFrameContentEditable(HTMLFrameElement)

setSelectionRange

public Object setSelectionRange(HTMLFrameElement inlineFrame,
                                DOMSelection range)

Sets the range of the selection

Parameters:
inlineFrame - The inlineFrame
range - The range
Return:
Object
Overrides:
AdfEditingAgent.setSelectionRange(HTMLFrameElement, DOMSelection)

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.