org.jhotdraw.util.prefs
Class ToolBarPrefsHandler

java.lang.Object
  extended by org.jhotdraw.util.prefs.ToolBarPrefsHandler
All Implemented Interfaces:
java.awt.event.ComponentListener, java.util.EventListener, javax.swing.event.AncestorListener

public class ToolBarPrefsHandler
extends java.lang.Object
implements java.awt.event.ComponentListener, javax.swing.event.AncestorListener

ToolBarPrefsHandler.

Version:
$Id: ToolBarPrefsHandler.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer

Field Summary
private  boolean firstTimeShown
           
private  java.util.prefs.Preferences prefs
           
private  java.lang.String prefsPrefix
           
private  javax.swing.JToolBar toolbar
           
 
Constructor Summary
ToolBarPrefsHandler(javax.swing.JToolBar toolbar, java.lang.String prefsPrefix, java.util.prefs.Preferences prefs)
           
 
Method Summary
 void ancestorAdded(javax.swing.event.AncestorEvent event)
           
 void ancestorMoved(javax.swing.event.AncestorEvent event)
           
 void ancestorRemoved(javax.swing.event.AncestorEvent event)
           
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
private  void locationChanged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolbar

private javax.swing.JToolBar toolbar

prefsPrefix

private java.lang.String prefsPrefix

prefs

private java.util.prefs.Preferences prefs

firstTimeShown

private boolean firstTimeShown
Constructor Detail

ToolBarPrefsHandler

public ToolBarPrefsHandler(javax.swing.JToolBar toolbar,
                           java.lang.String prefsPrefix,
                           java.util.prefs.Preferences prefs)
Method Detail

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

locationChanged

private void locationChanged()

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

ancestorAdded

public void ancestorAdded(javax.swing.event.AncestorEvent event)
Specified by:
ancestorAdded in interface javax.swing.event.AncestorListener

ancestorMoved

public void ancestorMoved(javax.swing.event.AncestorEvent event)
Specified by:
ancestorMoved in interface javax.swing.event.AncestorListener

ancestorRemoved

public void ancestorRemoved(javax.swing.event.AncestorEvent event)
Specified by:
ancestorRemoved in interface javax.swing.event.AncestorListener