de.uni_paderborn.fujaba.fsa.listener
Class CollapsableMouseListener

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.listener.CollapsableMouseListener
All Implemented Interfaces:
AscendDescendMouseHandler.Descend, java.util.EventListener, java.awt.event.MouseListener

public class CollapsableMouseListener
extends java.lang.Object
implements java.awt.event.MouseListener, AscendDescendMouseHandler.Descend

This listener collapses or uncollapses a collapsable component.

Version:
$Revision: 1.14 $
Author:
$Author: schneider $

Field Summary
private  java.awt.Rectangle collapsableRect
          Internal used rectangle to decide if the mouse event occured on the collapse button of the JCollapsable component.
private static CollapsableMouseListener listener
          Internal used attribute to implement the Singleton design pattern.
 
Constructor Summary
private CollapsableMouseListener()
          The private constructor of the Singleton design pattern.
 
Method Summary
static CollapsableMouseListener get()
          The public access method of the Singleton design pattern to get the system wide instance.
 void mouseClicked(java.awt.event.MouseEvent event)
          Implements the interface method mouseClicked of the MouseListener interface. if the mouse was clicked on the collapse button of a collapsable component this method toggles the collapsed status of the component.
 void mouseEntered(java.awt.event.MouseEvent event)
          Implements the interface method mouseEntered of the MouseListener interface.
 void mouseExited(java.awt.event.MouseEvent event)
          Implements the interface method mouseExited of the MouseListener interface.
 void mousePressed(java.awt.event.MouseEvent event)
          Implements the interface method mousePressed of the MouseListener interface.
 void mouseReleased(java.awt.event.MouseEvent event)
          Implements the interface method mouseReleased of the MouseListener interface.
private  void proofCollapsable(JCollapsable tmpCollapsable, java.awt.event.MouseEvent event)
          proofs if the mouse event occured on the collapse button of the collapsable component.
private  void refresh(JCollapsable collapsable)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

private static CollapsableMouseListener listener
Internal used attribute to implement the Singleton design pattern. Only one system wide instance of this listener is needed.


collapsableRect

private java.awt.Rectangle collapsableRect
Internal used rectangle to decide if the mouse event occured on the collapse button of the JCollapsable component.

Constructor Detail

CollapsableMouseListener

private CollapsableMouseListener()
The private constructor of the Singleton design pattern. The constructor is defined private and is empty.

Method Detail

get

public static CollapsableMouseListener get()
The public access method of the Singleton design pattern to get the system wide instance. This method initializes the system wide instance when it is called the first time.

Returns:
No description provided

refresh

private void refresh(JCollapsable collapsable)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
collapsable - No description provided

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)
Implements the interface method mouseClicked of the MouseListener interface. if the mouse was clicked on the collapse button of a collapsable component this method toggles the collapsed status of the component.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
event - No description provided

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent event)
Implements the interface method mouseEntered of the MouseListener interface. This method is empty.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
event - No description provided

mouseExited

public void mouseExited(java.awt.event.MouseEvent event)
Implements the interface method mouseExited of the MouseListener interface. This method is empty.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
event - No description provided

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)
Implements the interface method mousePressed of the MouseListener interface. This method is empty.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
event - No description provided

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Implements the interface method mouseReleased of the MouseListener interface. This method is empty.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
event - No description provided

proofCollapsable

private void proofCollapsable(JCollapsable tmpCollapsable,
                              java.awt.event.MouseEvent event)
proofs if the mouse event occured on the collapse button of the collapsable component.

Parameters:
tmpCollapsable - No description provided
event - No description provided