com.enspire.gemini.commands
Class BidirectionalCollectionAdd

java.lang.Object
  extended by com.enspire.gemini.commands.BidirectionalPropertyCommand
      extended by com.enspire.gemini.commands.BidirectionalCollectionCommand
          extended by com.enspire.gemini.commands.BidirectionalCollectionAdd
All Implemented Interfaces:
Command

public class BidirectionalCollectionAdd
extends BidirectionalCollectionCommand

Executes the add() operation on a BidirectionalCollection.

Since:
1.0
Author:
Dragan Djuric

Constructor Summary
BidirectionalCollectionAdd(BidirectionalProperty bidirectional, java.util.Collection collection, java.lang.Object addValue)
          Creates a command and sets its dependencies.
 
Method Summary
 void execute()
          Executes the command.
 void undo()
          Undoes the command.
 
Methods inherited from class com.enspire.gemini.commands.BidirectionalCollectionCommand
getCollection, setCollection
 
Methods inherited from class com.enspire.gemini.commands.BidirectionalPropertyCommand
getBidirectionalProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidirectionalCollectionAdd

public BidirectionalCollectionAdd(BidirectionalProperty bidirectional,
                                  java.util.Collection collection,
                                  java.lang.Object addValue)
Creates a command and sets its dependencies.

Parameters:
bidirectional - the bidirectional collection that this command is tied to
collection - the unidirectional collection that this command is tied to
addValue - an object that should be added to the collection
Method Detail

execute

public void execute()
Description copied from interface: Command
Executes the command.

See Also:
Command.execute()

undo

public void undo()
Description copied from interface: Command
Undoes the command.

See Also:
Command.undo()


Copyright © 2005 e-nspire. All Rights Reserved.