1 17 18 package org.objectweb.jac.aspects.gui.swing; 19 20 import org.objectweb.jac.core.Collaboration; 21 import java.awt.event.MouseEvent ; 22 import java.awt.event.MouseListener ; 23 24 25 public class CollaborationInitializer implements MouseListener { 26 static CollaborationInitializer singleton = new CollaborationInitializer(); 27 28 public static CollaborationInitializer get() { 29 return singleton; 30 } 31 32 34 public void mouseClicked(MouseEvent event) { 35 reset(); 36 } 37 public void mouseEntered(MouseEvent event) { 38 reset(); 39 } 40 public void mouseExited(MouseEvent event) { 41 reset(); 42 } 43 public void mousePressed(MouseEvent event) { 44 reset(); 45 } 46 public void mouseReleased(MouseEvent event) { 47 reset(); 48 } 49 50 void reset() { 51 Collaboration.get().reset(); 52 } 53 } 54 | Popular Tags |