org.jscroll.widgets
Class DesktopListener

java.lang.Object
  |
  +--org.jscroll.widgets.DesktopListener
All Implemented Interfaces:
ActionListener, ComponentListener, EventListener

public class DesktopListener
extends Object
implements ComponentListener, ActionListener

This class provides common Component and Action Listeners for other objects in the system.

Version:
1.0 11-Aug-2001
Author:
Tom Tessier

Constructor Summary
DesktopListener(DesktopMediator desktopMediator)
          creates the DesktopListener object.
 
Method Summary
 void actionPerformed(ActionEvent e)
          common actionPerformed method that responds to both button and menu events.
 void componentHidden(ComponentEvent e)
          interface placeholder
 void componentMoved(ComponentEvent e)
          updates the preferred size of the desktop when a component is moved
 void componentResized(ComponentEvent e)
          updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized
 void componentShown(ComponentEvent e)
          revalidates the desktop to ensure the viewport has the proper height/width settings when a new component is shown upon the desktop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopListener

public DesktopListener(DesktopMediator desktopMediator)
creates the DesktopListener object.

Parameters:
desktopMediator - a reference to the DesktopMediator object
Method Detail

componentResized

public void componentResized(ComponentEvent e)
updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized

Specified by:
componentResized in interface ComponentListener
Parameters:
e - the ComponentEvent

componentShown

public void componentShown(ComponentEvent e)
revalidates the desktop to ensure the viewport has the proper height/width settings when a new component is shown upon the desktop

Specified by:
componentShown in interface ComponentListener
Parameters:
e - the ComponentEvent

componentMoved

public void componentMoved(ComponentEvent e)
updates the preferred size of the desktop when a component is moved

Specified by:
componentMoved in interface ComponentListener
Parameters:
e - the ComponentEvent

componentHidden

public void componentHidden(ComponentEvent e)
interface placeholder

Specified by:
componentHidden in interface ComponentListener
Parameters:
e - the ComponentEvent

actionPerformed

public void actionPerformed(ActionEvent e)
common actionPerformed method that responds to both button and menu events. If no action command provided in the ActionEvent, selects the frame associated with the current button / menu item (if any).

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the ActionEvent


Copyright © 2001-2003 JScroll.org. All Rights Reserved.