Statistics
| Revision:

root / trunk / libraries / libDataSource / src / org / gvsig / data / commands / ICommandsRecord.java @ 19545

History | View | Annotate | Download (1.63 KB)

1
package org.gvsig.data.commands;
2

    
3
import java.util.AbstractList;
4
import java.util.List;
5

    
6
import org.gvsig.data.IObservable;
7

    
8

    
9

    
10
/**
11
 * Record to stack the commands.
12
 *
13
 * @author Vicente Caballero Navarro
14
 */
15
public interface ICommandsRecord extends IObservable{
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( ICommand command);
25
        /**
26
         * Deshace, ejecutando el ?ltimo comando de la pila de undos y
27
         * cambiandolo de esta pila a la de redos.
28
         */
29
        public void undo();
30
        /**
31
         * Rehacer, ejecuta el ?ltimo comando apilado en redos y
32
         * lo cambia a la pila de undos.
33
         */
34
        public void redo();
35
        public ICommand getNextUndoCommand();
36
        public ICommand getNextRedoCommand();
37
        /**
38
         * Returns the number of elements in this Record.
39
         */
40
        public int size();
41
        /**
42
         * Returns the position of pointer in this Record.
43
         */
44
        public int getPointer();
45
        /**
46
         * Insert and update the position of pointer in this Record.
47
         */
48
        public void setPointer(int pos);
49
        public List getUndoCommands();
50
        public List getRedoCommands();
51
        public boolean moreUndoCommands();
52
        public boolean moreRedoCommands();
53
        public List getCommandsFeatureDeleted();
54
        public List getCommandsFeatureUpdated();
55
        public List getCommandsFeatureInserted();
56
        public void insert(Object obj);
57
        public void delete(Object obj);
58
        public void update(Object obj, Object oldObj);
59
        public List getCommandsAttributeDeleted();
60
        public List getCommandsAttributeUpdated();
61
        public List getCommandsAttributeInserted();
62
}