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 AWTAdapteraddTo(Component awtComponent)Due to the fact that some NEWTNEWTEventListenerare mapped to more than oneEventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.voidcomponentHidden(ComponentEvent e)voidcomponentMoved(ComponentEvent e)voidcomponentResized(ComponentEvent e)voidcomponentShown(ComponentEvent e)voidfocusGained(FocusEvent e)voidfocusLost(FocusEvent e)AWTAdapterremoveFrom(Component awtComponent)AWTAdapterremoveWindowClosingFrom(Component awtComponent)voidwindowActivated(WindowEvent e)voidwindowClosed(WindowEvent e)voidwindowClosing(WindowEvent e)voidwindowDeactivated(WindowEvent e)voidwindowDeiconified(WindowEvent e)voidwindowIconified(WindowEvent e)voidwindowOpened(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:AWTAdapterDue to the fact that some NEWTNEWTEventListenerare mapped to more than oneEventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.MouseListeneris mapped toMouseListenerandMouseMotionListener.- Specified by:
addToin classAWTAdapter
-
removeWindowClosingFrom
public AWTAdapter removeWindowClosingFrom(Component awtComponent)
-
removeFrom
public AWTAdapter removeFrom(Component awtComponent)
- Specified by:
removeFromin classAWTAdapter- See Also:
AWTAdapter.addTo(java.awt.Component)
-
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLostin interfaceFocusListener
-
componentResized
public void componentResized(ComponentEvent e)
- Specified by:
componentResizedin interfaceComponentListener
-
componentMoved
public void componentMoved(ComponentEvent e)
- Specified by:
componentMovedin interfaceComponentListener
-
componentShown
public void componentShown(ComponentEvent e)
- Specified by:
componentShownin interfaceComponentListener
-
componentHidden
public void componentHidden(ComponentEvent e)
- Specified by:
componentHiddenin interfaceComponentListener
-
windowActivated
public void windowActivated(WindowEvent e)
- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
public void windowClosed(WindowEvent e)
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
public void windowClosing(WindowEvent e)
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Specified by:
windowDeactivatedin interfaceWindowListener
-
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
public void windowIconified(WindowEvent e)
- Specified by:
windowIconifiedin interfaceWindowListener
-
windowOpened
public void windowOpened(WindowEvent e)
- Specified by:
windowOpenedin interfaceWindowListener
-
-