1 |
/* AbstractTableModel.java -- |
/* UndoableEditSupport.java -- |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
45 |
* UndoableEditSupport |
* UndoableEditSupport |
46 |
* @author Andrew Selkirk |
* @author Andrew Selkirk |
47 |
*/ |
*/ |
48 |
public class UndoableEditSupport { |
public class UndoableEditSupport |
49 |
|
{ |
50 |
|
|
51 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
52 |
// Variables -------------------------------------------------- |
// Variables -------------------------------------------------- |
53 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
54 |
|
|
55 |
/** |
/** |
56 |
* updateLevel |
* updateLevel |
57 |
*/ |
*/ |
58 |
protected int updateLevel; |
protected int updateLevel; |
59 |
|
|
60 |
/** |
/** |
61 |
* compoundEdit |
* compoundEdit |
62 |
*/ |
*/ |
63 |
protected CompoundEdit compoundEdit; |
protected CompoundEdit compoundEdit; |
64 |
|
|
65 |
/** |
/** |
66 |
* listeners |
* listeners |
67 |
*/ |
*/ |
68 |
protected Vector listeners = new Vector(); |
protected Vector listeners = new Vector(); |
69 |
|
|
70 |
/** |
/** |
71 |
* realSource |
* realSource |
72 |
*/ |
*/ |
73 |
protected Object realSource; |
protected Object realSource; |
74 |
|
|
75 |
|
|
76 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
77 |
// Initialization --------------------------------------------- |
// Initialization --------------------------------------------- |
78 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
79 |
|
|
80 |
/** |
/** |
81 |
* Constructor UndoableEditSupport |
* Constructor UndoableEditSupport |
82 |
*/ |
*/ |
83 |
public UndoableEditSupport() { |
public UndoableEditSupport() |
84 |
// TODO |
{ |
85 |
} // UndoableEditSupport() |
// TODO |
86 |
|
} |
87 |
/** |
|
88 |
* Constructor UndoableEditSupport |
/** |
89 |
* @param object TODO |
* Constructor UndoableEditSupport |
90 |
*/ |
* @param object TODO |
91 |
public UndoableEditSupport(Object object) { |
*/ |
92 |
realSource = object; |
public UndoableEditSupport(Object object) |
93 |
} // UndoableEditSupport() |
{ |
94 |
|
realSource = object; |
95 |
|
} |
96 |
//------------------------------------------------------------- |
|
97 |
// Methods ---------------------------------------------------- |
|
98 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
99 |
|
// Methods ---------------------------------------------------- |
100 |
/** |
//------------------------------------------------------------- |
101 |
* toString |
|
102 |
* @returns String |
/** |
103 |
*/ |
* toString |
104 |
public String toString() { |
* @returns String |
105 |
return null; // TODO |
*/ |
106 |
} // toString() |
public String toString() |
107 |
|
{ |
108 |
/** |
return null; // TODO |
109 |
* addUndoableEditListener |
} |
110 |
* @param value0 TODO |
|
111 |
*/ |
/** |
112 |
public synchronized void addUndoableEditListener(UndoableEditListener value0) { |
* addUndoableEditListener |
113 |
// TODO |
* @param value0 TODO |
114 |
} // addUndoableEditListener() |
*/ |
115 |
|
public synchronized void addUndoableEditListener(UndoableEditListener value0) |
116 |
/** |
{ |
117 |
* removeUndoableEditListener |
// TODO |
118 |
* @param value0 TODO |
} |
119 |
*/ |
|
120 |
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { |
/** |
121 |
// TODO |
* removeUndoableEditListener |
122 |
} // removeUndoableEditListener() |
* @param value0 TODO |
123 |
|
*/ |
124 |
/** |
public synchronized void removeUndoableEditListener(UndoableEditListener value0) |
125 |
* _postEdit |
{ |
126 |
* @param value0 TODO |
// TODO |
127 |
*/ |
} |
128 |
protected void _postEdit(UndoableEdit value0) { |
|
129 |
// TODO |
/** |
130 |
} // _postEdit() |
* _postEdit |
131 |
|
* @param value0 TODO |
132 |
/** |
*/ |
133 |
* postEdit |
protected void _postEdit(UndoableEdit value0) |
134 |
* @param value0 TODO |
{ |
135 |
*/ |
// TODO |
136 |
public synchronized void postEdit(UndoableEdit value0) { |
} |
137 |
// TODO |
|
138 |
} // postEdit() |
/** |
139 |
|
* postEdit |
140 |
/** |
* @param value0 TODO |
141 |
* getUpdateLevel |
*/ |
142 |
* @returns int |
public synchronized void postEdit(UndoableEdit value0) |
143 |
*/ |
{ |
144 |
public int getUpdateLevel() { |
// TODO |
145 |
return 0; // TODO |
} |
146 |
} // getUpdateLevel() |
|
147 |
|
/** |
148 |
/** |
* getUpdateLevel |
149 |
* beginUpdate |
* @returns int |
150 |
*/ |
*/ |
151 |
public synchronized void beginUpdate() { |
public int getUpdateLevel() |
152 |
// TODO |
{ |
153 |
} // beginUpdate() |
return 0; // TODO |
154 |
|
} |
155 |
/** |
|
156 |
* createCompoundEdit |
/** |
157 |
* @returns CompoundEdit |
* beginUpdate |
158 |
*/ |
*/ |
159 |
protected CompoundEdit createCompoundEdit() { |
public synchronized void beginUpdate() |
160 |
return null; // TODO |
{ |
161 |
} // createCompoundEdit() |
// TODO |
162 |
|
} |
163 |
/** |
|
164 |
* endUpdate |
/** |
165 |
*/ |
* createCompoundEdit |
166 |
public synchronized void endUpdate() { |
* @returns CompoundEdit |
167 |
// TODO |
*/ |
168 |
} // endUpdate() |
protected CompoundEdit createCompoundEdit() |
169 |
|
{ |
170 |
|
return null; // TODO |
171 |
} // UndoableEditSupport |
} |
172 |
|
|
173 |
|
/** |
174 |
|
* endUpdate |
175 |
|
*/ |
176 |
|
public synchronized void endUpdate() |
177 |
|
{ |
178 |
|
// TODO |
179 |
|
} |
180 |
|
} |