Class WindowEvent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of window change that occurred. -
Constructor Summary
ConstructorsConstructorDescriptionWindowEvent(Display source, WindowEvent.Type type, Rectangle bounds) Creates a new window event instance.WindowEvent(Object source, WindowEvent.Type type, Rectangle bounds) Creates a new window event for a source other than the display, such as an individualcom.codename1.ui.Window. -
Method Summary
Modifier and TypeMethodDescriptionReturns the window bounds associated with this event.getType()The type of window event.Methods inherited from class ActionEvent
consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getPointerEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerEvent, setPointerPressedDuringDrag
-
Constructor Details
-
WindowEvent
Creates a new window event instance.
Parameters
-
source: the display that generated the event -
type: the type of the window event -
bounds: the bounds of the window, if known
-
-
WindowEvent
Creates a new window event for a source other than the display, such as an individual
com.codename1.ui.Window.The
Displayform is kept separate so that code registered throughDisplay#addWindowListener(com.codename1.ui.events.ActionListener)-- which only ever hears about the application's main window -- can keep castinggetSource()toDisplaysafely.Parameters
-
source: the object that generated the event -
type: the type of the window event -
bounds: the bounds of the window, if known
-
-
-
Method Details
-
getType
The type of window event.
Returns
the event type
-
getBounds
Returns the window bounds associated with this event.
Returns
the window bounds or
nullif not provided
-