001: package net.sourceforge.squirrel_sql.client.session;
002:
003: import java.awt.Font;
004: import java.awt.event.MouseListener;
005:
006: import javax.swing.Action;
007: import javax.swing.JMenu;
008: import javax.swing.JMenuItem;
009: import javax.swing.JTextArea;
010: import javax.swing.event.CaretListener;
011: import javax.swing.event.UndoableEditListener;
012: import javax.swing.text.JTextComponent;
013: import javax.swing.undo.UndoManager;
014:
015: import net.sourceforge.squirrel_sql.fw.id.IIdentifier;
016:
017: public class MockSQLEntryPanel implements ISQLEntryPanel {
018:
019: ISession _session = null;
020:
021: public MockSQLEntryPanel(ISession session) {
022: _session = session;
023: }
024:
025: public void addCaretListener(CaretListener lis) {
026: // TODO Auto-generated method stub
027:
028: }
029:
030: public void addMouseListener(MouseListener lis) {
031: // TODO Auto-generated method stub
032:
033: }
034:
035: public void addSQLTokenListener(SQLTokenListener tl) {
036: // TODO Auto-generated method stub
037:
038: }
039:
040: public void addToSQLEntryAreaMenu(JMenu menu) {
041: // TODO Auto-generated method stub
042:
043: }
044:
045: public JMenuItem addToSQLEntryAreaMenu(Action action) {
046: return new JMenuItem();
047: }
048:
049: public void addUndoableEditListener(UndoableEditListener listener) {
050: // TODO Auto-generated method stub
051:
052: }
053:
054: public void appendText(String text) {
055: // TODO Auto-generated method stub
056:
057: }
058:
059: public void appendText(String sqlScript, boolean select) {
060: // TODO Auto-generated method stub
061:
062: }
063:
064: public void dispose() {
065: // TODO Auto-generated method stub
066:
067: }
068:
069: public int[] getBoundsOfSQLToBeExecuted() {
070: // TODO Auto-generated method stub
071: return null;
072: }
073:
074: public int getCaretLineNumber() {
075: // TODO Auto-generated method stub
076: return 0;
077: }
078:
079: public int getCaretLinePosition() {
080: // TODO Auto-generated method stub
081: return 0;
082: }
083:
084: public int getCaretPosition() {
085: // TODO Auto-generated method stub
086: return 0;
087: }
088:
089: public boolean getDoesTextComponentHaveScroller() {
090: // TODO Auto-generated method stub
091: return false;
092: }
093:
094: public String getSQLToBeExecuted() {
095: // TODO Auto-generated method stub
096: return null;
097: }
098:
099: public String getSelectedText() {
100: // TODO Auto-generated method stub
101: return null;
102: }
103:
104: public int getSelectionEnd() {
105: // TODO Auto-generated method stub
106: return 0;
107: }
108:
109: public int getSelectionStart() {
110: // TODO Auto-generated method stub
111: return 0;
112: }
113:
114: public String getText() {
115: // TODO Auto-generated method stub
116: return null;
117: }
118:
119: public JTextComponent getTextComponent() {
120: return new JTextArea();
121: }
122:
123: public boolean hasFocus() {
124: // TODO Auto-generated method stub
125: return false;
126: }
127:
128: public boolean hasOwnUndoableManager() {
129: // TODO Auto-generated method stub
130: return false;
131: }
132:
133: public void moveCaretToNextSQLBegin() {
134: // TODO Auto-generated method stub
135:
136: }
137:
138: public void moveCaretToPreviousSQLBegin() {
139: // TODO Auto-generated method stub
140:
141: }
142:
143: public void removeCaretListener(CaretListener lis) {
144: // TODO Auto-generated method stub
145:
146: }
147:
148: public void removeMouseListener(MouseListener lis) {
149: // TODO Auto-generated method stub
150:
151: }
152:
153: public void removeSQLTokenListener(SQLTokenListener tl) {
154: // TODO Auto-generated method stub
155:
156: }
157:
158: public void removeUndoableEditListener(UndoableEditListener listener) {
159: // TODO Auto-generated method stub
160:
161: }
162:
163: public void replaceSelection(String sqlScript) {
164: // TODO Auto-generated method stub
165:
166: }
167:
168: public void requestFocus() {
169: // TODO Auto-generated method stub
170:
171: }
172:
173: public void selectCurrentSql() {
174: // TODO Auto-generated method stub
175:
176: }
177:
178: public void setCaretPosition(int pos) {
179: // TODO Auto-generated method stub
180:
181: }
182:
183: public void setFont(Font font) {
184: // TODO Auto-generated method stub
185:
186: }
187:
188: public void setSelectionEnd(int pos) {
189: // TODO Auto-generated method stub
190:
191: }
192:
193: public void setSelectionStart(int pos) {
194: // TODO Auto-generated method stub
195:
196: }
197:
198: public void setTabSize(int tabSize) {
199: // TODO Auto-generated method stub
200:
201: }
202:
203: public void setText(String sqlScript) {
204: // TODO Auto-generated method stub
205:
206: }
207:
208: public void setText(String sqlScript, boolean select) {
209: // TODO Auto-generated method stub
210:
211: }
212:
213: public void setUndoActions(Action undo, Action redo) {
214: // TODO Auto-generated method stub
215:
216: }
217:
218: public void setUndoManager(UndoManager manager) {
219: // TODO Auto-generated method stub
220:
221: }
222:
223: public IIdentifier getIdentifier() {
224: // TODO Auto-generated method stub
225: return null;
226: }
227:
228: /**
229: * @see net.sourceforge.squirrel_sql.client.session.ISQLEntryPanel#getSession()
230: */
231: public ISession getSession() {
232: // TODO Auto-generated method stub
233: return null;
234: }
235:
236: }
|