KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > xam > ui > column > Column


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.column;
21
22 import java.beans.PropertyChangeListener JavaDoc;
23 import javax.swing.JComponent JavaDoc;
24
25 /**
26  * A Column repesents a visual component in a ColumnView.
27  *
28  * @author Todd Fast, todd.fast@sun.com
29  * @author Nathan Fiedler
30  */

31 public interface Column {
32     /** Property name for the title property. */
33     public static final String JavaDoc PROP_TITLE = "title";
34
35     /**
36      * Adds the given property change listener to this column.
37      *
38      * @param listener PropertyChangeListener to add.
39      */

40     void addPropertyChangeListener(PropertyChangeListener JavaDoc listener);
41
42     /**
43      * Returns the visual component for this column.
44      *
45      * @return visual component.
46      */

47     JComponent JavaDoc getComponent();
48
49     /**
50      * Returns the description of this column. This may be used for setting
51      * the accessible description of related user interface components.
52      *
53      * @return column description.
54      */

55     String JavaDoc getDescription();
56
57     /**
58      * Returns the title of this column.
59      *
60      * @return column title.
61      */

62     String JavaDoc getTitle();
63
64     /**
65      * Removes the given property change listener from this column.
66      *
67      * @param listener PropertyChangeListener to remove.
68      */

69     void removePropertyChangeListener(PropertyChangeListener JavaDoc listener);
70 }
71
Popular Tags