OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.agent.gecko
Class AdfGeckoEditingAgent

Warning:

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

public class AdfGeckoEditingAgent
extends AdfEditingAgent
Gecko AdfEditingAgent capabilities.


Field Summary

private static Object
_cmdBackColor
private static Object
_cmdHiliteColor
private static Object
_dummyBrTag
private static Object
_dummyBrTagAtr
private static Object
_dummyBrTagPrt1

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

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfGeckoEditingAgent()
Gecko AdfEditingAgent capabilities.

Method Summary

private Number
_asciiValue(String c)
Searches through the ascii charachter set (0-255) to see if the parameter matches.
protected Object
CreateLink(AdfRichTextEditor component, HTMLElement doc, String value)
Updates the value to be encoded to escape non-ascii characters
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.
private Object
_getWindowSelection(Object inlineFrame)
Gets the selection of the window.
public Object
handleTab(Object inlineFrame, Object keyDownEvt)
protected static Object
InitClass()
public Object
isDummyBrFnc(Object element, Object context)
public Boolean
queryCommandEnabled(AdfRichTextEditor component, HTMLFrameElement inlineFrame, String command)
Checks 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
QueryUnLinkEnabled(AdfRichTextEditor component, HTMLFrameElement inlineFrame)
Implementation for RemoveLink .
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.

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

execCommand, ExecuteRedo, ExecuteUndo, getColor, getContentWindow, getInlineFrameDocument, getInstance, getSelectionRangeString, insertHtmlAtSelection, isDesignMode, isDesignModeReloadingFrame, isEmptySelection, IsNodeWrappingRange, QueryRedoEnabled, QueryUndoEnabled, setInlineFrameContent, setInlineFrameContentEditable, setRTL, 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


_cmdBackColor

private static Object _cmdBackColor

_cmdHiliteColor

private static Object _cmdHiliteColor

_dummyBrTag

private static Object _dummyBrTag

_dummyBrTagAtr

private static Object _dummyBrTagAtr

_dummyBrTagPrt1

private static Object _dummyBrTagPrt1

Constructor Detail


AdfGeckoEditingAgent

public AdfGeckoEditingAgent()

Gecko AdfEditingAgent capabilities.

Method Detail


_asciiValue

private Number _asciiValue(String c)

Searches through the ascii charachter set (0-255) to see if the parameter matches.

Parameters:
c - String representing a character
Return:
Number - A number representing the ascii numeric value of the parameter. 256 if the character is not ascii.

CreateLink

protected Object CreateLink(AdfRichTextEditor component,
                            HTMLElement doc,
                            String value)

Updates the value to be encoded to escape non-ascii characters

Parameters:
component - Component the rich text editor component
doc - The editable document
value - The value given by the user
Return:
Object
Overrides:
AdfEditingAgent.CreateLink(AdfRichTextEditor, HTMLElement, String)

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)

_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)

InitClass

protected static Object InitClass()

Return:
Object

isDummyBrFnc

public Object isDummyBrFnc(Object element,
                           Object context)

Parameters:
element  
context  
Return:
Object

queryCommandEnabled

public Boolean queryCommandEnabled(AdfRichTextEditor component,
                                   HTMLFrameElement inlineFrame,
                                   String command)

Checks if a command is enabled for the current context.

Parameters:
component - Component the rich text editor component
inlineFrame - The inline frame
command - The command to check
Return:
Boolean - Whether the command is enabled
Overrides:
AdfEditingAgent.queryCommandEnabled(AdfRichTextEditor, HTMLFrameElement, String)

queryCommandIndeterminate

public Boolean queryCommandIndeterminate(HTMLFrameElement inlineFrame,
                                         String commandIdentifier)

Queries whether the value for command is indeterminate.

Parameters:
inlineFrame - The content field
commandIdentifier - The command
Return:
Boolean - Whether the command is indeterminate.
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)

QueryUnLinkEnabled

protected Boolean QueryUnLinkEnabled(AdfRichTextEditor component,
                                     HTMLFrameElement inlineFrame)

Implementation for RemoveLink .

Parameters:
component - The rich text editor component
inlineFrame - The inline frame
Return:
Boolean - Whether the command is enabled

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)

toBrowserSpecificCommand

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.

Parameters:
command - The command
Return:
String - The new command
Overrides:
AdfEditingAgent.toBrowserSpecificCommand(String)

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

 

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