OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.agent.safari
Class AdfSafariEditingAgent

Warning:

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

public class AdfSafariEditingAgent
extends AdfEditingAgent
Safari 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
AdfSafariEditingAgent()
Safari 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.
private Object
_getWindowSelection(Object inlineFrame)
Gets the selection of the window.
public Object
handleTab(Object inlineFrame, Object keyDownEvt)
protected static Object
InitClass()
public Object
insertHtmlAtSelection(HTMLFrameElement inlineFrame, String htmlFragment)
Inserts an HTML fragment in place of the current selection or at the current cursor position.
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

CreateLink, execCommand, ExecuteRedo, ExecuteUndo, getContentWindow, getInlineFrameDocument, getInstance, 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


AdfSafariEditingAgent

public AdfSafariEditingAgent()

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

_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

insertHtmlAtSelection

public Object insertHtmlAtSelection(HTMLFrameElement inlineFrame,
                                    String htmlFragment)

Inserts an HTML fragment in place of the current selection or at the current cursor position.

Parameters:
inlineFrame  -  the inline frame
htmlFragment  -  the HTML fragment to insert
Return:
Object
Overrides:
AdfEditingAgent.insertHtmlAtSelection(HTMLFrameElement, String)

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 2009.09.25 03:44 UTC
Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved.