Class SwingEvent
java.lang.Object
com.inductiveautomation.snap.ui.UIEvent
com.inductiveautomation.snap.swing.SwingEvent
This class encapsulates information for UI changes, like button clicks, text field entries, list selections, etc..
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.inductiveautomation.snap.ui.UIEventUIEvent.Type
- 
Constructor SummaryConstructorsConstructorDescriptionSwingEvent(EventObject anEvent, JComponent aComponent) Creates a new SwingEvent.SwingEvent(EventObject anEvent, JComponent aComponent, UIEvent.Type aType) Creates a new RibsEvent.
- 
Method SummaryModifier and TypeMethodDescriptionvoidconsume()Consume event.Returns the AWT event.intReturns the click count for a mouse event.Returns the Color value encapsulated by the event widget.Returns the target component, if event target was component shape.Returns the drop event.Returns the drop event.Returns a Dragger for this event.Returns the drop gesture event.Returns the drop files, if drop files.Returns the drop string, if drop event.getEvent()Returns the event as an EventObject.intReturns the event id.Returns the Ribs Helper for event widget.Returns the input event.charReturns the event key char.intReturns the event keycode.Returns the key event.Returns the location for a mouse event or drop event.intReturns the menu shortcut key mask.Returns the mouse event.protected StringReturn PropertyChangeEvent property name.Returns the selection event.getShape()Returns the target as shape, if shape.getTimer()Returns the timer.Returns the tree selection event.protected UIEvent.TypeComputes the event type from EventObject.getValue()Override to provide value for DragDrop event.booleanReturns whether event widget or internal event is currently in a continuous state of change.intgetX()Returns the mouse event x.intgetY()Returns the mouse event y.booleanReturns whether alt key is down.booleanReturns whether event is AWT event.booleanReturns whether command menu shortcut key is down (command on Mac or control on other platforms).booleanReturns whether target is a component.booleanReturns whether control key is down.booleanReturns whether key is down arrow.booleanReturns the drop event.booleanReturns whether key is enter key.booleanReturns whether key is escape key.booleanReturns whether event is input event.booleanReturns whether key is left arrow.booleanReturns whether menu shortcut key is pressed.booleanReturns whether "meta" key is down (the command key on Mac with no equivalent on Windows).booleanReturns whether key is right arrow.booleanReturns whether shift key is down.booleanReturns whether key is up arrow.Methods inherited from class com.inductiveautomation.snap.ui.UIEventequals, getBooleanValue, getBoolValue, getEvent, getFloatValue, getIntValue, getName, getPropertyName, getSelectedIndex, getSelectedItem, getSelectedItem, getStringValue, getTarget, getTarget, getText, getTriggersReset, getType, is, isActionEvent, isDragDropEvent, isDragEnter, isDragEvent, isDragExit, isDragGesture, isDragOver, isDragSourceEnd, isDragSourceEnter, isDragSourceExit, isFocusGained, isFocusLost, isKeyEvent, isKeyFinished, isKeyPressed, isKeyReleased, isKeyTyped, isMouseClicked, isMouseDragged, isMouseEntered, isMouseEvent, isMouseExited, isMouseFinished, isMouseMoved, isMousePressed, isMouseReleased, isPropertyChangeEvent, isSelectionEvent, isTimerEvent, isValueAdjusting, isValueChangeEvent, setEvent, setName, setTarget, setTriggersReset, setType, setValue, toString
- 
Constructor Details- 
SwingEventCreates a new SwingEvent.
- 
SwingEventCreates a new RibsEvent.
 
- 
- 
Method Details- 
getShapeReturns the target as shape, if shape.
- 
isComponentpublic boolean isComponent()Returns whether target is a component.
- 
getComponentReturns the target component, if event target was component shape.
- 
getEventReturns the event as an EventObject.
- 
getTypeComputes the event type from EventObject.
- 
getPropertyChangePropertyNameReturn PropertyChangeEvent property name.- Specified by:
- getPropertyChangePropertyNamein class- UIEvent
 
- 
isAWTEventpublic boolean isAWTEvent()Returns whether event is AWT event.
- 
getAWTEventReturns the AWT event.
- 
getEventIDpublic int getEventID()Returns the event id.
- 
isInputEventpublic boolean isInputEvent()Returns whether event is input event.
- 
getInputEventReturns the input event.
- 
isShiftDownpublic boolean isShiftDown()Returns whether shift key is down.
- 
isControlDownpublic boolean isControlDown()Returns whether control key is down.
- 
isAltDownpublic boolean isAltDown()Returns whether alt key is down.
- 
isMetaDownpublic boolean isMetaDown()Returns whether "meta" key is down (the command key on Mac with no equivalent on Windows).
- 
isCommandDownpublic boolean isCommandDown()Returns whether command menu shortcut key is down (command on Mac or control on other platforms).
- 
isMenuShortcutKeyPressedpublic boolean isMenuShortcutKeyPressed()Returns whether menu shortcut key is pressed.
- 
getMenuShortcutKeyMaskpublic int getMenuShortcutKeyMask()Returns the menu shortcut key mask.
- 
getMouseEventReturns the mouse event.
- 
getClickCountpublic int getClickCount()Returns the click count for a mouse event.
- 
getLocationReturns the location for a mouse event or drop event.
- 
getXpublic int getX()Returns the mouse event x.
- 
getYpublic int getY()Returns the mouse event y.
- 
getKeyEventReturns the key event.
- 
getKeyCodepublic int getKeyCode()Returns the event keycode.
- 
getKeyCharpublic char getKeyChar()Returns the event key char.
- 
isLeftArrowpublic boolean isLeftArrow()Returns whether key is left arrow.
- 
isRightArrowpublic boolean isRightArrow()Returns whether key is right arrow.
- 
isUpArrowpublic boolean isUpArrow()Returns whether key is up arrow.
- 
isDownArrowpublic boolean isDownArrow()Returns whether key is down arrow.
- 
isEnterKeypublic boolean isEnterKey()Returns whether key is enter key.
- 
isEscapeKeypublic boolean isEscapeKey()Returns whether key is escape key.
- 
isDragDragEventpublic boolean isDragDragEvent()Returns the drop event.
- 
getDragDragEventReturns the drop event.
- 
getDragDropEventReturns the drop event.
- 
getDropStringReturns the drop string, if drop event.
- 
getDropFilesReturns the drop files, if drop files.
- 
getDragGestureEventReturns the drop gesture event.
- 
getDraggerReturns a Dragger for this event.
- 
getValueOverride to provide value for DragDrop event.
- 
getSelectionEventReturns the selection event.
- 
getTreeSelectionEventReturns the tree selection event.
- 
getValueIsAdjustingpublic boolean getValueIsAdjusting()Returns whether event widget or internal event is currently in a continuous state of change.
- 
getColorValueReturns the Color value encapsulated by the event widget.
- 
getTimerReturns the timer.
- 
getHelperReturns the Ribs Helper for event widget.
- 
consumepublic void consume()Consume event.
 
-