com.enspire.gemini.commands
Class BidirectionalListAddByIndex

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

public class BidirectionalListAddByIndex
extends BidirectionalListCommand

Executes the add() operation on a BidirectionalList.

Since:
1.0
Author:
Dragan Djuric

Constructor Summary
BidirectionalListAddByIndex(BidirectionalProperty bidirectional, java.util.List list, int addIndex, 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.BidirectionalListCommand
getList, setList
 
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

BidirectionalListAddByIndex

public BidirectionalListAddByIndex(BidirectionalProperty bidirectional,
                                   java.util.List list,
                                   int addIndex,
                                   java.lang.Object addValue)
Creates a command and sets its dependencies.

Parameters:
bidirectional - the bidirectional list that this command is tied to
list - the unidirectional list that this command is tied to
addIndex - an index of an object that should be added to the collection
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.