PageRenderTime 99ms CodeModel.GetById 96ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/CommonControls/common/gui/ListItem.java

#
Java | 45 lines | 8 code | 7 blank | 30 comment | 0 complexity | 4e1d66789065d16af16a2a799a78c0fd MD5 | raw file
 1/*
 2 *  ListItem.java
 3 *  Copyright (C) 2002 Calvin Yu
 4 *
 5 *  This program is free software; you can redistribute it and/or
 6 *  modify it under the terms of the GNU General Public License
 7 *  as published by the Free Software Foundation; either version 2
 8 *  of the License, or any later version.
 9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 *  GNU General Public License for more details.
14 *
15 *  You should have received a copy of the GNU General Public License
16 *  along with this program; if not, write to the Free Software
17 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 */
19
20package common.gui;
21
22import javax.swing.Icon;
23
24/**
25 * An item in a GUI list control.
26 */
27public interface ListItem
28{
29
30   /**
31    * Returns the label for the item.
32    */
33   String getLabel();
34
35   /**
36    * Returns the icon for the item.
37    */
38   Icon getIcon();
39
40   /**
41    * Returns the actual item.
42    */
43   Object getActualItem();
44
45 }