Source Code Cross Referenced for Resource.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » iv » flash » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » Laszlo 4.0.10 » org.openlaszlo.iv.flash.util 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Id: Resource.java,v 1.9 2002/08/02 03:15:17 skavish Exp $
003:         *
004:         * ===========================================================================
005:         *
006:         * The JGenerator Software License, Version 1.0
007:         *
008:         * Copyright (c) 2000 Dmitry Skavish (skavish@usa.net). All rights reserved.
009:         *
010:         * Redistribution and use in source and binary forms, with or without
011:         * modification, are permitted provided that the following conditions are met:
012:         *
013:         * 1. Redistributions of source code must retain the above copyright
014:         *    notice, this list of conditions and the following disclaimer.
015:         *
016:         * 2. Redistributions in binary form must reproduce the above copyright
017:         *    notice, this list of conditions and the following disclaimer in
018:         *    the documentation and/or other materials provided with the
019:         *    distribution.
020:         *
021:         * 3. The end-user documentation included with the redistribution, if
022:         *    any, must include the following acknowlegement:
023:         *    "This product includes software developed by Dmitry Skavish
024:         *     (skavish@usa.net, http://www.flashgap.com/)."
025:         *    Alternately, this acknowlegement may appear in the software itself,
026:         *    if and wherever such third-party acknowlegements normally appear.
027:         *
028:         * 4. The name "The JGenerator" must not be used to endorse or promote
029:         *    products derived from this software without prior written permission.
030:         *    For written permission, please contact skavish@usa.net.
031:         *
032:         * 5. Products derived from this software may not be called "The JGenerator"
033:         *    nor may "The JGenerator" appear in their names without prior written
034:         *    permission of Dmitry Skavish.
035:         *
036:         * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
037:         * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
038:         * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
039:         * DISCLAIMED.  IN NO EVENT SHALL DMITRY SKAVISH OR THE OTHER
040:         * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
041:         * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
042:         * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
043:         * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
044:         * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
045:         * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
046:         * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
047:         * SUCH DAMAGE.
048:         *
049:         */
050:
051:        package org.openlaszlo.iv.flash.util;
052:
053:        import java.util.*;
054:
055:        /**
056:         * Resources
057:         * <P>
058:         * Resource key has to have digit in first character from 0 to 4.
059:         * <ol start=0>
060:         * <li>FATAL
061:         * <li>ERROR
062:         * <li>WARN
063:         * <li>INFO
064:         * <li>DEBUG
065:         * </ol>
066:         *
067:         * @author Dmitry Skavish
068:         */
069:        public class Resource extends ListResourceBundle {
070:
071:            public static final String INFINITELOOP = "0_000";
072:            public static final String GENCMDERR = "2_001";
073:            public static final String UNKNOWNTAG = "4_002";
074:            public static final String UNKNOWNGENTEXT = "4_003";
075:            public static final String CMDNOTFOUND = "1_004";
076:            public static final String CMDNOTCREATED = "1_005";
077:            public static final String ERRCMDFILEREAD = "1_006";
078:            public static final String CMDSCRIPTNOTFOUND = "1_007";
079:            public static final String INVALRATEVALUE = "1_008";
080:            public static final String INVALURL = "1_009";
081:            public static final String ERRDATAREAD = "1_00a";
082:            public static final String INVALDATASOURCE = "1_00b";
083:            public static final String INVALALPHA = "1_00c";
084:            public static final String COLNOTFOUNDCMD = "1_00d";
085:            public static final String ERRPARSETEMPLATE = "0_00e";
086:            public static final String CANTREADHEADER = "0_00f";
087:            public static final String ILLEGALHEADER = "0_010";
088:            public static final String FILETOOSHORT = "0_011";
089:            public static final String FILETOOBIG = "0_012";
090:            public static final String ERRWRITINGFILE = "1_013";
091:            public static final String ERRREADINGFILE = "1_014";
092:            public static final String FILENOTFOUND = "1_015";
093:            public static final String UNKNOWNERROR = "1_016";
094:            public static final String REENCODINGJPEG = "3_018";
095:            public static final String INVLEXTERNALFONT = "1_019";
096:            public static final String CLIPORDEFSYM = "1_01a";
097:            public static final String ROWSORCOLS = "1_01b";
098:            public static final String BORDERTOOTHICK = "1_01c";
099:            public static final String PROCESSREQUEST = "3_01d";
100:            public static final String ERRREADINGGIF = "1_01e";
101:            public static final String ERRREADINGJPG = "1_01f";
102:            public static final String ERRDOCMD = "1_020";
103:            public static final String ERRREADINGPNG = "1_021";
104:            public static final String UNSUPMEDIA = "1_022";
105:            public static final String NOTEXT = "1_023";
106:            public static final String CONNECTINGTO = "3_024";
107:            public static final String RETRIEVINGCONTENT = "3_025";
108:            public static final String INVLMP3LAYER = "1_026";
109:            public static final String INVLMP3 = "1_027";
110:            public static final String INVLMP3FREQUENCY = "1_028";
111:            public static final String NOGRAPHCONTEXT = "1_029";
112:            public static final String NOMATCHINGCONTEXTS = "1_02a";
113:            public static final String EXPECTSTDCONTEXT = "1_02b";
114:            public static final String ERRSETPROPERTY = "1_02e";
115:            public static final String CANTLOADPROPERTIES = "1_02f";
116:            public static final String CANTLOADSYSPROPS = "1_030";
117:            public static final String SQLQUERY = "3_031";
118:            public static final String BADHIGHORLOW = "1_032";
119:            public static final String PROCESSERROR = "1_033";
120:            public static final String REQUESTFROM = "3_034";
121:            public static final String COLNOTFOUNDCMD1 = "1_035";
122:            public static final String RESCALINGJPEG = "3_036";
123:            public static final String JSERROR = "1_037";
124:            public static final String SENDERROR = "1_038";
125:            public static final String INLINECMDNOTFOUND = "1_039";
126:            public static final String INLINECMDERROR = "1_03a";
127:            public static final String CMDINSTNOTFOUND = "1_03b";
128:            public static final String SERVERSTARTED = "3_03c";
129:            public static final String ASASMREQFLASH5 = "2_03d";
130:
131:            private static final Object[][] contents = {
132:                    { INFINITELOOP, "Infinite loop in script processing" },
133:                    { GENCMDERR,
134:                            "Generator command ''{0}'' can be applied to instance only" },
135:                    { UNKNOWNTAG, "Unknown tag {0} found" },
136:                    { UNKNOWNGENTEXT, "Unknown generator text subtag {0} found" },
137:                    { CMDNOTFOUND, "Generator Command ''{0}'' not found" },
138:                    { CMDNOTCREATED, "Error creating Generator Command ''{0}''" },
139:                    { ERRCMDFILEREAD,
140:                            "Error reading file ''{0}'' in command {1}" },
141:                    { CMDSCRIPTNOTFOUND,
142:                            "Script ''{0}'' not found in command {1}" },
143:                    { INVALRATEVALUE,
144:                            "Invalid rate {0} in command SetMovieParameters" },
145:                    { INVALURL, "Invalid url ''{0}''" },
146:                    { ERRDATAREAD,
147:                            "Error reading data from datasource ''{0}'' in command {1}" },
148:                    { INVALDATASOURCE,
149:                            "Invalid datasource ''{0}'' in command {1}" },
150:                    { INVALALPHA, "Invalid percent value {0} in command {1}" },
151:                    { COLNOTFOUNDCMD,
152:                            "Command {0}: Column {1} not found in datasource {2}" },
153:                    { COLNOTFOUNDCMD1,
154:                            "Command {0}: One of the following columns are required in datasource: {1}" },
155:                    { ERRPARSETEMPLATE, "Error parsing template ''{0}''" },
156:                    { CANTREADHEADER,
157:                            "Cannot read the header of template ''{0}''" },
158:                    { ILLEGALHEADER,
159:                            "Template ''{0}'' has illegal header - not a Shockwave Flash File" },
160:                    { FILETOOSHORT, "Template ''{0}'' size is too short" },
161:                    { FILETOOBIG, "Template ''{0}'' too big to fit into memory" },
162:                    { ERRWRITINGFILE, "Error writing file ''{0}''" },
163:                    { ERRREADINGFILE, "Error reading file ''{0}''" },
164:                    { FILENOTFOUND, "File ''{0}'' not found" },
165:                    { UNKNOWNERROR,
166:                            "Unexpected exception caught, please send the log file to developers" },
167:                    { REENCODINGJPEG, "reEncoding JPEG image with quality {0}" },
168:                    { RESCALINGJPEG,
169:                            "reScaling JPEG image with quality {2}, new width={0}, height={1}" },
170:                    { INVLEXTERNALFONT, "Cannot find any fonts in file ''{0}''" },
171:                    { CLIPORDEFSYM,
172:                            "Table object has to have either Clip column or DefaultSymbol" },
173:                    { ROWSORCOLS,
174:                            "Invalid number of rows or columns in command {0}" },
175:                    { BORDERTOOTHICK, "Border is too thick in Table command" },
176:                    {
177:                            PROCESSREQUEST,
178:                            "Processed file ''{0}'', output size {1} bytes, processing time {2}ms, total time {3}ms" },
179:                    { ERRREADINGGIF, "Error reading GIF stream" },
180:                    { ERRREADINGJPG, "Error reading JPEG stream" },
181:                    {
182:                            ERRDOCMD,
183:                            "Error occured in file ''{0}'', movie clip ''{1}'', frame ''{2}'', command ''{3}''" },
184:                    { ERRREADINGPNG, "Error reading PNG stream" },
185:                    { UNSUPMEDIA, "Unsupported media file ''{0}''" },
186:                    { NOTEXT, "No text for 'InsertText' command" },
187:                    { CONNECTINGTO, "Connecting to {0} ..." },
188:                    { RETRIEVINGCONTENT, "Retrieving content of {0} ..." },
189:                    { INVLMP3LAYER,
190:                            "Invalid MP3 - only MPEG Audio Layer 3 supported" },
191:                    { INVLMP3, "Invalid MP3 header" },
192:                    { INVLMP3FREQUENCY,
193:                            "Invalid MP3 frequency - must be 11025Hz, 22050Hz or 44100Hz" },
194:                    { NOGRAPHCONTEXT,
195:                            "Current context has no GraphContext ancestor" },
196:                    { NOMATCHINGCONTEXTS,
197:                            "No ancestor provided a match for ''{0}''" },
198:                    { EXPECTSTDCONTEXT,
199:                            "Text (tabular) context has been expected" },
200:                    {
201:                            ERRSETPROPERTY,
202:                            "Please set property 'org.openlaszlo.iv.flash.installDir' to the directory where the JGenerator is installed" },
203:                    { CANTLOADPROPERTIES, "Cannot load properties file" },
204:                    { CANTLOADSYSPROPS,
205:                            "Cannot retrieve system properties, using defaults" },
206:                    {
207:                            SQLQUERY,
208:                            "SQL Query \n   driver: {0}\n   url: {1}\n   user/password: {2}/{3}\n   query: {4}" },
209:                    {
210:                            BADHIGHORLOW,
211:                            "Command {0}: Either HIGH or LOW is not extreme value in row {1} of datasource {2}" },
212:                    { PROCESSERROR, "Error processing template ''{0}''" },
213:                    { SENDERROR,
214:                            "Error writing to output stream during processing of template ''{0}''" },
215:                    { REQUESTFROM, "Processing request from ''{0}''" },
216:                    { JSERROR, "JavaScript: {0}" },
217:                    { INLINECMDNOTFOUND, "Inline command {0} not found" },
218:                    { INLINECMDERROR, "Error executing inline command {0}" },
219:                    { CMDINSTNOTFOUND,
220:                            "Could not find an instance for command {0}. Set parameter 'instancename'." },
221:                    { SERVERSTARTED, "JGenerator servlet started." },
222:                    { ASASMREQFLASH5,
223:                            "ASAssembler requires SWF version to be 5+" }, };
224:
225:            public Object[][] getContents() {
226:                return contents;
227:            }
228:
229:            public static String get(String key) {
230:                return bundle.getString(key);
231:            }
232:
233:            private static ResourceBundle bundle;
234:
235:            public static ResourceBundle getInstance() {
236:                return bundle;
237:            }
238:
239:            static {
240:                bundle = ResourceBundle.getBundle(Resource.class.getName());
241:            }
242:
243:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.