goog.Disposable | |
goog.editor.ClickToEditWrapper | goog.Disposable |
fieldObj
: goog.editor.Field
The editable field being wrapped.
|
![]()
No description.
|
code » | ||
![]()
Ensure that the field is editable. If the field is not editable,
make it so, and record the fact that it was done by a user mouse event.
|
code » | ||
![]()
Initialize listeners when the uneditable field is added to the document.
Also sets up lorem ipsum text.
|
code » | ||
![]()
Destroy listeners when the field is removed from the document.
|
code » | ||
![]()
A helper function for handleMouseUp_ -- does the actual work
when the event is finished propagating.
|
code » | ||
![]()
Focus on the field object.
Arguments:
|
code » | ||
Returns the uneditable field element if the field is not yet editable
(equivalent to EditableField.getOriginalElement()), and the editable DOM
element if the field is currently editable (equivalent to
EditableField.getElement()).
Returns: Element
The element containing the editable field contents.
|
code » | ||
No description.
Returns: goog.editor.Field
The field.
|
code » | ||
No description.
Returns: goog.dom.DomHelper
The dom helper of the uneditable element.
|
code » | ||
![]()
Handle mouse click events on the field.
Arguments:
|
code » | ||
![]()
Handle a mouse up event on the field.
Arguments:
|
code » | ||
![]()
Inserts the carets, given the current selection.
Note that for all practical purposes, a cursor position is just
a selection with the start and end at the same point.
|
code » | ||
![]()
Make the field object editable.
Arguments:
|
code » | ||
![]()
Once the field has loaded in an iframe, re-create the selection
as marked by the carets.
|
code » | ||
True if a mouse event should be handled, false if it should be ignored.
Arguments:
Returns: boolean
Wether or not this mouse event should be handled.
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
Event handler for field related events.
|
Code » | |
The field this wrapper interacts with.
|
Code » | |
![]()
Bound version of the finishMouseUp method.
|
Code » | |
The logger for this class.
|
Code » | |
Event handler for mouse events.
|
Code » | |
DOM helper for the field's original element.
|
Code » | |
No description.
|
Code » |
Gets a saved caret range for the given range.
Arguments:
Returns: goog.dom.SavedCaretRange
The range, saved with carets, or null
if the range wrapper was null.
|
code » |
![]()
No description.
|
Code » |