Top Description Fields Constructors Methods
jogamp.newt.awt.event

public Class AWTParentWindowAdapter

extends AWTWindowAdapter
implements HierarchyListener
Class Inheritance
All Implemented Interfaces
java.awt.event.HierarchyListener, java.util.EventListener
Imports
java.awt.KeyboardFocusManager, com.jogamp.nativewindow.NativeWindow, jogamp.newt.driver.DriverUpdatePosition, com.jogamp.newt.Window, com.jogamp.newt.event.awt.AWTAdapter, .AWTWindowAdapter

Specialized parent/client adapter, where the NEWT child window really gets resized, and the parent move window event gets discarded.

Field Summary

Modifier and TypeField and Description
pack-priv NativeWindow

Constructor Summary

AccessConstructor and Description
public
AWTParentWindowAdapter(final NativeWindow downstreamParent, final Window downstream)

public

Method Summary

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

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.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 AWTAdapter
clear()

Overrides com.jogamp.newt.event.awt.AWTAdapter.clear.

Removes all references, downstream and NEWT-EventListener.
public synchronized void
componentMoved(final ComponentEvent
the event to be processed
e
)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.componentMoved.

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
)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.componentResized.

Implements java.awt.event.ComponentListener.componentResized.

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

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.focusGained.

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
)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.focusLost.

Implements java.awt.event.FocusListener.focusLost.

Invoked when a component loses the keyboard focus.
public synchronized void
hierarchyChanged(final HierarchyEvent
the event to be processed
e
)

Implements java.awt.event.HierarchyListener.hierarchyChanged.

Called when the hierarchy has been changed.
public synchronized AWTAdapter
public AWTParentWindowAdapter
setDownstream(final NativeWindow downstreamParent, final Window downstream)

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

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.windowActivated.

Implements java.awt.event.WindowListener.windowActivated.

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

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.windowDeactivated.

Implements java.awt.event.WindowListener.windowDeactivated.

Invoked when a Window is no longer the active Window.
Inherited from com.jogamp.newt.event.awt.AWTWindowAdapter:
componentHiddencomponentShownremoveWindowClosingFromwindowClosedwindowClosingwindowDeiconifiedwindowIconifiedwindowOpened

Field Detail

downstreamParentback to summary
pack-priv NativeWindow downstreamParent

Constructor Detail

AWTParentWindowAdapterback to summary
public AWTParentWindowAdapter(final NativeWindow downstreamParent, final Window downstream)
AWTParentWindowAdapterback to summary
public AWTParentWindowAdapter()

Method Detail

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

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.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
clearback to summary
public synchronized AWTAdapter clear()

Overrides com.jogamp.newt.event.awt.AWTAdapter.clear.

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

Removes all references, downstream and NEWT-EventListener.

Also sets the internal setup flag and setConsumeAWTEvent(boolean) to false.

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

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.componentMoved.

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)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.componentResized.

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
focusGainedback to summary
public synchronized void focusGained(final FocusEvent e)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.focusGained.

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)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.focusLost.

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
hierarchyChangedback to summary
public synchronized void hierarchyChanged(final HierarchyEvent e)

Implements java.awt.event.HierarchyListener.hierarchyChanged.

Doc from java.awt.event.HierarchyListener.hierarchyChanged.

Called when the hierarchy has been changed. To discern the actual type of change, call HierarchyEvent.getChangeFlags().

Parameters
e:HierarchyEvent

the event to be processed

Annotations
@Override
removeFromback to summary
public synchronized AWTAdapter removeFrom(final Component awtComponent)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.removeFrom.

Annotations
@Override
setDownstreamback to summary
public AWTParentWindowAdapter setDownstream(final NativeWindow downstreamParent, final Window downstream)
windowActivatedback to summary
public synchronized void windowActivated(final WindowEvent e)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.windowActivated.

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
windowDeactivatedback to summary
public synchronized void windowDeactivated(final WindowEvent e)

Overrides com.jogamp.newt.event.awt.AWTWindowAdapter.windowDeactivated.

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