com.enspire.gemini.commands
Class BidirectionalCollectionCommand

java.lang.Object
  extended by com.enspire.gemini.commands.BidirectionalPropertyCommand
      extended by com.enspire.gemini.commands.BidirectionalCollectionCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
BidirectionalCollectionAdd, BidirectionalCollectionRemove

public abstract class BidirectionalCollectionCommand
extends BidirectionalPropertyCommand

A command that is tied to a specific Collection.

Since:
1.0
Author:
Dragan Djuric

Constructor Summary
BidirectionalCollectionCommand(BidirectionalProperty bidirectionalProperty, java.util.Collection collection)
          Creates a command and sets its dependencies.
 
Method Summary
 java.util.Collection getCollection()
          Gets the unidirectional collection (wrapped bu this command's bidirectional collection) that this command is tied to.
 void setCollection(java.util.Collection collection)
          Sets the unidirectional collection (wrapped bu this command's bidirectional collection) that this command is tied to.
 
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
 
Methods inherited from interface com.enspire.gemini.commands.Command
execute, undo
 

Constructor Detail

BidirectionalCollectionCommand

public BidirectionalCollectionCommand(BidirectionalProperty bidirectionalProperty,
                                      java.util.Collection collection)
Creates a command and sets its dependencies.

Parameters:
bidirectionalProperty - the bidirectional collection that this command is tied to
collection -
Method Detail

getCollection

public java.util.Collection getCollection()
Gets the unidirectional collection (wrapped bu this command's bidirectional collection) that this command is tied to.

Returns:
Returns the unidirectional collection

setCollection

public void setCollection(java.util.Collection collection)
Sets the unidirectional collection (wrapped bu this command's bidirectional collection) that this command is tied to.

Parameters:
collection - an unidirectional collection to set.


Copyright © 2005 e-nspire. All Rights Reserved.