01: /* Photo.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Tue Jun 8 10:48:36 2004, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2004 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.util.media;
20:
21: import org.zkoss.image.Image;
22: import org.zkoss.util.ModificationException;
23:
24: /**
25: * Represents an object is associated with images.
26: *
27: * @author tomyeh
28: */
29: public interface Photo {
30: /** Returns the photo of this object.
31: */
32: public Image getPhoto();
33:
34: /** Sets the photo of this object.
35: */
36: public void setPhoto(Image photo) throws ModificationException;
37:
38: /** Returns the avatar (icon) of this object.
39: */
40: public Image getAvatar();
41:
42: /** Sets the avator (icon) of this object.
43: */
44: public void setAvatar(Image avatar) throws ModificationException;
45: }
|