javax.swing.plaf.basic
Class BasicToolBarUI.ToolBarContListener

java.lang.Object
  extended by javax.swing.plaf.basic.BasicToolBarUI.ToolBarContListener
All Implemented Interfaces:
ContainerListener, EventListener
Direct Known Subclasses:
MetalToolBarUI.MetalContainerListener
Enclosing class:
BasicToolBarUI

protected class BasicToolBarUI.ToolBarContListener
extends Object
implements ContainerListener

This helper class listens for components added to and removed from the JToolBar.


Constructor Summary
protected BasicToolBarUI.ToolBarContListener()
           
 
Method Summary
 void componentAdded(ContainerEvent e)
          This method is responsible for setting rollover or non rollover for new buttons added to the JToolBar.
 void componentRemoved(ContainerEvent e)
          This method is responsible for giving the child components their original borders when they are removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicToolBarUI.ToolBarContListener

protected BasicToolBarUI.ToolBarContListener()
Method Detail

componentAdded

public void componentAdded(ContainerEvent e)
This method is responsible for setting rollover or non rollover for new buttons added to the JToolBar.

Specified by:
componentAdded in interface ContainerListener
Parameters:
e - The ContainerEvent.

componentRemoved

public void componentRemoved(ContainerEvent e)
This method is responsible for giving the child components their original borders when they are removed.

Specified by:
componentRemoved in interface ContainerListener
Parameters:
e - The ContainerEvent.