KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > SIcon


1 /*
2  * $Id: SIcon.java,v 1.4 2005/06/07 12:55:58 neurolabs 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
17 /**
18  * A small fixed size picture, typically used to decorate components.
19  * This icon can be accessed via an URL; this URL is passed to a browser
20  * that fetches it from there.
21  *
22  * @author <a HREF="mailto:H.Zeller@acm.org">Henner Zeller</a>
23  */

24 public interface SIcon extends URLResource {
25     /**
26      * @return the width of the icon, or -1 if unknown.
27      */

28     int getIconWidth();
29
30     /**
31      * @return the height of the icon, or -1 if unknown.
32      */

33     int getIconHeight();
34
35     /**
36      * sets the width of the icon, -1 if unknown.
37      */

38     void setIconWidth(int width);
39
40     /**
41      * sets the height of the icon, -1 if unknown.
42      */

43     void setIconHeight(int height);
44
45     /**
46      * gets the title of the icon, empty String if unknown.
47      */

48     String JavaDoc getIconTitle();
49
50     /**
51      * sets the title of the icon, empty String if unknown.
52      */

53     void setIconTitle(String JavaDoc title);
54 }
55
56
57
Popular Tags