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.resources.*;
029:
030: import javax.microedition.lcdui.Image;
031: import javax.microedition.lcdui.Font;
032:
033: /**
034: * TextFieldSkin represents the properties and values used to render
035: * a TextField in the javax.microedition.lcdui package.
036: */
037: public class TextFieldSkin {
038:
039: /**
040: * This field corresponds to TEXTFIELD_PAD_H skin property.
041: * See its comment for further details.
042: */
043: public static int PAD_H;
044:
045: /**
046: * This field corresponds to TEXTFIELD_PAD_V skin property.
047: * See its comment for further details.
048: */
049: public static int PAD_V;
050:
051: /**
052: * This field corresponds to TEXTFIELD_BOX_MARGIN skin property.
053: * See its comment for further details.
054: */
055: public static int BOX_MARGIN;
056:
057: /**
058: * This field corresponds to TEXTFIELD_WIDTH_CARET skin property.
059: * See its comment for further details.
060: */
061: public static int WIDTH_CARET;
062:
063: /**
064: * This field corresponds to TEXTFIELD_SCRL_RATE skin property.
065: * See its comment for further details.
066: */
067: public static int SCROLL_RATE;
068:
069: /**
070: * This field corresponds to TEXTFIELD_SCRL_SPD skin property.
071: * See its comment for further details.
072: */
073: public static int SCROLL_SPEED;
074:
075: /**
076: * This field corresponds to TEXTFIELD_COLOR_FG skin property.
077: * See its comment for further details.
078: */
079: public static int COLOR_FG;
080:
081: /**
082: * This field corresponds to TEXTFIELD_COLOR_BG skin property.
083: * See its comment for further details.
084: */
085: public static int COLOR_BG;
086:
087: /**
088: * This field corresponds to TEXTFIELD_COLOR_BRDR skin property.
089: * See its comment for further details.
090: */
091: public static int COLOR_BORDER;
092:
093: /**
094: * This field corresponds to TEXTFIELD_COLOR_BRDR_SHD skin property.
095: * See its comment for further details.
096: */
097: public static int COLOR_BORDER_SHD;
098:
099: /**
100: * This field corresponds to TEXTFIELD_COLOR_FG_UE skin property.
101: * See its comment for further details.
102: */
103: public static int COLOR_FG_UE;
104:
105: /**
106: * This field corresponds to TEXTFIELD_COLOR_BG_UE skin property.
107: * See its comment for further details.
108: */
109: public static int COLOR_BG_UE;
110:
111: /**
112: * This field corresponds to TEXTFIELD_COLOR_BRDR_UE skin property.
113: * See its comment for further details.
114: */
115: public static int COLOR_BORDER_UE;
116:
117: /**
118: * This field corresponds to TEXTFIELD_COLOR_BRDR_SHD_UE skin property.
119: * See its comment for further details.
120: */
121: public static int COLOR_BORDER_SHD_UE;
122:
123: /**
124: * This field corresponds to TEXTFIELD_IMAGE_BG skin property.
125: * See its comment for further details.
126: *
127: * A 'null' value for this array means there is no image background
128: * and a solid fill color should be used.
129: */
130: public static Image[] IMAGE_BG;
131:
132: /**
133: * This field corresponds to TEXTFIELD_IMAGE_BG_UE skin property.
134: * See its comment for further details.
135: *
136: * A 'null' value for this array means there is no image background
137: * and a solid fill color should be used.
138: */
139: public static Image[] IMAGE_BG_UE;
140:
141: // private constructor
142: private TextFieldSkin() {
143: }
144:
145: }
|