public class SwingEvent extends UIEvent
Modifier and Type | Class and Description |
---|---|
static class |
SwingEvent.TimerEvent
A timer event.
|
UIEvent.Type
Constructor and Description |
---|
SwingEvent(java.util.EventObject anEvent,
javax.swing.JComponent aComponent)
Creates a new SwingEvent.
|
SwingEvent(java.util.EventObject anEvent,
javax.swing.JComponent aComponent,
UIEvent.Type aType)
Creates a new RibsEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Consume event.
|
java.awt.AWTEvent |
getAWTEvent()
Returns the AWT event.
|
int |
getClickCount()
Returns the click count for a mouse event.
|
java.awt.Color |
getColorValue()
Returns the Color value encapsulated by the event widget.
|
javax.swing.JComponent |
getComponent()
Returns the target component, if event target was component shape.
|
java.awt.dnd.DropTargetDragEvent |
getDragDragEvent()
Returns the drop event.
|
java.awt.dnd.DropTargetDropEvent |
getDragDropEvent()
Returns the drop event.
|
SwingDragger |
getDragger()
Returns a Dragger for this event.
|
java.awt.dnd.DragGestureEvent |
getDragGestureEvent()
Returns the drop gesture event.
|
java.util.List<java.io.File> |
getDropFiles()
Returns the drop files, if drop files.
|
java.lang.String |
getDropString()
Returns the drop string, if drop event.
|
java.util.EventObject |
getEvent()
Returns the event as an EventObject.
|
int |
getEventID()
Returns the event id.
|
SwingHelper |
getHelper()
Returns the Ribs Helper for event widget.
|
java.awt.event.InputEvent |
getInputEvent()
Returns the input event.
|
char |
getKeyChar()
Returns the event key char.
|
int |
getKeyCode()
Returns the event keycode.
|
java.awt.event.KeyEvent |
getKeyEvent()
Returns the key event.
|
java.awt.Point |
getLocation()
Returns the location for a mouse event or drop event.
|
int |
getMenuShortcutKeyMask()
Returns the menu shortcut key mask.
|
java.awt.event.MouseEvent |
getMouseEvent()
Returns the mouse event.
|
protected java.lang.String |
getPropertyChangePropertyName()
Return PropertyChangeEvent property name.
|
javax.swing.event.ListSelectionEvent |
getSelectionEvent()
Returns the selection event.
|
RMShape |
getShape()
Returns the target as shape, if shape.
|
SwingTimer |
getTimer()
Returns the timer.
|
javax.swing.event.TreeSelectionEvent |
getTreeSelectionEvent()
Returns the tree selection event.
|
protected UIEvent.Type |
getType(java.lang.Object anEvent)
Computes the event type from EventObject.
|
java.lang.Object |
getValue()
Override to provide value for DragDrop event.
|
boolean |
getValueIsAdjusting()
Returns whether event widget or internal event is currently in a continuous state of change.
|
int |
getX()
Returns the mouse event x.
|
int |
getY()
Returns the mouse event y.
|
boolean |
isAltDown()
Returns whether alt key is down.
|
boolean |
isAWTEvent()
Returns whether event is AWT event.
|
boolean |
isCommandDown()
Returns whether command menu shortcut key is down (command on Mac or control on other platforms).
|
boolean |
isComponent()
Returns whether target is a component.
|
boolean |
isControlDown()
Returns whether control key is down.
|
boolean |
isDownArrow()
Returns whether key is down arrow.
|
boolean |
isDragDragEvent()
Returns the drop event.
|
boolean |
isEnterKey()
Returns whether key is enter key.
|
boolean |
isEscapeKey()
Returns whether key is escape key.
|
boolean |
isInputEvent()
Returns whether event is input event.
|
boolean |
isLeftArrow()
Returns whether key is left arrow.
|
boolean |
isMenuShortcutKeyPressed()
Returns whether menu shortcut key is pressed.
|
boolean |
isMetaDown()
Returns whether "meta" key is down (the command key on Mac with no equivalent on Windows).
|
boolean |
isRightArrow()
Returns whether key is right arrow.
|
boolean |
isShiftDown()
Returns whether shift key is down.
|
boolean |
isUpArrow()
Returns whether key is up arrow.
|
equals, 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
public SwingEvent(java.util.EventObject anEvent, javax.swing.JComponent aComponent)
public SwingEvent(java.util.EventObject anEvent, javax.swing.JComponent aComponent, UIEvent.Type aType)
public RMShape getShape()
public boolean isComponent()
public javax.swing.JComponent getComponent()
public java.util.EventObject getEvent()
protected UIEvent.Type getType(java.lang.Object anEvent)
protected java.lang.String getPropertyChangePropertyName()
getPropertyChangePropertyName
in class UIEvent
public boolean isAWTEvent()
public java.awt.AWTEvent getAWTEvent()
public int getEventID()
public boolean isInputEvent()
public java.awt.event.InputEvent getInputEvent()
public boolean isShiftDown()
public boolean isControlDown()
public boolean isAltDown()
public boolean isMetaDown()
public boolean isCommandDown()
public boolean isMenuShortcutKeyPressed()
public int getMenuShortcutKeyMask()
public java.awt.event.MouseEvent getMouseEvent()
public int getClickCount()
public java.awt.Point getLocation()
public int getX()
public int getY()
public java.awt.event.KeyEvent getKeyEvent()
public int getKeyCode()
public char getKeyChar()
public boolean isLeftArrow()
public boolean isRightArrow()
public boolean isUpArrow()
public boolean isDownArrow()
public boolean isEnterKey()
public boolean isEscapeKey()
public boolean isDragDragEvent()
public java.awt.dnd.DropTargetDragEvent getDragDragEvent()
public java.awt.dnd.DropTargetDropEvent getDragDropEvent()
public java.lang.String getDropString()
public java.util.List<java.io.File> getDropFiles()
public java.awt.dnd.DragGestureEvent getDragGestureEvent()
public SwingDragger getDragger()
public java.lang.Object getValue()
public javax.swing.event.ListSelectionEvent getSelectionEvent()
public javax.swing.event.TreeSelectionEvent getTreeSelectionEvent()
public boolean getValueIsAdjusting()
public java.awt.Color getColorValue()
public SwingTimer getTimer()
public SwingHelper getHelper()