| |
|
| java.awt.AWTEvent org.wings.event.SDocumentEvent
SDocumentEvent | public class SDocumentEvent extends AWTEvent (Code) | | A document event fire on any document change (i.e. change of a text in a
org.wings.STextField ).
author: hengels |
Field Summary | |
final public static int | CHANGE An style attribute changed. | final public static int | INSERT A string has been inserted. | final public static int | REMOVE A string has been removed. |
Method Summary | |
public SDocument | getDocument() Gets the source document of the change event. | public int | getLength() Returns the length of the change. | public int | getOffset() Returns the offset where the change in the document starts. | public int | getType() Gets the type of the Event. |
CHANGE | final public static int CHANGE(Code) | | An style attribute changed. DO NOT EXPECT CHARACTER CHANGES HERE! This event type will not occur inside wings!
|
INSERT | final public static int INSERT(Code) | | A string has been inserted.
|
REMOVE | final public static int REMOVE(Code) | | A string has been removed.
|
SDocumentEvent | public SDocumentEvent(SDocument document, int offset, int length, int type)(Code) | | |
getDocument | public SDocument getDocument()(Code) | | Gets the source document of the change event.
the document |
getLength | public int getLength()(Code) | | Returns the length of the change.
The length of the insert/remove |
getOffset | public int getOffset()(Code) | | Returns the offset where the change in the document starts.
Offset where remove/insert occured (0 = first letter) |
|
|
|