PageRenderTime 26ms CodeModel.GetById 22ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/org/gjt/sp/jedit/buffer/BufferChangeAdapter.java

#
Java | 75 lines | 12 code | 5 blank | 58 comment | 0 complexity | 19f7d7eb002e37cb57cb4d71e7366cec 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 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 3894 2001-11-12 09:28:48Z spestov $
32 * @since jEdit 4.0pre1
33 */
34public abstract class BufferChangeAdapter implements BufferChangeListener
35{
36	//{{{ foldLevelChanged() method
37	/**
38	 * Called when the fold level of a line changes.
39	 * @param buffer The buffer in question
40	 * @param line The line number
41	 * @param level The fold level
42	 * @since jEdit 4.0pre1
43	 */
44	public void foldLevelChanged(Buffer buffer, int line, int level)
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}