Top Inners Fields Constructors Methods
com.jogamp.newt.event.awt

public Class AWTWindowAdapter

extends AWTAdapter
implements ComponentListener, WindowListener, FocusListener
Class Inheritance
All Implemented Interfaces
java.awt.event.FocusListener, java.util.EventListener, java.awt.event.WindowListener, java.awt.event.ComponentListener
Known Direct Subclasses
jogamp.newt.awt.event.AWTParentWindowAdapter
Imports
java.awt.Dimension, com.jogamp.nativewindow.NativeSurfaceHolder, jogamp.newt.awt.event.AWTNewtEventFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv AWTWindowAdapter.WindowClosingListener
Inherited from com.jogamp.newt.event.awt.AWTAdapter:
consumeAWTEventDEBUG_IMPLEMENTATIONisSetupnewtListenernewtWindownsHolder

Constructor Summary

AccessConstructor and Description
public
AWTWindowAdapter(final WindowListener newtListener, final NativeSurfaceHolder nsProxy)

public
AWTWindowAdapter(final WindowListener newtListener, final Window newtProxy)

public
AWTWindowAdapter(final Window downstream)

public

Method Summary

Modifier and TypeMethod and Description
public synchronized AWTAdapter
addTo(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.addTo.

Due to the fact that some NEWT com.jogamp.newt.event.NEWTEventListener are mapped to more than one java.util.EventListener, this method is for your convenience to use this Adapter as a listener for all types.
public synchronized void
componentHidden(final ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentHidden.

Invoked when the component has been made invisible.
public synchronized void
componentMoved(final ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentMoved.

Invoked when the component's position changes.
public synchronized void
componentResized(final ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentResized.

Invoked when the component's size changes.
public synchronized void
componentShown(final ComponentEvent
the event to be processed
e
)

Implements java.awt.event.ComponentListener.componentShown.

Invoked when the component has been made visible.
public synchronized void
focusGained(final FocusEvent
the event to be processed
e
)

Implements java.awt.event.FocusListener.focusGained.

Invoked when a component gains the keyboard focus.
public synchronized void
focusLost(final FocusEvent
the event to be processed
e
)

Implements java.awt.event.FocusListener.focusLost.

Invoked when a component loses the keyboard focus.
pack-priv static Window
public synchronized AWTAdapter
public synchronized AWTAdapter
removeWindowClosingFrom(final Component awtComponent)

public synchronized void
windowActivated(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window.
public synchronized void
windowClosed(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.
public synchronized void
windowClosing(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.
public synchronized void
windowDeactivated(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window.
public synchronized void
windowDeiconified(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.
public synchronized void
windowIconified(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state.
public synchronized void
windowOpened(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.
Inherited from com.jogamp.newt.event.awt.AWTAdapter:
cleargetNativeSurfaceHoldergetNewtEventListenergetNewtWindowprocessEventsetConsumeAWTEventsetDownstream

Field Detail

windowClosingListenerback to summary
pack-priv AWTWindowAdapter.WindowClosingListener windowClosingListener

Constructor Detail

AWTWindowAdapterback to summary
public AWTWindowAdapter(final WindowListener newtListener, final NativeSurfaceHolder nsProxy)
AWTWindowAdapterback to summary
public AWTWindowAdapter(final WindowListener newtListener, final Window newtProxy)
AWTWindowAdapterback to summary
public AWTWindowAdapter(final Window downstream)
AWTWindowAdapterback to summary
public AWTWindowAdapter()

Method Detail

addToback to summary
public synchronized AWTAdapter addTo(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.addTo.

Doc from com.jogamp.newt.event.awt.AWTAdapter.addTo.

Due to the fact that some NEWT com.jogamp.newt.event.NEWTEventListener are mapped to more than one java.util.EventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g. com.jogamp.newt.event.MouseListener is mapped to java.awt.event.MouseListener and java.awt.event.MouseMotionListener.

Annotations
@Override
componentHiddenback to summary
public synchronized void componentHidden(final ComponentEvent e)

Implements java.awt.event.ComponentListener.componentHidden.

Doc from java.awt.event.ComponentListener.componentHidden.

Invoked when the component has been made invisible.

Parameters
e:ComponentEvent

the event to be processed

Annotations
@Override
componentMovedback to summary
public synchronized void componentMoved(final ComponentEvent e)

Implements java.awt.event.ComponentListener.componentMoved.

Doc from java.awt.event.ComponentListener.componentMoved.

Invoked when the component's position changes.

Parameters
e:ComponentEvent

the event to be processed

Annotations
@Override
componentResizedback to summary
public synchronized void componentResized(final ComponentEvent e)

Implements java.awt.event.ComponentListener.componentResized.

Doc from java.awt.event.ComponentListener.componentResized.

Invoked when the component's size changes.

Parameters
e:ComponentEvent

the event to be processed

Annotations
@Override
componentShownback to summary
public synchronized void componentShown(final ComponentEvent e)

Implements java.awt.event.ComponentListener.componentShown.

Doc from java.awt.event.ComponentListener.componentShown.

Invoked when the component has been made visible.

Parameters
e:ComponentEvent

the event to be processed

Annotations
@Override
focusGainedback to summary
public synchronized void focusGained(final FocusEvent e)

Implements java.awt.event.FocusListener.focusGained.

Doc from java.awt.event.FocusListener.focusGained.

Invoked when a component gains the keyboard focus.

Parameters
e:FocusEvent

the event to be processed

Annotations
@Override
focusLostback to summary
public synchronized void focusLost(final FocusEvent e)

Implements java.awt.event.FocusListener.focusLost.

Doc from java.awt.event.FocusListener.focusLost.

Invoked when a component loses the keyboard focus.

Parameters
e:FocusEvent

the event to be processed

Annotations
@Override
getWindowback to summary
pack-priv static Window getWindow(Component comp)
removeFromback to summary
public synchronized AWTAdapter removeFrom(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.removeFrom.

Annotations
@Override
removeWindowClosingFromback to summary
public synchronized AWTAdapter removeWindowClosingFrom(final Component awtComponent)
windowActivatedback to summary
public synchronized void windowActivated(final WindowEvent e)

Implements java.awt.event.WindowListener.windowActivated.

Doc from java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowClosedback to summary
public synchronized void windowClosed(final WindowEvent e)

Implements java.awt.event.WindowListener.windowClosed.

Doc from java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowClosingback to summary
public synchronized void windowClosing(final WindowEvent e)

Implements java.awt.event.WindowListener.windowClosing.

Doc from java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowDeactivatedback to summary
public synchronized void windowDeactivated(final WindowEvent e)

Implements java.awt.event.WindowListener.windowDeactivated.

Doc from java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowDeiconifiedback to summary
public synchronized void windowDeiconified(final WindowEvent e)

Implements java.awt.event.WindowListener.windowDeiconified.

Doc from java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowIconifiedback to summary
public synchronized void windowIconified(final WindowEvent e)

Implements java.awt.event.WindowListener.windowIconified.

Doc from java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowOpenedback to summary
public synchronized void windowOpened(final WindowEvent e)

Implements java.awt.event.WindowListener.windowOpened.

Doc from java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
com.jogamp.newt.event.awt back to summary

pack-priv Class AWTWindowAdapter.WindowClosingListener

extends Object
implements WindowListener
Class Inheritance
  • java.lang.Object
  • com.jogamp.newt.event.awt.AWTWindowAdapter.WindowClosingListener
All Implemented Interfaces
java.awt.event.WindowListener, java.util.EventListener

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
windowActivated(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window.
public void
windowClosed(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.
public void
windowClosing(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.
public void
windowDeactivated(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window.
public void
windowDeiconified(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.
public void
windowIconified(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state.
public void
windowOpened(final WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WindowClosingListenerback to summary
pack-priv WindowClosingListener()

Method Detail

windowActivatedback to summary
public void windowActivated(final WindowEvent e)

Implements java.awt.event.WindowListener.windowActivated.

Doc from java.awt.event.WindowListener.windowActivated.

Invoked when the Window is set to be the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowClosedback to summary
public void windowClosed(final WindowEvent e)

Implements java.awt.event.WindowListener.windowClosed.

Doc from java.awt.event.WindowListener.windowClosed.

Invoked when a window has been closed as the result of calling dispose on the window.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowClosingback to summary
public void windowClosing(final WindowEvent e)

Implements java.awt.event.WindowListener.windowClosing.

Doc from java.awt.event.WindowListener.windowClosing.

Invoked when the user attempts to close the window from the window's system menu.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowDeactivatedback to summary
public void windowDeactivated(final WindowEvent e)

Implements java.awt.event.WindowListener.windowDeactivated.

Doc from java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowDeiconifiedback to summary
public void windowDeiconified(final WindowEvent e)

Implements java.awt.event.WindowListener.windowDeiconified.

Doc from java.awt.event.WindowListener.windowDeiconified.

Invoked when a window is changed from a minimized to a normal state.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowIconifiedback to summary
public void windowIconified(final WindowEvent e)

Implements java.awt.event.WindowListener.windowIconified.

Doc from java.awt.event.WindowListener.windowIconified.

Invoked when a window is changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override
windowOpenedback to summary
public void windowOpened(final WindowEvent e)

Implements java.awt.event.WindowListener.windowOpened.

Doc from java.awt.event.WindowListener.windowOpened.

Invoked the first time a window is made visible.

Parameters
e:WindowEvent

the event to be processed

Annotations
@Override