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


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 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.
public Object
setInlineFrameContentEditable(HTMLElement inlineFrame)
Makes an inline frame contentEditable.
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, getContentWindow, getInlineFrameDocument, getInstance, insertHtmlAtSelection, isDesignMode, isDesignModeReloadingFrame, IsNodeWrappingRange, QueryRedoEnabled, QueryUndoEnabled, setInlineFrameContent, setRTL, updateValueHistory


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

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


Field Detail


_cmdBackColor

private static Object _cmdBackColor

_cmdHiliteColor

private static Object _cmdHiliteColor

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

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)

setInlineFrameContentEditable

public Object setInlineFrameContentEditable(HTMLElement inlineFrame)

Makes an inline frame contentEditable.

Parameters:
inlineFrame  -  The inline frame
Return:
Object
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)

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

 

Generated on 2010.03.26 00:15 UTC
Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.