Revision 24403 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/CommandsRecord.java

View differences:

CommandsRecord.java
8 8

  
9 9

  
10 10
/**
11
 * Record to stack the commands.
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.
12 13
 *
13 14
 * @author Vicente Caballero Navarro
14 15
 */
15 16
public interface CommandsRecord extends WeakReferencingObservable{
16 17
	/**
17
	 *  Removes all of the elements from this Record.
18
	 *
18
	 *  Removes all the elements from this Record.
19 19
	 */
20 20
	public void clear();
21 21
	/**
......
23 23
	 */
24 24
	// public void add( Command command);
25 25
    /**
26
     * Deshace, ejecutando el ?ltimo comando de la pila de undos y cambiandolo
27
     * de esta pila a la de redos.
26
     * Undoes a command. Pops the UNDO stack, executes the obtained command and puts it onto the REDO stack.
28 27
     * 
29 28
     * @throws DataException
30 29
     */
31 30
	public void undo() throws DataException;
32 31

  
33 32
    /**
34
     * Rehacer, ejecuta el ?ltimo comando apilado en redos y lo cambia a la pila
35
     * de undos.
33
     * Re-does a command. Pops the REDO stack, executes the obtained command and puts it onto the UNDO stack.
36 34
     * 
37 35
     * @throws DataException
38 36
     */
......
43 41
	 * Returns the number of elements in this Record.
44 42
	 */
45 43
	public int size();
46
	/**
44
	/*
47 45
	 * Returns the position of pointer in this Record.
48 46
	 */
49 47
	// public int getPointer();
50
	/**
48
	/*
51 49
	 * Insert and update the position of pointer in this Record.
52 50
	 */
53 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
	 */
54 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
	 */
55 65
	public List getRedoCommands();
56 66
	// public boolean moreUndoCommands();
57 67
	// public boolean moreRedoCommands();

Also available in: Unified diff