1 | /* AbstractTableModel.java --
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
6 | GNU Classpath is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | GNU Classpath is distributed in the hope that it will be useful, but
|
---|
12 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with GNU Classpath; see the file COPYING. If not, write to the
|
---|
18 | Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
---|
19 | 02111-1307 USA.
|
---|
20 |
|
---|
21 | Linking this library statically or dynamically with other modules is
|
---|
22 | making a combined work based on this library. Thus, the terms and
|
---|
23 | conditions of the GNU General Public License cover the whole
|
---|
24 | combination.
|
---|
25 |
|
---|
26 | As a special exception, the copyright holders of this library give you
|
---|
27 | permission to link this library with independent modules to produce an
|
---|
28 | executable, regardless of the license terms of these independent
|
---|
29 | modules, and to copy and distribute the resulting executable under
|
---|
30 | terms of your choice, provided that you also meet, for each linked
|
---|
31 | independent module, the terms and conditions of the license of that
|
---|
32 | module. An independent module is a module which is not derived from
|
---|
33 | or based on this library. If you modify this library, you may extend
|
---|
34 | this exception to your version of the library, but you are not
|
---|
35 | obligated to do so. If you do not wish to do so, delete this
|
---|
36 | exception statement from your version. */
|
---|
37 |
|
---|
38 | package javax.swing.undo;
|
---|
39 |
|
---|
40 | // Imports
|
---|
41 | import javax.swing.event.*;
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * UndoManager
|
---|
45 | * @author Andrew Selkirk
|
---|
46 | */
|
---|
47 | public class UndoManager extends CompoundEdit implements UndoableEditListener {
|
---|
48 |
|
---|
49 | //-------------------------------------------------------------
|
---|
50 | // Variables --------------------------------------------------
|
---|
51 | //-------------------------------------------------------------
|
---|
52 |
|
---|
53 | /**
|
---|
54 | * indexOfNextAdd
|
---|
55 | */
|
---|
56 | int indexOfNextAdd;
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * limit
|
---|
60 | */
|
---|
61 | int limit;
|
---|
62 |
|
---|
63 |
|
---|
64 | //-------------------------------------------------------------
|
---|
65 | // Initialization ---------------------------------------------
|
---|
66 | //-------------------------------------------------------------
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * Constructor UndoManager
|
---|
70 | */
|
---|
71 | public UndoManager() {
|
---|
72 | // TODO
|
---|
73 | } // UndoManager()
|
---|
74 |
|
---|
75 |
|
---|
76 | //-------------------------------------------------------------
|
---|
77 | // Methods ----------------------------------------------------
|
---|
78 | //-------------------------------------------------------------
|
---|
79 |
|
---|
80 | /**
|
---|
81 | * toString
|
---|
82 | * @returns String
|
---|
83 | */
|
---|
84 | public String toString() {
|
---|
85 | return null; // TODO
|
---|
86 | } // toString()
|
---|
87 |
|
---|
88 | /**
|
---|
89 | * end
|
---|
90 | */
|
---|
91 | public synchronized void end() {
|
---|
92 | // TODO
|
---|
93 | } // end()
|
---|
94 |
|
---|
95 | /**
|
---|
96 | * getLimit
|
---|
97 | * @returns int
|
---|
98 | */
|
---|
99 | public synchronized int getLimit() {
|
---|
100 | return 0; // TODO
|
---|
101 | } // getLimit()
|
---|
102 |
|
---|
103 | /**
|
---|
104 | * discardAllEdits
|
---|
105 | */
|
---|
106 | public synchronized void discardAllEdits() {
|
---|
107 | // TODO
|
---|
108 | } // discardAllEdits()
|
---|
109 |
|
---|
110 | /**
|
---|
111 | * trimForLimit
|
---|
112 | */
|
---|
113 | protected void trimForLimit() {
|
---|
114 | // TODO
|
---|
115 | } // trimForLimit()
|
---|
116 |
|
---|
117 | /**
|
---|
118 | * trimEdits
|
---|
119 | * @param value0 TODO
|
---|
120 | * @param value1 TODO
|
---|
121 | */
|
---|
122 | protected void trimEdits(int value0, int value1) {
|
---|
123 | // TODO
|
---|
124 | } // trimEdits()
|
---|
125 |
|
---|
126 | /**
|
---|
127 | * setLimit
|
---|
128 | * @param value0 TODO
|
---|
129 | */
|
---|
130 | public synchronized void setLimit(int value0) {
|
---|
131 | // TODO
|
---|
132 | } // setLimit()
|
---|
133 |
|
---|
134 | /**
|
---|
135 | * editToBeUndone
|
---|
136 | * @returns UndoableEdit
|
---|
137 | */
|
---|
138 | protected UndoableEdit editToBeUndone() {
|
---|
139 | return null; // TODO
|
---|
140 | } // editToBeUndone()
|
---|
141 |
|
---|
142 | /**
|
---|
143 | * editToBeRedone
|
---|
144 | * @returns UndoableEdit
|
---|
145 | */
|
---|
146 | protected UndoableEdit editToBeRedone() {
|
---|
147 | return null; // TODO
|
---|
148 | } // editToBeRedone()
|
---|
149 |
|
---|
150 | /**
|
---|
151 | * undoTo
|
---|
152 | * @param value0 TODO
|
---|
153 | * @exception CannotUndoException TODO
|
---|
154 | */
|
---|
155 | protected void undoTo(UndoableEdit value0) throws CannotUndoException {
|
---|
156 | // TODO
|
---|
157 | } // undoTo()
|
---|
158 |
|
---|
159 | /**
|
---|
160 | * redoTo
|
---|
161 | * @param value0 TODO
|
---|
162 | * @exception CannotRedoException TODO
|
---|
163 | */
|
---|
164 | protected void redoTo(UndoableEdit value0) throws CannotRedoException {
|
---|
165 | // TODO
|
---|
166 | } // redoTo()
|
---|
167 |
|
---|
168 | /**
|
---|
169 | * undoOrRedo
|
---|
170 | * @exception CannotRedoException TODO
|
---|
171 | * @exception CannotUndoException TODO
|
---|
172 | */
|
---|
173 | public synchronized void undoOrRedo() throws CannotRedoException, CannotUndoException {
|
---|
174 | // TODO
|
---|
175 | } // undoOrRedo()
|
---|
176 |
|
---|
177 | /**
|
---|
178 | * canUndoOrRedo
|
---|
179 | * @returns boolean
|
---|
180 | */
|
---|
181 | public synchronized boolean canUndoOrRedo() {
|
---|
182 | return false; // TODO
|
---|
183 | } // canUndoOrRedo()
|
---|
184 |
|
---|
185 | /**
|
---|
186 | * undo
|
---|
187 | * @exception CannotUndoException TODO
|
---|
188 | */
|
---|
189 | public synchronized void undo() throws CannotUndoException {
|
---|
190 | // TODO
|
---|
191 | } // undo()
|
---|
192 |
|
---|
193 | /**
|
---|
194 | * canUndo
|
---|
195 | * @returns boolean
|
---|
196 | */
|
---|
197 | public synchronized boolean canUndo() {
|
---|
198 | return false; // TODO
|
---|
199 | } // canUndo()
|
---|
200 |
|
---|
201 | /**
|
---|
202 | * redo
|
---|
203 | * @exception CannotRedoException TODO
|
---|
204 | */
|
---|
205 | public synchronized void redo() throws CannotRedoException {
|
---|
206 | // TODO
|
---|
207 | } // redo()
|
---|
208 |
|
---|
209 | /**
|
---|
210 | * canRedo
|
---|
211 | * @returns boolean
|
---|
212 | */
|
---|
213 | public synchronized boolean canRedo() {
|
---|
214 | return false; // TODO
|
---|
215 | } // canRedo()
|
---|
216 |
|
---|
217 | /**
|
---|
218 | * addEdit
|
---|
219 | * @param value0 TODO
|
---|
220 | * @returns boolean
|
---|
221 | */
|
---|
222 | public synchronized boolean addEdit(UndoableEdit value0) {
|
---|
223 | return false; // TODO
|
---|
224 | } // addEdit()
|
---|
225 |
|
---|
226 | /**
|
---|
227 | * getUndoOrRedoPresentationName
|
---|
228 | * @returns String
|
---|
229 | */
|
---|
230 | public synchronized String getUndoOrRedoPresentationName() {
|
---|
231 | return null; // TODO
|
---|
232 | } // getUndoOrRedoPresentationName()
|
---|
233 |
|
---|
234 | /**
|
---|
235 | * getUndoPresentationName
|
---|
236 | * @returns String
|
---|
237 | */
|
---|
238 | public synchronized String getUndoPresentationName() {
|
---|
239 | return null; // TODO
|
---|
240 | } // getUndoPresentationName()
|
---|
241 |
|
---|
242 | /**
|
---|
243 | * getRedoPresentationName
|
---|
244 | * @returns String
|
---|
245 | */
|
---|
246 | public synchronized String getRedoPresentationName() {
|
---|
247 | return null; // TODO
|
---|
248 | } // getRedoPresentationName()
|
---|
249 |
|
---|
250 | /**
|
---|
251 | * undoableEditHappened
|
---|
252 | * @param value0 TODO
|
---|
253 | */
|
---|
254 | public void undoableEditHappened(UndoableEditEvent value0) {
|
---|
255 | // TODO
|
---|
256 | } // undoableEditHappened()
|
---|
257 |
|
---|
258 |
|
---|
259 | } // UndoManager
|
---|