Class WindowEvent
java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.ui.events.WindowEvent
Describes a change in the native window hosting the Codename One display on
desktop platforms.
-
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. -
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, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, 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
-
-
-
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
-