public class WindowEvent extends BuilderEvent
An event class used by the window builder framework to deliver event information related to windows.
Events related to windows, e.g. window closing or iconifying, are also
abstracted by the builder framework. This event class is used for this
purpose. In addition to the event's source (usually the original library
specific event object) a reference to the affected window object is provided.
This reference is usually an object created by the platform specific window
manager that implements the Window interface defined by the
window builder framework.
| Modifier and Type | Class and Description |
|---|---|
static class |
WindowEvent.Type
An enumeration for the different types of window events.
|
source| Constructor and Description |
|---|
WindowEvent(Object source,
Window sourceWindow,
WindowEvent.Type type)
Creates an instance of
WindowEvent and sets the properties. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getSourceWindow()
Returns the source window.
|
WindowEvent.Type |
getType()
Returns the type of this event.
|
getSource, toStringpublic WindowEvent(Object source, Window sourceWindow, WindowEvent.Type type)
WindowEvent and sets the properties.source - the event's sourcesourceWindow - a reference to the affected windowtype - the event typepublic Object getSourceWindow()
public WindowEvent.Type getType()
Copyright © 2016 The JGUIraffe Team. All rights reserved.