KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > core > config > GuiItem


1 //The contents of this file are subject to the Mozilla Public License Version 1.1
2
//(the "License"); you may not use this file except in compliance with the
3
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
4
//
5
//Software distributed under the License is distributed on an "AS IS" basis,
6
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7
//for the specific language governing rights and
8
//limitations under the License.
9
//
10
//The Original Code is "The Columba Project"
11
//
12
//The Initial Developers of the Original Code are Frederik Dietz and Timo Stich.
13
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
14
//
15
//All Rights Reserved.
16
package org.columba.core.config;
17
18 import org.columba.core.xml.XmlElement;
19
20
21 /**
22  * User Interface specific options, including the Look&Feel, font settings,
23  * toolbar settings.
24  *
25  * @author fdietz
26  */

27
28 //
29
// options.xml:
30
//
31
//<gui>
32
// <theme name="Plastic" theme="Experience Blue"></theme>
33
// <fonts overwrite="false">
34
// <text name="Default" size="12"></text>
35
// <main name="Default" size="12"></main>
36
// </fonts>
37
// <toolbar text_position="false" enable_icon="true" enable_text="true"></toolbar>
38
//</gui>
39

40 public class GuiItem extends DefaultItem {
41     
42     public final static String JavaDoc THEME = "theme"; //$NON-NLS-1$
43
public final static String JavaDoc NAME = "name"; //$NON-NLS-1$
44

45     public final static String JavaDoc FONT = "fonts"; //$NON-NLS-1$
46
public final static String JavaDoc FONT_MAIN = "fonts/main"; //$NON-NLS-1$
47
public final static String JavaDoc FONT_TEXT = "fonts/text"; //$NON-NLS-1$
48
public final static String JavaDoc OVERWRITE_BOOL = "overwrite"; //$NON-NLS-1$
49
public final static String JavaDoc SIZE_INT = "size"; //$NON-NLS-1$
50

51     public final static String JavaDoc TOOLBAR = "toolbar"; //$NON-NLS-1$
52
public final static String JavaDoc TEXT_POSITION_BOOL = "text_position"; //$NON-NLS-1$
53
public final static String JavaDoc ENABLE_ICON_BOOL = "enable_icon"; //$NON-NLS-1$
54
public final static String JavaDoc ENABLE_TEXT_BOOL = "enable_text"; //$NON-NLS-1$
55

56     public GuiItem(final XmlElement theRoot) {
57         super(theRoot);
58     }
59 }
60
Popular Tags