01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings;
14:
15: /**
16: * For small fixed size pictures, typically used to decorate components.
17: * This icon can be accessed via an URL; this URL is passed to a browser
18: * that fetches it from there.
19: *
20: * @author <a href="mailto:H.Zeller@acm.org">Henner Zeller</a>
21: */
22: public interface SIcon extends URLResource {
23: /**
24: * @return the width of the icon, or -1 if unknown.
25: */
26: int getIconWidth();
27:
28: /**
29: * @return the height of the icon, or -1 if unknown.
30: */
31: int getIconHeight();
32:
33: /**
34: * sets the width of the icon, -1 if unknown.
35: */
36: void setIconWidth(int width);
37:
38: /**
39: * sets the height of the icon, -1 if unknown.
40: */
41: void setIconHeight(int height);
42:
43: /**
44: * gets the title of the icon, empty String if unknown.
45: */
46: String getIconTitle();
47:
48: /**
49: * sets the title of the icon, empty String if unknown.
50: */
51: void setIconTitle(String title);
52: }
|