|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.event.Event org.zkoss.zk.ui.event.SelectionEvent
public class SelectionEvent
Represents an event cause by user's the active selection which is a highlighted block of text.
Constructor Summary | |
---|---|
SelectionEvent(java.lang.String name,
Component target,
int start,
int end,
java.lang.String txt)
Constructs a selection event. |
Method Summary | |
---|---|
int |
getEnd()
Returns the selected text's end position. |
java.lang.String |
getSelectedText()
Returns the selected text contained in this text. |
static SelectionEvent |
getSelectionEvent(AuRequest request)
Converts an AU request to a selection event. |
int |
getStart()
Returns the selected text's start position. |
Methods inherited from class org.zkoss.zk.ui.event.Event |
---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SelectionEvent(java.lang.String name, Component target, int start, int end, java.lang.String txt)
Method Detail |
---|
public static final SelectionEvent getSelectionEvent(AuRequest request)
public int getEnd()
public int getStart()
public java.lang.String getSelectedText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |