PageRenderTime 165ms CodeModel.GetById 159ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/org/gjt/sp/jedit/buffer/BufferChangeAdapter.java

#
Java | 88 lines | 13 code | 6 blank | 69 comment | 0 complexity | 791b390c8f5494df95a5e289abd7ad0d MD5 | raw file
 1/*
 2 * BufferChangeListener.java - Buffer listener adapter
 3 * :tabSize=8:indentSize=8:noTabs=false:
 4 * :folding=explicit:collapseFolds=1:
 5 *
 6 * Copyright (C) 2001, 2002 Slava Pestov
 7 *
 8 * This program is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 */
22
23package org.gjt.sp.jedit.buffer;
24
25import org.gjt.sp.jedit.Buffer;
26
27/**
28 * An adapter you can subclass to avoid having to implement all the methods
29 * of the <code>BufferChangeListener</code> interface.
30 * @author Slava Pestov
31 * @version $Id: BufferChangeAdapter.java 4026 2002-02-15 03:03:16Z spestov $
32 * @since jEdit 4.0pre1
33 */
34public abstract class BufferChangeAdapter implements BufferChangeListener
35{
36	//{{{ foldLevelChanged() method
37	/**
38	 * Called when line fold levels change.
39	 * @param buffer The buffer in question
40	 * @param start The start line number
41	 * @param end The end line number
42	 * @since jEdit 4.0pre1
43	 */
44	public void foldLevelChanged(Buffer buffer, int start, int end)
45	{
46	} //}}}
47
48	//{{{ contentInserted() method
49	/**
50	 * Called when text is inserted into the buffer.
51	 * @param buffer The buffer in question
52	 * @param startLine The first line
53	 * @param offset The start offset, from the beginning of the buffer
54	 * @param numLines The number of lines inserted
55	 * @param length The number of characters inserted
56	 * @since jEdit 4.0pre1
57	 */
58	public void contentInserted(Buffer buffer, int startLine, int offset,
59		int numLines, int length) {}
60	//}}}
61
62	//{{{ contentRemoved() method
63	/**
64	 * Called when text is removed from the buffer.
65	 * @param buffer The buffer in question
66	 * @param startLine The first line
67	 * @param offset The start offset, from the beginning of the buffer
68	 * @param numLines The number of lines removed
69	 * @param length The number of characters removed
70	 * @since jEdit 4.0pre1
71	 */
72	public void contentRemoved(Buffer buffer, int startLine, int offset,
73		int numLines, int length) {}
74	//}}}
75
76	//{{{ transactionComplete() method
77	/**
78	 * Called after an undo or compound edit has finished. The text area
79	 * uses this event to queue up and collapse cleanup operations so they
80	 * are only run once during a long transaction (such as a "Replace All"
81	 * operation.)
82	 *
83	 * @param buffer The buffer in question
84	 * @since jEdit 4.0pre6
85	 */
86	public void transactionComplete(Buffer buffer) {}
87	//}}}
88}