KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > gui > misc > Icon


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.gui.misc;
14
15 /**
16  * @author Vinzenz Wyser
17  * @version 2.0
18  */

19 public class Icon {
20
21     public static final String JavaDoc BASEPATH = "/admindocroot/icons"; //$NON-NLS-1$
22

23     public static final int SIZE_SMALL = 16;
24
25     public static final int SIZE_MEDIUM = 24;
26
27     public static final int SIZE_LARGE = 32;
28
29     public static final int SIZE_XLARGE = 48;
30
31     public static final String JavaDoc PAGE = "folder_cubes"; //$NON-NLS-1$
32

33     public static final String JavaDoc CONTENTNODE = "cubes"; //$NON-NLS-1$
34

35     public static final String JavaDoc NODEDATA = "cube_green"; //$NON-NLS-1$
36

37     public static final String JavaDoc WEBPAGE = "document_plain_earth"; //$NON-NLS-1$
38

39     public static final String JavaDoc ROLE = "hat_white"; //$NON-NLS-1$
40

41     public static final String JavaDoc USER = "pawn_glass_yellow"; //$NON-NLS-1$
42

43     public String JavaDoc getSrc(String JavaDoc iconName, int size) {
44         return Icon.BASEPATH + "/" + size + "/" + iconName + ".gif"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
45
}
46 }
47
Popular Tags