KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > SToolTipManager


1 /*
2  * $Id: SToolTipManager.java,v 1.4 2004/12/01 07:54:07 hengels Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings;
15
16 import org.wings.session.SessionManager;
17
18 /**
19  * @author hengels
20  * @version $Revision: 1.4 $
21  */

22 public class SToolTipManager {
23     private int initialDelay = 1000;
24     private int dismissDelay = 3000;
25     private boolean followMouse = true;
26
27     public int getInitialDelay() {
28         return initialDelay;
29     }
30
31     public void setInitialDelay(int initialDelay) {
32         this.initialDelay = initialDelay;
33     }
34
35     public int getDismissDelay() {
36         return dismissDelay;
37     }
38
39     public void setDismissDelay(int dismissDelay) {
40         this.dismissDelay = dismissDelay;
41     }
42
43     public boolean isFollowMouse() {
44         return followMouse;
45     }
46
47     public void setFollowMouse(boolean followMouse) {
48         this.followMouse = followMouse;
49     }
50
51     static SToolTipManager sharedInstance() {
52         return SessionManager.getSession().getToolTipManager();
53     }
54 }
55
Popular Tags