Package com.inductiveautomation.snap.ui
Class UIEvent
java.lang.Object
com.inductiveautomation.snap.ui.UIEvent
- Direct Known Subclasses:
- SwingEvent
Represents a UI event sent to a UIOwner.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionUIEvent()Creates a new UIEvent.UIEvent(Object anEvent, Object aTarget, UIEvent.Type aType) Creates a new UIEvent with given event, event target and property name.
- 
Method SummaryModifier and TypeMethodDescriptionvoidconsume()Consumes the event.booleanReturns whether widget is equal to given name.Returns the Boolean value encapsulated by the event widget.booleanReturns the Boolean value encapsulated by the event widget.getEvent()Returns the platform specific event, if available.<T> TReturns the platform specific event as given class.Returns the Float value encapsulated by the event widget.abstract UIHelperReturns the UI Helper for event target.Returns the Integer value encapsulated by the event widget.getName()Returns the name of the event (or the name of the Event Target).protected abstract StringReturns whether event is property change.Returns the property name.intReturns the selected index for encapsulated widget.Returns the selected item for encapsulated widget.<T> TgetSelectedItem(Class<T> aClass) Returns the selected item for encapsulated widget.Returns the String value encapsulated by the event widget.Returns the event target.<T> TReturns the target of the event as given class.getText()Returns text for encapsulated widget.booleanReturns whether this event triggers a UI reset.getType()Returns the event type.protected abstract UIEvent.TypeReturns the UIEventType from given Event object.getValue()Returns the value encapsulated by the event widget.booleanReturns whether event represents component with given name.booleanReturns whether event is action event.booleanReturns whether event is drop event.booleanReturns whether event is drag enter.booleanReturns whether event is any drag event.booleanReturns whether event is drag exit.booleanReturns whether event is DragGesture event.booleanReturns whether event is drag over.booleanReturns whether event is DragSourceEnd event.booleanReturns whether event is DragSourceEnter event.booleanReturns whether event is DragSourceExit event.booleanReturns whether event is FocusGained.booleanReturns whether event is FocusLost.booleanReturns whether event is key event.booleanReturns whether event is key finished.booleanReturns whether event is key pressed.booleanReturns whether event is key released.booleanReturns whether event is key typed.booleanReturns whether event is mouse clicked.booleanReturns whether event is mouse dragged.booleanReturns whether event is mouse entered.booleanReturns whether event is mouse event.booleanReturns whether event is mouse exited.booleanReturns whether event is mouse finished.booleanReturns whether event is mouse moved.booleanReturns whether event is mouse pressed.booleanReturns whether event is mouse released.booleanReturns whether event is property change.booleanReturns whether event is selection event.booleanReturns whether event is timer event.booleanReturns whether event widget or internal event is currently in a continuous state of change.booleanReturns whether event is value change event.protected voidSets the platform specific event, if available.voidReturns the name of the event (or the name of the Event Target).protected voidSets the event target.voidsetTriggersReset(boolean aValue) Sets whether this event triggers a UI reset.voidsetType(UIEvent.Type aType) Sets the event type.voidSets the value encapsulated by the event widget.toString()Standard toString implementation.
- 
Constructor Details- 
UIEventpublic UIEvent()Creates a new UIEvent.
- 
UIEventCreates a new UIEvent with given event, event target and property name.
 
