01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.event;
14:
15: import java.util.EventListener;
16:
17: /**
18: * Listener on {@link org.wings.STextComponent}s to be notified on updates on the components text (document).
19: *
20: * @author hengels
21: */
22: public interface SDocumentListener extends EventListener {
23: /**
24: * Gives notification that there was an insert into the document. The
25: * range given by the DocumentEvent bounds the freshly inserted region.
26: *
27: * @param e the document event
28: */
29: void insertUpdate(SDocumentEvent e);
30:
31: /**
32: * Gives notification that a portion of the document has been
33: * removed. The range is given in terms of what the view last
34: * saw (that is, before updating sticky positions).
35: *
36: * @param e the document event
37: */
38: void removeUpdate(SDocumentEvent e);
39:
40: /**
41: * Gives notification that an attribute or set of attributes changed for styled
42: * documents.
43: * <p><b>NOTE:</b> This is for swing compatibility. Currently you will not
44: * receive this event at any time inside web contexts!
45: *
46: * @param e the document event
47: */
48: void changedUpdate(SDocumentEvent e);
49: }
|