root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / CommandsRecord.java @ 24496
History | View | Annotate | Download (2.26 KB)
1 |
package org.gvsig.fmap.dal.feature; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
import org.gvsig.fmap.dal.exceptions.DataException; |
6 |
import org.gvsig.tools.observer.WeakReferencingObservable; |
7 |
|
8 |
|
9 |
|
10 |
/**
|
11 |
* Record to stack the commands.
|
12 |
* This record is a command stack whose purpose is to give support and manage undo and re-do operations.
|
13 |
*
|
14 |
* @author Vicente Caballero Navarro
|
15 |
*/
|
16 |
public interface CommandsRecord { |
17 |
/**
|
18 |
* Removes all the elements from this Record.
|
19 |
*/
|
20 |
// public void clear();
|
21 |
/**
|
22 |
* Appends the specified command to the undos stack and delete all redos commands.
|
23 |
*/
|
24 |
// public void add( Command command);
|
25 |
/**
|
26 |
* Undoes a command. Pops the UNDO stack, executes the obtained command and puts it onto the REDO stack.
|
27 |
*
|
28 |
* @throws DataException
|
29 |
*/
|
30 |
// public void undo() throws DataException;
|
31 |
|
32 |
/**
|
33 |
* Re-does a command. Pops the REDO stack, executes the obtained command and puts it onto the UNDO stack.
|
34 |
*
|
35 |
* @throws DataException
|
36 |
*/
|
37 |
// public void redo() throws DataException;
|
38 |
// public Command getNextUndoCommand();
|
39 |
// public Command getNextRedoCommand();
|
40 |
/**
|
41 |
* Returns the number of elements in this Record.
|
42 |
*/
|
43 |
// public int size();
|
44 |
/*
|
45 |
* Returns the position of pointer in this Record.
|
46 |
*/
|
47 |
// public int getPointer();
|
48 |
/*
|
49 |
* Insert and update the position of pointer in this Record.
|
50 |
*/
|
51 |
// public void setPointer(int pos);
|
52 |
|
53 |
/**
|
54 |
* Returns the list of commands in the UNDO stack
|
55 |
*
|
56 |
* @return list of Command in the UNDO stack
|
57 |
*/
|
58 |
public List getUndoCommands(); |
59 |
|
60 |
/**
|
61 |
* Returns the list of command in the REDO stack
|
62 |
*
|
63 |
* @return list of Command in the REDO stack
|
64 |
*/
|
65 |
public List getRedoCommands(); |
66 |
// public boolean moreUndoCommands();
|
67 |
// public boolean moreRedoCommands();
|
68 |
// public List getCommandsFeatureDeleted();
|
69 |
// public List getCommandsFeatureUpdated();
|
70 |
// public List getCommandsFeatureInserted();
|
71 |
// public void insert(Object obj);
|
72 |
// public void delete(Object obj);
|
73 |
// public void update(Object obj, Object oldObj);
|
74 |
// public List getCommandsAttributeDeleted();
|
75 |
// public List getCommandsAttributeUpdated();
|
76 |
// public List getCommandsAttributeInserted();
|
77 |
// public void startComplex();
|
78 |
// public void endComplex(String description);
|
79 |
} |