OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adf.view.js.laf.inlineEditor
Class AdfRichPlainTextEditor

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.laf.inlineEditor.AdfRichInlineEditor
               |
               +--oracle.adf.view.js.laf.inlineEditor.AdfRichPlainTextEditor
Direct Known Subclasses:
AdfDhtmlButtonTextEditor, AdfDhtmlNavigationItemTextEditor, AdfDhtmlSelectBooleanTextEditor, AdfDhtmlSimpleLabelEditor, AdfDhtmlSimpleTextEditor

public class AdfRichPlainTextEditor
extends AdfRichInlineEditor
Creates an AdfRichPlainTextEditor instance editing the specific property



Field Summary

private static Object
_extraWidth
private Object
_propertyName


Fields inherited from oracle.adf.view.js.laf.inlineEditor.AdfRichInlineEditor

FILTER_EDITABLE, FILTER_SELECTABLE, FILTER_UNSELECTABLE


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfRichPlainTextEditor(String propertyName)
Creates an AdfRichPlainTextEditor instance editing the specific property


Method Summary

private Object
_commitEdit()
Commits the current value back to the component
private static Object
_commitEditStub()
Called back DOM Event handler to Establishes "this" before calling _commitEdit
private Object
_finishEdit()
Cleans up editing of the current component
protected HTMLElement
GetEditedDomElement()
Hook for subclassers to override the DOM sub-element of the Peer being edited.
public String
getEditedProperty()
Returns the name of the property edited by this instance.
private Object
_handleEditorEvent(Event event)
Handles editing completion from blur or key strokes ENTER, ALT+ENTER and ESC
private static Object
_handleEditorEventStub(Object event)
Called back DOM Event handler to Establishes "this" before calling _handleEditorEvent
protected Object
Init(String propertyName)
Instance initializer using
protected Object
PreEdit()
Implement by delegating to GetEditedDomElement.
public Object
startEdit(AdfUIComponent component, Object event)
Start editing the specified component at the location indicated by the optional DOM event.
public Object
stopEdit()
Called to stop editing the current component.
private Object
_syncFromPropertyChange(Object propertyChange)
private Object
_updateTextAreaPosition(Object textArea, Object editedDomElement)
Update the bounds of the text area given the current position of the editedDomElement


Methods inherited from oracle.adf.view.js.laf.inlineEditor.AdfRichInlineEditor

getEditedComponent, GetEditedPeer, handleEvent, preEdit


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

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


Field Detail


_extraWidth

private static Object _extraWidth

_propertyName

private Object _propertyName

Constructor Detail


AdfRichPlainTextEditor

public AdfRichPlainTextEditor(String propertyName)

Creates an AdfRichPlainTextEditor instance editing the specific property

Parameters:
propertyName  -  Name of component property that this editor edits.

Method Detail


_commitEdit

private Object _commitEdit()

Commits the current value back to the component

Return:
Object

_commitEditStub

private static Object _commitEditStub()

Called back DOM Event handler to Establishes "this" before calling _commitEdit

Return:
Object
See also:
_commitEdit()

_finishEdit

private Object _finishEdit()

Cleans up editing of the current component

Return:
Object

GetEditedDomElement

protected HTMLElement GetEditedDomElement()

Hook for subclassers to override the DOM sub-element of the Peer being edited. The default implementation is that the complete peer is edited.

Return:
HTMLElement - null

getEditedProperty

public String getEditedProperty()

Returns the name of the property edited by this instance. This will return null if the inline editor doesn't edit properties,

Return:
String - null
Overrides:
AdfRichInlineEditor.getEditedProperty()

_handleEditorEvent

private Object _handleEditorEvent(Event event)

Handles editing completion from blur or key strokes ENTER, ALT+ENTER and ESC

Parameters:
event  -  DOM event to handle
Return:
Object

_handleEditorEventStub

private static Object _handleEditorEventStub(Object event)

Called back DOM Event handler to Establishes "this" before calling _handleEditorEvent

Parameters:
event    
Return:
Object
See also:
_handleEditorEvent(Event)

Init

protected Object Init(String propertyName)

Instance initializer using

Parameters:
propertyName  -  Name of component property that this editor edits.
Return:
Object
Overrides:
AdfObject.Init()

PreEdit

protected Object PreEdit()

Implement by delegating to GetEditedDomElement.

Return:
Object
Overrides:
AdfRichInlineEditor.preEdit(AdfUIComponent)

startEdit

public Object startEdit(AdfUIComponent component,
                        Object event)

Start editing the specified component at the location indicated by the optional DOM event.

Parameters:
component  -  Component to start editing
event    
Return:
Object
Overrides:
AdfRichInlineEditor.startEdit(AdfUIComponent, Object)

stopEdit

public Object stopEdit()

Called to stop editing the current component.

Return:
Object
Overrides:
AdfRichInlineEditor.stopEdit()

_syncFromPropertyChange

private Object _syncFromPropertyChange(Object propertyChange)

Parameters:
propertyChange    
Return:
Object

_updateTextAreaPosition

private Object _updateTextAreaPosition(Object textArea,
                                       Object editedDomElement)

Update the bounds of the text area given the current position of the editedDomElement

Parameters:
textArea    
editedDomElement    
Return:
Object

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

 

Generated on 2012.03.28 02:21 UTC
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.