com.jogamp.newt.event.awt
Class AWTParentWindowAdapter

java.lang.Object
  extended by com.jogamp.newt.event.awt.AWTAdapter
      extended by com.jogamp.newt.event.awt.AWTWindowAdapter
          extended by com.jogamp.newt.event.awt.AWTParentWindowAdapter
All Implemented Interfaces:
ComponentListener, FocusListener, HierarchyListener, WindowListener, EventListener

public class AWTParentWindowAdapter
extends AWTWindowAdapter
implements HierarchyListener

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


Field Summary
 
Fields inherited from class com.jogamp.newt.event.awt.AWTAdapter
DEBUG_IMPLEMENTATION
 
Constructor Summary
AWTParentWindowAdapter(Window downstream)
           
 
Method Summary
 AWTAdapter addTo(Component awtComponent)
          Due to the fact that some NEWT NEWTEventListener are mapped to more than one EventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.
 void componentMoved(ComponentEvent e)
           
 void componentResized(ComponentEvent e)
           
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
 void hierarchyChanged(HierarchyEvent e)
           
 AWTAdapter removeFrom(Component awtComponent)
           
 void windowActivated(WindowEvent e)
           
 void windowDeactivated(WindowEvent e)
           
 
Methods inherited from class com.jogamp.newt.event.awt.AWTWindowAdapter
componentHidden, componentShown, windowClosed, windowClosing, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTParentWindowAdapter

public AWTParentWindowAdapter(Window downstream)
Method Detail

addTo

public AWTAdapter addTo(Component awtComponent)
Description copied from class: AWTAdapter
Due to the fact that some NEWT NEWTEventListener are mapped to more than one EventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g. MouseListener is mapped to MouseListener and MouseMotionListener.

Overrides:
addTo in class AWTWindowAdapter

removeFrom

public AWTAdapter removeFrom(Component awtComponent)
Overrides:
removeFrom in class AWTWindowAdapter
See Also:
AWTAdapter.addTo(java.awt.Component)

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener
Overrides:
focusGained in class AWTWindowAdapter

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener
Overrides:
focusLost in class AWTWindowAdapter

componentResized

public void componentResized(ComponentEvent e)
Specified by:
componentResized in interface ComponentListener
Overrides:
componentResized in class AWTWindowAdapter

componentMoved

public void componentMoved(ComponentEvent e)
Specified by:
componentMoved in interface ComponentListener
Overrides:
componentMoved in class AWTWindowAdapter

windowActivated

public void windowActivated(WindowEvent e)
Specified by:
windowActivated in interface WindowListener
Overrides:
windowActivated in class AWTWindowAdapter

windowDeactivated

public void windowDeactivated(WindowEvent e)
Specified by:
windowDeactivated in interface WindowListener
Overrides:
windowDeactivated in class AWTWindowAdapter

hierarchyChanged

public void hierarchyChanged(HierarchyEvent e)
Specified by:
hierarchyChanged in interface HierarchyListener


Copyright 2010 JogAmp Community.