com.enspire.gemini.commands
Class BidirectionalListRemoveByIndex

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

public class BidirectionalListRemoveByIndex
extends BidirectionalListCommand

Executes the remove() operation on a BidirectionalList.

Since:
1.0
Author:
Dragan Djuric

Constructor Summary
BidirectionalListRemoveByIndex(BidirectionalProperty bidirectional, java.util.List list, int removeIndex, java.lang.Object removeValue)
          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

BidirectionalListRemoveByIndex

public BidirectionalListRemoveByIndex(BidirectionalProperty bidirectional,
                                      java.util.List list,
                                      int removeIndex,
                                      java.lang.Object removeValue)
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
removeIndex - an index of an object that should be removed to the collection
removeValue - an object that should be added to the list
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.