com.swfm.mica.sys
Class MiNestedTransaction

java.lang.Object
  extended bycom.swfm.mica.util.TypedVector
      extended bycom.swfm.mica.sys.MiNestedTransaction
All Implemented Interfaces:
MiiTransaction

public class MiNestedTransaction
extends TypedVector
implements MiiTransaction

Version:
%I% %G%
Author:
Michael L. Davis

Constructor Summary
MiNestedTransaction(java.lang.String name)
           
MiNestedTransaction(java.lang.String name, MiiTransaction t1)
           
MiNestedTransaction(java.lang.String name, MiiTransaction t1, MiiTransaction t2)
           
MiNestedTransaction(java.lang.String name, MiiTransaction t1, MiiTransaction t2, MiiTransaction t3)
           
 
Method Summary
 void addElement(MiiTransaction obj)
           
 boolean contains(MiiTransaction obj)
           
 MiiTransaction elementAt(int index)
           
 java.lang.String getCommand()
          Gets the command perfromed by this transaction.
 java.lang.String getName()
          Gets the name of this transaction.
 MiParts getSources()
          Gets the parts used by this transaction.
 MiParts getTargets()
          Gets the targets of this transaction.
 int indexOf(MiiTransaction obj)
           
 void insertElementAt(MiiTransaction obj, int index)
           
 boolean isProhibitingNestedTransactions()
           
 boolean isRepeatable()
          Gets whether this transaction is repeatable.
 boolean isUndoable()
          Gets whether this transaction is undoable.
 MiiTransaction lastElement()
           
 void redo()
          Redoes this transaction.
 boolean removeElement(MiiTransaction obj)
           
 void repeat()
          Repeats this transaction.
 void setIsRepeatable(java.lang.String flag)
           
 void setProhibitingNestedTransactions(boolean flag)
           
 MiiTransaction[] toArray()
           
 java.lang.String toString()
           
 void undo()
          Undoes this transaction.
 
Methods inherited from class com.swfm.mica.util.TypedVector
append, append, append, equals, hashCode, indexOf, removeAll, removeAllElements, removeElementAt, size
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiNestedTransaction

public MiNestedTransaction(java.lang.String name)

MiNestedTransaction

public MiNestedTransaction(java.lang.String name,
                           MiiTransaction t1)

MiNestedTransaction

public MiNestedTransaction(java.lang.String name,
                           MiiTransaction t1,
                           MiiTransaction t2)

MiNestedTransaction

public MiNestedTransaction(java.lang.String name,
                           MiiTransaction t1,
                           MiiTransaction t2,
                           MiiTransaction t3)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: MiiTransaction
Gets the name of this transaction. This name is often displayed, for example, in the menubar's edit pulldown menu.

Specified by:
getName in interface MiiTransaction
Returns:
the name of this transaction.

getCommand

public java.lang.String getCommand()
Gets the command perfromed by this transaction. This name is often found in the MiiCommandNames file.

Specified by:
getCommand in interface MiiTransaction
Returns:
the command of this transaction.

redo

public void redo()
Description copied from interface: MiiTransaction
Redoes this transaction. This is only valid after an undo. This redoes the changes encapsulated by this transaction that were undone by the undo() method.

Specified by:
redo in interface MiiTransaction

undo

public void undo()
Description copied from interface: MiiTransaction
Undoes this transaction. This undoes any changes that were made by the changes encapsulated by this transaction.

Specified by:
undo in interface MiiTransaction

repeat

public void repeat()
Description copied from interface: MiiTransaction
Repeats this transaction. This re-applies the changes encapsulated by this transaction. For example, a translation of a shape can be repeated in order to move it further.

Specified by:
repeat in interface MiiTransaction

isUndoable

public boolean isUndoable()
Description copied from interface: MiiTransaction
Gets whether this transaction is undoable.

Specified by:
isUndoable in interface MiiTransaction

isRepeatable

public boolean isRepeatable()
Description copied from interface: MiiTransaction
Gets whether this transaction is repeatable. If repeatable then calling this transaction's repeat() method is permitted.

Specified by:
isRepeatable in interface MiiTransaction

setIsRepeatable

public void setIsRepeatable(java.lang.String flag)

getTargets

public MiParts getTargets()
Gets the targets of this transaction.

Specified by:
getTargets in interface MiiTransaction

getSources

public MiParts getSources()
Gets the parts used by this transaction.

Specified by:
getSources in interface MiiTransaction

elementAt

public MiiTransaction elementAt(int index)

lastElement

public MiiTransaction lastElement()

setProhibitingNestedTransactions

public void setProhibitingNestedTransactions(boolean flag)

isProhibitingNestedTransactions

public boolean isProhibitingNestedTransactions()

addElement

public void addElement(MiiTransaction obj)

insertElementAt

public void insertElementAt(MiiTransaction obj,
                            int index)

removeElement

public boolean removeElement(MiiTransaction obj)

indexOf

public int indexOf(MiiTransaction obj)

contains

public boolean contains(MiiTransaction obj)

toArray

public MiiTransaction[] toArray()

toString

public java.lang.String toString()
Overrides:
toString in class TypedVector