DESY ACOP Beans Home

com.cosylab.gui.components
Class ResizableTextField.ResizableComponentAdapter

java.lang.Object
  extended by java.awt.event.ComponentAdapter
      extended by com.cosylab.gui.components.ResizableTextField.ResizableComponentAdapter
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.HierarchyListener, java.util.EventListener
Enclosing class:
ResizableTextField

protected class ResizableTextField.ResizableComponentAdapter
extends java.awt.event.ComponentAdapter
implements java.awt.event.HierarchyListener

Listens for ComponentEvents and notifies text resizing if enabled.

Version:
$id$
Author:
Jernej Kamenik

Constructor Summary
protected ResizableTextField.ResizableComponentAdapter()
           
 
Method Summary
 void componentResized(java.awt.event.ComponentEvent e)
          Invokes text resizing if enabled when component is resized.
 void hierarchyChanged(java.awt.event.HierarchyEvent e)
          Invoke resizing of the font when the hiearachy changes, because this action might as well change the size of the components, but the resize is not fired, because the component did not have parent prior to that.
 
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizableTextField.ResizableComponentAdapter

protected ResizableTextField.ResizableComponentAdapter()
Method Detail

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Invokes text resizing if enabled when component is resized.

Specified by:
componentResized in interface java.awt.event.ComponentListener
Overrides:
componentResized in class java.awt.event.ComponentAdapter
Parameters:
e - ComponentEvent
See Also:
ComponentListener.componentResized(ComponentEvent)

hierarchyChanged

public void hierarchyChanged(java.awt.event.HierarchyEvent e)
Invoke resizing of the font when the hiearachy changes, because this action might as well change the size of the components, but the resize is not fired, because the component did not have parent prior to that.

Specified by:
hierarchyChanged in interface java.awt.event.HierarchyListener
Parameters:
e - the event describing the hierarchy change


Copyright © 2010. All Rights Reserved.