bibliothek.gui.dock.control
Class PopupController.DockableObserver

java.lang.Object
  extended by javax.swing.event.MouseInputAdapter
      extended by bibliothek.gui.dock.action.ActionPopup
          extended by bibliothek.gui.dock.control.PopupController.ComponentObserver
              extended by bibliothek.gui.dock.control.PopupController.DockableObserver
All Implemented Interfaces:
DockableListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.MouseInputListener
Enclosing class:
PopupController

private class PopupController.DockableObserver
extends PopupController.ComponentObserver
implements DockableListener

A listener to a Dockable, lets the user drag and drop a Dockable.

Author:
Benjamin Sigg

Field Summary
private  java.util.Map<DockTitle,PopupController.ComponentObserver> listeners
           
 
Fields inherited from class bibliothek.gui.dock.control.PopupController.ComponentObserver
dockable
 
Constructor Summary
PopupController.DockableObserver(Dockable dockable)
          Constructs a new listener
 
Method Summary
 void titleBinded(Dockable dockable, DockTitle title)
          Will be invoked when a DockTitle was binded to a Dockable.
 void titleIconChanged(Dockable dockable, javax.swing.Icon oldIcon, javax.swing.Icon newIcon)
          Invoked when the title-icon of a Dockable has changed
 void titleTextChanged(Dockable dockable, java.lang.String oldTitle, java.lang.String newTitle)
          Invoked when the title of a Dockable has changed.
 void titleUnbinded(Dockable dockable, DockTitle title)
          Will be invoked when a DockTitle was unbinded from a Dockable.
 
Methods inherited from class bibliothek.gui.dock.control.PopupController.ComponentObserver
getDockable, getSource, isEnabled, mouseClicked
 
Methods inherited from class bibliothek.gui.dock.action.ActionPopup
isSuppressable, mousePressed, mouseReleased, popup, popup, setSuppressable
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

private java.util.Map<DockTitle,PopupController.ComponentObserver> listeners
Constructor Detail

PopupController.DockableObserver

public PopupController.DockableObserver(Dockable dockable)
Constructs a new listener

Parameters:
dockable - the Dockable to observe
Method Detail

titleBinded

public void titleBinded(Dockable dockable,
                        DockTitle title)
Description copied from interface: DockableListener
Will be invoked when a DockTitle was binded to a Dockable.

Specified by:
titleBinded in interface DockableListener
Parameters:
dockable - the Dockable whose title is set
title - the new title

titleUnbinded

public void titleUnbinded(Dockable dockable,
                          DockTitle title)
Description copied from interface: DockableListener
Will be invoked when a DockTitle was unbinded from a Dockable.

Specified by:
titleUnbinded in interface DockableListener
Parameters:
dockable - the Dockable whose title was removed
title - the remove title

titleIconChanged

public void titleIconChanged(Dockable dockable,
                             javax.swing.Icon oldIcon,
                             javax.swing.Icon newIcon)
Description copied from interface: DockableListener
Invoked when the title-icon of a Dockable has changed

Specified by:
titleIconChanged in interface DockableListener
Parameters:
dockable - the Dockable whose title is changed
oldIcon - the old icon, may be null
newIcon - the new icon, may be null

titleTextChanged

public void titleTextChanged(Dockable dockable,
                             java.lang.String oldTitle,
                             java.lang.String newTitle)
Description copied from interface: DockableListener
Invoked when the title of a Dockable has changed.

Specified by:
titleTextChanged in interface DockableListener
Parameters:
dockable - the Dockable whose title is changed
oldTitle - the title before the change
newTitle - the title after the change