Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand:
de.fu_berlin.inf.dpp.whiteboard.gef.commands.SXECommand

List of all members.

Public Member Functions

void addRecordToDelete (ElementRecord record)
List< IRecordgetRecords ()
List< IRecordgetUndoRecords ()
DocumentRecord getDocumentRecord ()
void dispose ()

Protected Member Functions

boolean canExecuteSXECommand ()
boolean canUndoSXECommand ()

Package Functions

void setDocumentRecord (DocumentRecord document)

Detailed Description

This command allows to delete a arbitrary group of ElementRecord s by only creating RemoveRecord for the top-most elements.

To undo a delete, a record is "recreated" by means of the recreate() method. Thus the references in the CommandStack may remain but to the peer another RID (thus another record) will be sent.

Author:
jurke

Member Function Documentation

void de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.addRecordToDelete ( ElementRecord  record)
boolean de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.canExecuteSXECommand ( ) [protected, virtual]
boolean de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.canUndoSXECommand ( ) [protected, virtual]
void de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.dispose ( )
DocumentRecord de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.getDocumentRecord ( ) [virtual]
List<IRecord> de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.getRecords ( ) [virtual]
List<IRecord> de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.getUndoRecords ( ) [virtual]
void de.fu_berlin.inf.dpp.whiteboard.gef.commands.DeleteRecordsCommand.setDocumentRecord ( DocumentRecord  document) [package]
 All Classes Namespaces Files Functions Variables Enumerations