Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class java.awt.Component.NativeInLightFixer

java.lang.Object
  |
  +--java.awt.Component.NativeInLightFixer

private final class Component.NativeInLightFixer
extends Object
implements java.awt.event.ComponentListener, java.awt.event.ContainerListener
This odd class is to help out a native component that has been embedded in a lightweight component. Moving lightweight components around and changing their visibility is not seen by the native window system. This is a feature for lightweights, but a problem for native components that depend upon the lightweights. An instance of this class listens to the lightweight parents of an associated native component (the outer class).


Field Summary
java.util.Vector lightParents
           
Container nativeHost
           
 
Constructor Summary
Component.NativeInLightFixer(Component this$0)
           
 
Method Summary
void componentAdded(java.awt.event.ContainerEvent e)
          Invoked when a component has been added to a lightweight parent.
void componentHidden(ComponentEvent e)
          Invoked when component has been hidden.
void componentMoved(ComponentEvent e)
          Invoked when one of the lightweight parents has been moved.
void componentRemoved(java.awt.event.ContainerEvent e)
          Invoked when a lightweight parent has been removed.
void componentResized(ComponentEvent e)
          Invoked when one of the lightweight parents has been resized.
void componentShown(ComponentEvent e)
          Invoked when a lightweight parent component has been shown.
void removeReferences()
          Remove references to this object so it can be garbage collected.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, registerNatives, toString, wait, wait, wait
 

Field Detail

lightParents

java.util.Vector lightParents

nativeHost

Container nativeHost
Constructor Detail

Component.NativeInLightFixer

Component.NativeInLightFixer(Component this$0)
Method Detail

componentResized

public void componentResized(ComponentEvent e)
Invoked when one of the lightweight parents has been resized. This doesn't change the position of the native child so it is ignored.
Specified by:
componentResized(java.awt.event.ComponentEvent) in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(ComponentEvent e)
Invoked when one of the lightweight parents has been moved. The native peer must be told of the new position which is relative to the native container that is hosting the lightweight components.
Specified by:
componentMoved(java.awt.event.ComponentEvent) in interface java.awt.event.ComponentListener

componentShown

public void componentShown(ComponentEvent e)
Invoked when a lightweight parent component has been shown. The associated native component must also be shown if it hasn't had an overriding hide done on it.
Specified by:
componentShown(java.awt.event.ComponentEvent) in interface java.awt.event.ComponentListener

componentHidden

public void componentHidden(ComponentEvent e)
Invoked when component has been hidden.
Specified by:
componentHidden(java.awt.event.ComponentEvent) in interface java.awt.event.ComponentListener

componentAdded

public void componentAdded(java.awt.event.ContainerEvent e)
Invoked when a component has been added to a lightweight parent. This doesn't effect the native component.
Specified by:
componentAdded(java.awt.event.ContainerEvent) in interface java.awt.event.ContainerListener

componentRemoved

public void componentRemoved(java.awt.event.ContainerEvent e)
Invoked when a lightweight parent has been removed. This means the services of this listener are no longer required and it should remove all references (ie registered listeners).
Specified by:
componentRemoved(java.awt.event.ContainerEvent) in interface java.awt.event.ContainerListener

removeReferences

void removeReferences()
Remove references to this object so it can be garbage collected.

Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD