|
VTT Java 2010 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.vtt.Model.UndoNode
public class UndoNode
This is the undo node class. It includes a list of UndoBase of ADD, DELETE, CHANGE. This class is used directly in VTT for undo and redo managers.
History:
| Constructor Summary | |
|---|---|
UndoNode()
Create an undo node Java object with default values. |
|
UndoNode(int action)
Create an undo node Java object by specifying action. |
|
UndoNode(int action,
Markup cur,
Markup prev)
Create an undo node Java object with default values. |
|
| Method Summary | |
|---|---|
void |
AddUndoBase(UndoBase undoBase)
Add undoBase to undo bases. |
UndoBase |
GetFirstUndoBase()
Get the first undo base from bases list. |
UndoBase |
GetLastUndoBase()
Get the last undo base from bases list. |
int |
GetSize()
Get size of bases list. |
UndoBase |
GetUndoBase(int index)
Get undoBase from undo bases list. |
java.util.Vector<UndoBase> |
GetUndoBases()
Get the undo bases list. |
void |
SetAction(int action)
Set the action. |
java.lang.String |
ToString()
Converts undoNode to String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UndoNode()
public UndoNode(int action)
action - action on markup
public UndoNode(int action,
Markup cur,
Markup prev)
action - action on markupcur - current markupprev - previous markup| Method Detail |
|---|
public void AddUndoBase(UndoBase undoBase)
undoBase - undoBase to be addedpublic UndoBase GetUndoBase(int index)
index - the index of interest
public int GetSize()
public UndoBase GetFirstUndoBase()
public UndoBase GetLastUndoBase()
public java.util.Vector<UndoBase> GetUndoBases()
public void SetAction(int action)
action - the action to be setpublic java.lang.String ToString()
|
VTT Java 2010 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||