Packagecom.adobe.rtc.pods.noteClasses
Classpublic class NoteUndoRedo

UndoRedo Component used in Note, Whiteboard to undo and redo commands Developers can use this component to perform their undo's and redo's in their application on various string inputs

See also

com.adobe.rtc.pods.SharedWhiteBoard
com.adobe.rtc.pods.Note


Public Properties
 PropertyDefined by
  endIndex : Number
Last Index from where the next text will start
NoteUndoRedo
  head : Number
[read-only] Gets the head index of the undo redo stack
NoteUndoRedo
  length : Number
[read-only] Gets the length of the stack
NoteUndoRedo
  startingText : String
[write-only] Sets the Starting Text
NoteUndoRedo
  text : String
[read-only] Gets the currentText
NoteUndoRedo
Public Methods
 MethodDefined by
  
NoteUndoRedo
  
addKeyCommand(p_currentText:String, p_index:Number):void
Adds a text to the stack
NoteUndoRedo
  
redo():void
Redo an Operation
NoteUndoRedo
  
undo():void
Undo's an operation
NoteUndoRedo
Property detail
endIndexproperty
endIndex:Number  [read-write]

Last Index from where the next text will start

Implementation
    public function get endIndex():Number
    public function set endIndex(value:Number):void
headproperty 
head:Number  [read-only]

Gets the head index of the undo redo stack

Implementation
    public function get head():Number
lengthproperty 
length:Number  [read-only]

Gets the length of the stack

Implementation
    public function get length():Number
startingTextproperty 
startingText:String  [write-only]

Sets the Starting Text

Implementation
    public function set startingText(value:String):void
textproperty 
text:String  [read-only]

Gets the currentText

Implementation
    public function get text():String
Constructor detail
NoteUndoRedo()constructor
public function NoteUndoRedo()
Method detail
addKeyCommand()method
public function addKeyCommand(p_currentText:String, p_index:Number):void

Adds a text to the stack

Parameters
p_currentText:String
 
p_index:Number
redo()method 
public function redo():void

Redo an Operation

undo()method 
public function undo():void

Undo's an operation





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/pods/noteClasses/NoteUndoRedo.html