svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / fmap / data / feature / CommandsRecord.java @ 24346
History | View | Annotate | Download (1.96 KB)
1 |
package org.gvsig.fmap.data.feature; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
import org.gvsig.fmap.data.exceptions.DataException; |
6 |
import org.gvsig.tools.observer.WeakReferencingObservable; |
7 |
|
8 |
|
9 |
|
10 |
/**
|
11 |
* Record to stack the commands.
|
12 |
*
|
13 |
* @author Vicente Caballero Navarro
|
14 |
*/
|
15 |
public interface CommandsRecord extends WeakReferencingObservable{ |
16 |
/**
|
17 |
* Removes all of the elements from this Record.
|
18 |
*
|
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 |
* Deshace, ejecutando el ?ltimo comando de la pila de undos y cambiandolo
|
27 |
* de esta pila a la de redos.
|
28 |
*
|
29 |
* @throws DataException
|
30 |
*/
|
31 |
public void undo() throws DataException; |
32 |
|
33 |
/**
|
34 |
* Rehacer, ejecuta el ?ltimo comando apilado en redos y lo cambia a la pila
|
35 |
* de undos.
|
36 |
*
|
37 |
* @throws DataException
|
38 |
*/
|
39 |
public void redo() throws DataException; |
40 |
// public Command getNextUndoCommand();
|
41 |
// public Command getNextRedoCommand();
|
42 |
/**
|
43 |
* Returns the number of elements in this Record.
|
44 |
*/
|
45 |
public int size(); |
46 |
/**
|
47 |
* Returns the position of pointer in this Record.
|
48 |
*/
|
49 |
// public int getPointer();
|
50 |
/**
|
51 |
* Insert and update the position of pointer in this Record.
|
52 |
*/
|
53 |
// public void setPointer(int pos);
|
54 |
public List getUndoCommands(); |
55 |
public List getRedoCommands(); |
56 |
// public boolean moreUndoCommands();
|
57 |
// public boolean moreRedoCommands();
|
58 |
// public List getCommandsFeatureDeleted();
|
59 |
// public List getCommandsFeatureUpdated();
|
60 |
// public List getCommandsFeatureInserted();
|
61 |
// public void insert(Object obj);
|
62 |
// public void delete(Object obj);
|
63 |
// public void update(Object obj, Object oldObj);
|
64 |
// public List getCommandsAttributeDeleted();
|
65 |
// public List getCommandsAttributeUpdated();
|
66 |
// public List getCommandsAttributeInserted();
|
67 |
// public void startComplex();
|
68 |
// public void endComplex(String description);
|
69 |
} |