Package com.jogamp.newt.event.awt
Class AWTWindowAdapter
- java.lang.Object
-
- com.jogamp.newt.event.awt.AWTAdapter
-
- com.jogamp.newt.event.awt.AWTWindowAdapter
-
- All Implemented Interfaces:
ComponentListener
,FocusListener
,WindowListener
,EventListener
public class AWTWindowAdapter extends AWTAdapter implements ComponentListener, WindowListener, FocusListener
-
-
Field Summary
-
Fields inherited from class com.jogamp.newt.event.awt.AWTAdapter
DEBUG_IMPLEMENTATION
-
-
Constructor Summary
Constructors Constructor Description AWTWindowAdapter()
AWTWindowAdapter(WindowListener newtListener, NativeSurfaceHolder nsProxy)
AWTWindowAdapter(WindowListener newtListener, Window newtProxy)
AWTWindowAdapter(Window downstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWTAdapter
addTo(Component awtComponent)
Due to the fact that some NEWTNEWTEventListener
are mapped to more than oneEventListener
, this method is for your convenience to use this Adapter as a listener for all types.
E.g.void
componentHidden(ComponentEvent e)
void
componentMoved(ComponentEvent e)
void
componentResized(ComponentEvent e)
void
componentShown(ComponentEvent e)
void
focusGained(FocusEvent e)
void
focusLost(FocusEvent e)
AWTAdapter
removeFrom(Component awtComponent)
AWTAdapter
removeWindowClosingFrom(Component awtComponent)
void
windowActivated(WindowEvent e)
void
windowClosed(WindowEvent e)
void
windowClosing(WindowEvent e)
void
windowDeactivated(WindowEvent e)
void
windowDeiconified(WindowEvent e)
void
windowIconified(WindowEvent e)
void
windowOpened(WindowEvent e)
-
Methods inherited from class com.jogamp.newt.event.awt.AWTAdapter
clear, getNativeSurfaceHolder, getNewtEventListener, getNewtWindow, setConsumeAWTEvent, setDownstream
-
-
-
-
Constructor Detail
-
AWTWindowAdapter
public AWTWindowAdapter(WindowListener newtListener, NativeSurfaceHolder nsProxy)
-
AWTWindowAdapter
public AWTWindowAdapter(WindowListener newtListener, Window newtProxy)
-
AWTWindowAdapter
public AWTWindowAdapter(Window downstream)
-
AWTWindowAdapter
public AWTWindowAdapter()
-
-
Method Detail
-
addTo
public AWTAdapter addTo(Component awtComponent)
Description copied from class:AWTAdapter
Due to the fact that some NEWTNEWTEventListener
are mapped to more than oneEventListener
, this method is for your convenience to use this Adapter as a listener for all types.
E.g.MouseListener
is mapped toMouseListener
andMouseMotionListener
.- Specified by:
addTo
in classAWTAdapter
-
removeWindowClosingFrom
public AWTAdapter removeWindowClosingFrom(Component awtComponent)
-
removeFrom
public AWTAdapter removeFrom(Component awtComponent)
- Specified by:
removeFrom
in classAWTAdapter
- See Also:
AWTAdapter.addTo(java.awt.Component)
-
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGained
in interfaceFocusListener
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLost
in interfaceFocusListener
-
componentResized
public void componentResized(ComponentEvent e)
- Specified by:
componentResized
in interfaceComponentListener
-
componentMoved
public void componentMoved(ComponentEvent e)
- Specified by:
componentMoved
in interfaceComponentListener
-
componentShown
public void componentShown(ComponentEvent e)
- Specified by:
componentShown
in interfaceComponentListener
-
componentHidden
public void componentHidden(ComponentEvent e)
- Specified by:
componentHidden
in interfaceComponentListener
-
windowActivated
public void windowActivated(WindowEvent e)
- Specified by:
windowActivated
in interfaceWindowListener
-
windowClosed
public void windowClosed(WindowEvent e)
- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
public void windowClosing(WindowEvent e)
- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Specified by:
windowDeactivated
in interfaceWindowListener
-
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Specified by:
windowDeiconified
in interfaceWindowListener
-
windowIconified
public void windowIconified(WindowEvent e)
- Specified by:
windowIconified
in interfaceWindowListener
-
windowOpened
public void windowOpened(WindowEvent e)
- Specified by:
windowOpened
in interfaceWindowListener
-
-