001: /*
002: *
003: *
004: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
005: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
006: *
007: * This program is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU General Public License version
009: * 2 only, as published by the Free Software Foundation.
010: *
011: * This program is distributed in the hope that it will be useful, but
012: * WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * General Public License version 2 for more details (a copy is
015: * included at /legal/license.txt).
016: *
017: * You should have received a copy of the GNU General Public License
018: * version 2 along with this work; if not, write to the Free Software
019: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA
021: *
022: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
023: * Clara, CA 95054 or visit www.sun.com if you need additional
024: * information or have any questions.
025: */
026: package com.sun.midp.chameleon.skins;
027:
028: import com.sun.midp.chameleon.skins.ScreenSkin;
029:
030: import javax.microedition.lcdui.Image;
031: import javax.microedition.lcdui.Font;
032:
033: /**
034: * StringItemSkin represents the properties and values used to render
035: * a StringItem in the javax.microedition.lcdui package.
036: */
037: public class AlertSkin {
038:
039: /**
040: * This field corresponds to ALERT_WIDTH skin property.
041: * See its comment for further details.
042: */
043: public static int WIDTH;
044:
045: /**
046: * This field corresponds to ALERT_HEIGHT skin property.
047: * See its comment for further details.
048: */
049: public static int HEIGHT;
050:
051: /**
052: * This field corresponds to ALERT_ALIGN_X skin property.
053: * See its comment for further details.
054: */
055: public static int ALIGN_X;
056:
057: /**
058: * This field corresponds to ALERT_ALIGN_Y skin property.
059: * See its comment for further details.
060: */
061: public static int ALIGN_Y;
062:
063: /**
064: * This field corresponds to ALERT_MARGIN_H skin property.
065: * See its comment for further details.
066: */
067: public static int MARGIN_H;
068:
069: /**
070: * This field corresponds to ALERT_MARGIN_V skin property.
071: * See its comment for further details.
072: */
073: public static int MARGIN_V;
074:
075: /**
076: * This field corresponds to ALERT_TITLE_ALIGN skin property.
077: * See its comment for further details.
078: */
079: public static int TITLE_ALIGN;
080:
081: /**
082: * This field corresponds to ALERT_TITLE_HEIGHT skin property.
083: * See its comment for further details.
084: */
085: public static int TITLE_HEIGHT;
086:
087: /**
088: * This field corresponds to ALERT_TITLE_MARGIN skin property.
089: * See its comment for further details.
090: */
091: public static int TITLE_MARGIN;
092:
093: /**
094: * This field corresponds to ALERT_TEXT_TITLE_INFO skin property.
095: * See its comment for further details.
096: */
097: public static String TEXT_TITLE_INFO;
098:
099: /**
100: * This field corresponds to ALERT_TEXT_TITLE_WARN skin property.
101: * See its comment for further details.
102: */
103: public static String TEXT_TITLE_WARN;
104:
105: /**
106: * This field corresponds to ALERT_TEXT_TITLE_ERRR skin property.
107: * See its comment for further details.
108: */
109: public static String TEXT_TITLE_ERRR;
110:
111: /**
112: * This field corresponds to ALERT_TEXT_TITLE_ALRM skin property.
113: * See its comment for further details.
114: */
115: public static String TEXT_TITLE_ALRM;
116:
117: /**
118: * This field corresponds to ALERT_TEXT_TITLE_CNFM skin property.
119: * See its comment for further details.
120: */
121: public static String TEXT_TITLE_CNFM;
122:
123: /**
124: * This field corresponds to ALERT_PAD_HORIZ skin property.
125: * See its comment for further details.
126: */
127: public static int PAD_HORIZ;
128:
129: /**
130: * This field corresponds to ALERT_PAD_VERT skin property.
131: * See its comment for further details.
132: */
133: public static int PAD_VERT;
134:
135: /**
136: * This field corresponds to ALERT_SCROLL_AMOUNT skin property.
137: * See its comment for further details.
138: */
139: public static int SCROLL_AMOUNT;
140:
141: /**
142: * This field corresponds to ALERT_TIMEOUT skin property.
143: * See its comment for further details.
144: */
145: public static int TIMEOUT;
146:
147: /**
148: * This field corresponds to ALERT_COLOR_BG skin property.
149: * See its comment for further details.
150: */
151: public static int COLOR_BG;
152:
153: /**
154: * This field corresponds to ALERT_COLOR_TITLE skin property.
155: * See its comment for further details.
156: */
157: public static int COLOR_TITLE;
158:
159: /**
160: * This field corresponds to ALERT_COLOR_FG skin property.
161: * See its comment for further details.
162: */
163: public static int COLOR_FG;
164:
165: /**
166: * This field corresponds to ALERT_FONT_TITLE skin property.
167: * See its comment for further details.
168: */
169: public static Font FONT_TITLE;
170:
171: /**
172: * This field corresponds to ALERT_FONT_TEXT skin property.
173: * See its comment for further details.
174: */
175: public static Font FONT_TEXT;
176:
177: /**
178: * This field corresponds to ALERT_IMAGE_BG skin property.
179: * See its comment for further details.
180: *
181: * A 'null' value for this array means there is no image background
182: * and a solid fill color should be used.
183: */
184: public static Image[] IMAGE_BG;
185:
186: /**
187: * This field corresponds to ALERT_IMAGE_ICON_INFO skin property.
188: * See its comment for further details.
189: */
190: public static Image IMAGE_ICON_INFO;
191:
192: /**
193: * This field corresponds to ALERT_IMAGE_ICON_WARN skin property.
194: * See its comment for further details.
195: */
196: public static Image IMAGE_ICON_WARN;
197:
198: /**
199: * This field corresponds to ALERT_IMAGE_ICON_ERRR skin property.
200: * See its comment for further details.
201: */
202: public static Image IMAGE_ICON_ERRR;
203:
204: /**
205: * This field corresponds to ALERT_IMAGE_ICON_ALRM skin property.
206: * See its comment for further details.
207: */
208: public static Image IMAGE_ICON_ALRM;
209:
210: /**
211: * This field corresponds to ALERT_IMAGE_ICON_CNFM skin property.
212: * See its comment for further details.
213: */
214: public static Image IMAGE_ICON_CNFM;
215:
216: // private constructor
217: private AlertSkin() {
218: }
219:
220: }
|