- 
- 
Method Details- 
getNameReturns the name of the event (or the name of the Event Target).
- 
setNameReturns the name of the event (or the name of the Event Target).
- 
getEventReturns the platform specific event, if available.
- 
setEventSets the platform specific event, if available.
- 
getEventReturns the platform specific event as given class.
- 
getTypeReturns the event type.
- 
setTypeSets the event type.
- 
getTypeReturns the UIEventType from given Event object.
- 
getTargetReturns the event target.
- 
setTargetSets the event target.
- 
getTargetReturns the target of the event as given class.
- 
isValueChangeEventpublic boolean isValueChangeEvent()Returns whether event is value change event.
- 
isPropertyChangeEventpublic boolean isPropertyChangeEvent()Returns whether event is property change.
- 
getPropertyChangePropertyNameReturns whether event is property change.
- 
getPropertyNameReturns the property name.
- 
isActionEventpublic boolean isActionEvent()Returns whether event is action event.
- 
isSelectionEventpublic boolean isSelectionEvent()Returns whether event is selection event.
- 
isTimerEventpublic boolean isTimerEvent()Returns whether event is timer event.
- 
isMouseEventpublic boolean isMouseEvent()Returns whether event is mouse event.
- 
isMousePressedpublic boolean isMousePressed()Returns whether event is mouse pressed.
- 
isMouseDraggedpublic boolean isMouseDragged()Returns whether event is mouse dragged.
- 
isMouseReleasedpublic boolean isMouseReleased()Returns whether event is mouse released.
- 
isMouseClickedpublic boolean isMouseClicked()Returns whether event is mouse clicked.
- 
isMouseFinishedpublic boolean isMouseFinished()Returns whether event is mouse finished.
- 
isMouseEnteredpublic boolean isMouseEntered()Returns whether event is mouse entered.
- 
isMouseMovedpublic boolean isMouseMoved()Returns whether event is mouse moved.
- 
isMouseExitedpublic boolean isMouseExited()Returns whether event is mouse exited.
- 
isKeyEventpublic boolean isKeyEvent()Returns whether event is key event.
- 
isKeyPressedpublic boolean isKeyPressed()Returns whether event is key pressed.
- 
isKeyReleasedpublic boolean isKeyReleased()Returns whether event is key released.
- 
isKeyTypedpublic boolean isKeyTyped()Returns whether event is key typed.
- 
isKeyFinishedpublic boolean isKeyFinished()Returns whether event is key finished.
- 
isDragEventpublic boolean isDragEvent()Returns whether event is any drag event.
- 
isDragEnterpublic boolean isDragEnter()Returns whether event is drag enter.
- 
isDragOverpublic boolean isDragOver()Returns whether event is drag over.
- 
isDragExitpublic boolean isDragExit()Returns whether event is drag exit.
- 
isDragDropEventpublic boolean isDragDropEvent()Returns whether event is drop event.
- 
isDragGesturepublic boolean isDragGesture()Returns whether event is DragGesture event.
- 
isDragSourceEnterpublic boolean isDragSourceEnter()Returns whether event is DragSourceEnter event.
- 
isDragSourceExitpublic boolean isDragSourceExit()Returns whether event is DragSourceExit event.
- 
isDragSourceEndpublic boolean isDragSourceEnd()Returns whether event is DragSourceEnd event.
- 
isFocusGainedpublic boolean isFocusGained()Returns whether event is FocusGained.
- 
isFocusLostpublic boolean isFocusLost()Returns whether event is FocusLost.
- 
isReturns whether event represents component with given name.
- 
equalsReturns whether widget is equal to given name.
- 
getValueReturns the value encapsulated by the event widget.
- 
setValueSets the value encapsulated by the event widget.
- 
getStringValueReturns the String value encapsulated by the event widget.
- 
getBoolValuepublic boolean getBoolValue()Returns the Boolean value encapsulated by the event widget.
- 
getBooleanValueReturns the Boolean value encapsulated by the event widget.
- 
getIntValueReturns the Integer value encapsulated by the event widget.
- 
getFloatValueReturns the Float value encapsulated by the event widget.
- 
getTextReturns text for encapsulated widget.
- 
getSelectedIndexpublic int getSelectedIndex()Returns the selected index for encapsulated widget.
- 
getSelectedItemReturns the selected item for encapsulated widget.
- 
getSelectedItemReturns the selected item for encapsulated widget.
- 
getHelperReturns the UI Helper for event target.
- 
isValueAdjustingpublic boolean isValueAdjusting()Returns whether event widget or internal event is currently in a continuous state of change.
- 
getTriggersResetpublic boolean getTriggersReset()Returns whether this event triggers a UI reset.
- 
setTriggersResetpublic void setTriggersReset(boolean aValue) Sets whether this event triggers a UI reset.
- 
consumepublic void consume()Consumes the event.
- 
toStringStandard toString implementation.
 
-