KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > xam > ui > layout > SplitterBarMouseListener


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.xam.ui.layout;
21
22 import java.awt.event.MouseAdapter JavaDoc;
23 import java.awt.event.MouseEvent JavaDoc;
24
25 /**
26  * <p>Use this code at your own risk! MageLang Institute is not
27  * responsible for any damage caused directly or indirctly through
28  * use of this code.
29  * <p><p>
30  * <b>SOFTWARE RIGHTS</b>
31  * <p>
32  * MageLang support classes, version 1.0, MageLang Institute
33  * <p>
34  * We reserve no legal rights to this code--it is fully in the
35  * public domain. An individual or company may do whatever
36  * they wish with source code distributed with it, including
37  * including the incorporation of it into commerical software.
38  *
39  * <p>However, this code cannot be sold as a standalone product.
40  * <p>
41  * We encourage users to develop software with this code. However,
42  * we do ask that credit is given to us for developing it
43  * By "credit", we mean that if you use these components or
44  * incorporate any source code into one of your programs
45  * (commercial product, research project, or otherwise) that
46  * you acknowledge this fact somewhere in the documentation,
47  * research report, etc... If you like these components and have
48  * developed a nice tool with the output, please mention that
49  * you developed it using these components. In addition, we ask that
50  * the headers remain intact in our source code. As long as these
51  * guidelines are kept, we expect to continue enhancing this
52  * system and expect to make other tools available as they are
53  * completed.
54  * <p>
55  * The MageLang Support Classes Gang:
56  * @version MageLang Support Classes 1.0, MageLang Insitute, 1997
57  * @author <a HREF="http:www.scruz.net/~thetick">Scott Stanchfield</a>, <a HREF=http://www.MageLang.com>MageLang Institute</a>
58 */

59 class SplitterBarMouseListener extends MouseAdapter JavaDoc {
60     private JSplitterBar s;
61
62     public SplitterBarMouseListener(JSplitterBar s) {this.s = s;}
63     public void mouseEntered(MouseEvent JavaDoc e) {s.mouseEnter(e);}
64     public void mouseExited(MouseEvent JavaDoc e) {s.mouseExit(e);}
65     public void mouseReleased(MouseEvent JavaDoc e) {s.mouseRelease(e);}
66 }
67
Popular Tags