public abstract class UIEvent
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UIEvent.Type
Types for events.
|
Constructor and Description |
---|
UIEvent()
Creates a new UIEvent.
|
UIEvent(java.lang.Object anEvent,
java.lang.Object aTarget,
UIEvent.Type aType)
Creates a new UIEvent with given event, event target and property name.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Consumes the event.
|
boolean |
equals(java.lang.String aName)
Returns whether widget is equal to given name.
|
java.lang.Boolean |
getBooleanValue()
Returns the Boolean value encapsulated by the event widget.
|
boolean |
getBoolValue()
Returns the Boolean value encapsulated by the event widget.
|
java.lang.Object |
getEvent()
Returns the platform specific event, if available.
|
<T> T |
getEvent(java.lang.Class<T> aClass)
Returns the platform specific event as given class.
|
java.lang.Float |
getFloatValue()
Returns the Float value encapsulated by the event widget.
|
abstract UIHelper |
getHelper()
Returns the UI Helper for event target.
|
java.lang.Integer |
getIntValue()
Returns the Integer value encapsulated by the event widget.
|
java.lang.String |
getName()
Returns the name of the event (or the name of the Event Target).
|
protected abstract java.lang.String |
getPropertyChangePropertyName()
Returns whether event is property change.
|
java.lang.String |
getPropertyName()
Returns the property name.
|
int |
getSelectedIndex()
Returns the selected index for encapsulated widget.
|
java.lang.Object |
getSelectedItem()
Returns the selected item for encapsulated widget.
|
<T> T |
getSelectedItem(java.lang.Class<T> aClass)
Returns the selected item for encapsulated widget.
|
java.lang.String |
getStringValue()
Returns the String value encapsulated by the event widget.
|
java.lang.Object |
getTarget()
Returns the event target.
|
<T> T |
getTarget(java.lang.Class<T> aClass)
Returns the target of the event as given class.
|
java.lang.String |
getText()
Returns text for encapsulated widget.
|
boolean |
getTriggersReset()
Returns whether this event triggers a UI reset.
|
UIEvent.Type |
getType()
Returns the event type.
|
protected abstract UIEvent.Type |
getType(java.lang.Object anEvent)
Returns the UIEventType from given Event object.
|
java.lang.Object |
getValue()
Returns the value encapsulated by the event widget.
|
boolean |
is(java.lang.String aName)
Returns whether event represents component with given name.
|
boolean |
isActionEvent()
Returns whether event is action event.
|
boolean |
isDragDropEvent()
Returns whether event is drop event.
|
boolean |
isDragEnter()
Returns whether event is drag enter.
|
boolean |
isDragEvent()
Returns whether event is any drag event.
|
boolean |
isDragExit()
Returns whether event is drag exit.
|
boolean |
isDragGesture()
Returns whether event is DragGesture event.
|
boolean |
isDragOver()
Returns whether event is drag over.
|
boolean |
isDragSourceEnd()
Returns whether event is DragSourceEnd event.
|
boolean |
isDragSourceEnter()
Returns whether event is DragSourceEnter event.
|
boolean |
isDragSourceExit()
Returns whether event is DragSourceExit event.
|
boolean |
isFocusGained()
Returns whether event is FocusGained.
|
boolean |
isFocusLost()
Returns whether event is FocusLost.
|
boolean |
isKeyEvent()
Returns whether event is key event.
|
boolean |
isKeyFinished()
Returns whether event is key finished.
|
boolean |
isKeyPressed()
Returns whether event is key pressed.
|
boolean |
isKeyReleased()
Returns whether event is key released.
|
boolean |
isKeyTyped()
Returns whether event is key typed.
|
boolean |
isMouseClicked()
Returns whether event is mouse clicked.
|
boolean |
isMouseDragged()
Returns whether event is mouse dragged.
|
boolean |
isMouseEntered()
Returns whether event is mouse entered.
|
boolean |
isMouseEvent()
Returns whether event is mouse event.
|
boolean |
isMouseExited()
Returns whether event is mouse exited.
|
boolean |
isMouseFinished()
Returns whether event is mouse finished.
|
boolean |
isMouseMoved()
Returns whether event is mouse moved.
|
boolean |
isMousePressed()
Returns whether event is mouse pressed.
|
boolean |
isMouseReleased()
Returns whether event is mouse released.
|
boolean |
isPropertyChangeEvent()
Returns whether event is property change.
|
boolean |
isSelectionEvent()
Returns whether event is selection event.
|
boolean |
isTimerEvent()
Returns whether event is timer event.
|
boolean |
isValueAdjusting()
Returns whether event widget or internal event is currently in a continuous state of change.
|
boolean |
isValueChangeEvent()
Returns whether event is value change event.
|
protected void |
setEvent(java.lang.Object anEvent)
Sets the platform specific event, if available.
|
void |
setName(java.lang.String aName)
Returns the name of the event (or the name of the Event Target).
|
protected void |
setTarget(java.lang.Object aTarget)
Sets the event target.
|
void |
setTriggersReset(boolean aValue)
Sets whether this event triggers a UI reset.
|
void |
setType(UIEvent.Type aType)
Sets the event type.
|
void |
setValue(java.lang.Object aValue)
Sets the value encapsulated by the event widget.
|
java.lang.String |
toString()
Standard toString implementation.
|
public UIEvent()
public UIEvent(java.lang.Object anEvent, java.lang.Object aTarget, UIEvent.Type aType)
public java.lang.String getName()
public void setName(java.lang.String aName)
public java.lang.Object getEvent()
protected void setEvent(java.lang.Object anEvent)
public <T> T getEvent(java.lang.Class<T> aClass)
public UIEvent.Type getType()
public void setType(UIEvent.Type aType)
protected abstract UIEvent.Type getType(java.lang.Object anEvent)
public java.lang.Object getTarget()
protected void setTarget(java.lang.Object aTarget)
public <T> T getTarget(java.lang.Class<T> aClass)
public boolean isValueChangeEvent()
public boolean isPropertyChangeEvent()
protected abstract java.lang.String getPropertyChangePropertyName()
public java.lang.String getPropertyName()
public boolean isActionEvent()
public boolean isSelectionEvent()
public boolean isTimerEvent()
public boolean isMouseEvent()
public boolean isMousePressed()
public boolean isMouseDragged()
public boolean isMouseReleased()
public boolean isMouseClicked()
public boolean isMouseFinished()
public boolean isMouseEntered()
public boolean isMouseMoved()
public boolean isMouseExited()
public boolean isKeyEvent()
public boolean isKeyPressed()
public boolean isKeyReleased()
public boolean isKeyTyped()
public boolean isKeyFinished()
public boolean isDragEvent()
public boolean isDragEnter()
public boolean isDragOver()
public boolean isDragExit()
public boolean isDragDropEvent()
public boolean isDragGesture()
public boolean isDragSourceEnter()
public boolean isDragSourceExit()
public boolean isDragSourceEnd()
public boolean isFocusGained()
public boolean isFocusLost()
public boolean is(java.lang.String aName)
public boolean equals(java.lang.String aName)
public java.lang.Object getValue()
public void setValue(java.lang.Object aValue)
public java.lang.String getStringValue()
public boolean getBoolValue()
public java.lang.Boolean getBooleanValue()
public java.lang.Integer getIntValue()
public java.lang.Float getFloatValue()
public java.lang.String getText()
public int getSelectedIndex()
public java.lang.Object getSelectedItem()
public <T> T getSelectedItem(java.lang.Class<T> aClass)
public abstract UIHelper getHelper()
public boolean isValueAdjusting()
public boolean getTriggersReset()
public void setTriggersReset(boolean aValue)
public void consume()
public java.lang.String toString()
toString
in class java.lang.Object