Source Code Cross Referenced for FontTag.java in  » Ajax » dwr » jsx3 » html » 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 » dwr » jsx3.html 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2005 Joe Walker
003:         *
004:         * Licensed under the Apache License, Version 2.0 (the "License");
005:         * you may not use this file except in compliance with the License.
006:         * You may obtain a copy of the License at
007:         *
008:         *     http://www.apache.org/licenses/LICENSE-2.0
009:         *
010:         * Unless required by applicable law or agreed to in writing, software
011:         * distributed under the License is distributed on an "AS IS" BASIS,
012:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013:         * See the License for the specific language governing permissions and
014:         * limitations under the License.
015:         */
016:        package jsx3.html;
017:
018:        import org.directwebremoting.ScriptBuffer;
019:        import org.directwebremoting.proxy.ScriptProxy;
020:        import org.directwebremoting.proxy.io.Context;
021:
022:        /**
023:         * Represents an HTML element that defines font styles.
024:
025:         This class is available only when the Charting add-in is enabled.
026:         * @author Joe Walker [joe at getahead dot org]
027:         * @author DRAPGEN - Dwr Reverse Ajax Proxy GENerator
028:         */
029:        public class FontTag extends jsx3.lang.Object {
030:            /**
031:             * All reverse ajax proxies need context to work from
032:             * @param scriptProxy The place we are writing scripts to
033:             * @param context The script that got us to where we are now
034:             */
035:            public FontTag(Context context, String extension,
036:                    ScriptProxy scriptProxy) {
037:                super (context, extension, scriptProxy);
038:            }
039:
040:            /**
041:             * Returns the fontFamily field.
042:             * @param callback fontFamily
043:             */
044:            @SuppressWarnings("unchecked")
045:            public void getFontFamily(
046:                    org.directwebremoting.proxy.Callback<String> callback) {
047:                ScriptBuffer script = new ScriptBuffer();
048:                String callbackPrefix = "";
049:
050:                if (callback != null) {
051:                    callbackPrefix = "var reply = ";
052:                }
053:
054:                script.appendCall(callbackPrefix + getContextPath()
055:                        + "getFontFamily");
056:
057:                if (callback != null) {
058:                    String key = org.directwebremoting.extend.CallbackHelper
059:                            .saveCallback(callback, String.class);
060:                    script
061:                            .appendCall("__System.activateCallback", key,
062:                                    "reply");
063:                }
064:
065:                getScriptProxy().addScript(script);
066:            }
067:
068:            /**
069:             * Sets the fontFamily field.
070:             * @param fontFamily the new value for fontFamily
071:             */
072:            public void setFontFamily(String fontFamily) {
073:                ScriptBuffer script = new ScriptBuffer();
074:                script.appendCall(getContextPath() + "setFontFamily",
075:                        fontFamily);
076:                getScriptProxy().addScript(script);
077:            }
078:
079:            /**
080:             * Returns the fontsize field.
081:             * @param callback fontsize
082:             */
083:            @SuppressWarnings("unchecked")
084:            public void getFontSize(
085:                    org.directwebremoting.proxy.Callback<String> callback) {
086:                ScriptBuffer script = new ScriptBuffer();
087:                String callbackPrefix = "";
088:
089:                if (callback != null) {
090:                    callbackPrefix = "var reply = ";
091:                }
092:
093:                script.appendCall(callbackPrefix + getContextPath()
094:                        + "getFontSize");
095:
096:                if (callback != null) {
097:                    String key = org.directwebremoting.extend.CallbackHelper
098:                            .saveCallback(callback, String.class);
099:                    script
100:                            .appendCall("__System.activateCallback", key,
101:                                    "reply");
102:                }
103:
104:                getScriptProxy().addScript(script);
105:            }
106:
107:            /**
108:             * Sets the fontsize field.
109:             * @param fontSize the new value for fontsize
110:             */
111:            public void setFontSize(int fontSize) {
112:                ScriptBuffer script = new ScriptBuffer();
113:                script.appendCall(getContextPath() + "setFontSize", fontSize);
114:                getScriptProxy().addScript(script);
115:            }
116:
117:            /**
118:             * Sets the fontsize field.
119:             * @param fontSize the new value for fontsize
120:             */
121:            public void setFontSize(String fontSize) {
122:                ScriptBuffer script = new ScriptBuffer();
123:                script.appendCall(getContextPath() + "setFontSize", fontSize);
124:                getScriptProxy().addScript(script);
125:            }
126:
127:            /**
128:             * Returns the fontStyle field.
129:             * @param callback fontStyle
130:             */
131:            @SuppressWarnings("unchecked")
132:            public void getFontStyle(
133:                    org.directwebremoting.proxy.Callback<String> callback) {
134:                ScriptBuffer script = new ScriptBuffer();
135:                String callbackPrefix = "";
136:
137:                if (callback != null) {
138:                    callbackPrefix = "var reply = ";
139:                }
140:
141:                script.appendCall(callbackPrefix + getContextPath()
142:                        + "getFontStyle");
143:
144:                if (callback != null) {
145:                    String key = org.directwebremoting.extend.CallbackHelper
146:                            .saveCallback(callback, String.class);
147:                    script
148:                            .appendCall("__System.activateCallback", key,
149:                                    "reply");
150:                }
151:
152:                getScriptProxy().addScript(script);
153:            }
154:
155:            /**
156:             * Sets the fontStyle field.
157:             * @param fontStyle the new value for fontStyle
158:             */
159:            public void setFontStyle(String fontStyle) {
160:                ScriptBuffer script = new ScriptBuffer();
161:                script.appendCall(getContextPath() + "setFontStyle", fontStyle);
162:                getScriptProxy().addScript(script);
163:            }
164:
165:            /**
166:             * Returns the fontWeight field.
167:             * @param callback fontWeight
168:             */
169:            @SuppressWarnings("unchecked")
170:            public void getFontWeight(
171:                    org.directwebremoting.proxy.Callback<String> callback) {
172:                ScriptBuffer script = new ScriptBuffer();
173:                String callbackPrefix = "";
174:
175:                if (callback != null) {
176:                    callbackPrefix = "var reply = ";
177:                }
178:
179:                script.appendCall(callbackPrefix + getContextPath()
180:                        + "getFontWeight");
181:
182:                if (callback != null) {
183:                    String key = org.directwebremoting.extend.CallbackHelper
184:                            .saveCallback(callback, String.class);
185:                    script
186:                            .appendCall("__System.activateCallback", key,
187:                                    "reply");
188:                }
189:
190:                getScriptProxy().addScript(script);
191:            }
192:
193:            /**
194:             * Sets the fontWeight field.
195:             * @param fontWeight the new value for fontWeight
196:             */
197:            public void setFontWeight(String fontWeight) {
198:                ScriptBuffer script = new ScriptBuffer();
199:                script.appendCall(getContextPath() + "setFontWeight",
200:                        fontWeight);
201:                getScriptProxy().addScript(script);
202:            }
203:
204:            /**
205:             * Returns the textAlign field.
206:             * @param callback textAlign
207:             */
208:            @SuppressWarnings("unchecked")
209:            public void getTextAlign(
210:                    org.directwebremoting.proxy.Callback<String> callback) {
211:                ScriptBuffer script = new ScriptBuffer();
212:                String callbackPrefix = "";
213:
214:                if (callback != null) {
215:                    callbackPrefix = "var reply = ";
216:                }
217:
218:                script.appendCall(callbackPrefix + getContextPath()
219:                        + "getTextAlign");
220:
221:                if (callback != null) {
222:                    String key = org.directwebremoting.extend.CallbackHelper
223:                            .saveCallback(callback, String.class);
224:                    script
225:                            .appendCall("__System.activateCallback", key,
226:                                    "reply");
227:                }
228:
229:                getScriptProxy().addScript(script);
230:            }
231:
232:            /**
233:             * Sets the textAlign field.
234:             * @param textAlign the new value for textAlign
235:             */
236:            public void setTextAlign(String textAlign) {
237:                ScriptBuffer script = new ScriptBuffer();
238:                script.appendCall(getContextPath() + "setTextAlign", textAlign);
239:                getScriptProxy().addScript(script);
240:            }
241:
242:            /**
243:             * Returns the textDecoration field.
244:             * @param callback textDecoration
245:             */
246:            @SuppressWarnings("unchecked")
247:            public void getTextDecoration(
248:                    org.directwebremoting.proxy.Callback<String> callback) {
249:                ScriptBuffer script = new ScriptBuffer();
250:                String callbackPrefix = "";
251:
252:                if (callback != null) {
253:                    callbackPrefix = "var reply = ";
254:                }
255:
256:                script.appendCall(callbackPrefix + getContextPath()
257:                        + "getTextDecoration");
258:
259:                if (callback != null) {
260:                    String key = org.directwebremoting.extend.CallbackHelper
261:                            .saveCallback(callback, String.class);
262:                    script
263:                            .appendCall("__System.activateCallback", key,
264:                                    "reply");
265:                }
266:
267:                getScriptProxy().addScript(script);
268:            }
269:
270:            /**
271:             * Sets the textDecoration field.
272:             * @param textDecoration the new value for textDecoration
273:             */
274:            public void setTextDecoration(String textDecoration) {
275:                ScriptBuffer script = new ScriptBuffer();
276:                script.appendCall(getContextPath() + "setTextDecoration",
277:                        textDecoration);
278:                getScriptProxy().addScript(script);
279:            }
280:
281:            /**
282:             * Returns the color field.
283:             * @param callback color
284:             */
285:            @SuppressWarnings("unchecked")
286:            public void getColor(
287:                    org.directwebremoting.proxy.Callback<String> callback) {
288:                ScriptBuffer script = new ScriptBuffer();
289:                String callbackPrefix = "";
290:
291:                if (callback != null) {
292:                    callbackPrefix = "var reply = ";
293:                }
294:
295:                script.appendCall(callbackPrefix + getContextPath()
296:                        + "getColor");
297:
298:                if (callback != null) {
299:                    String key = org.directwebremoting.extend.CallbackHelper
300:                            .saveCallback(callback, String.class);
301:                    script
302:                            .appendCall("__System.activateCallback", key,
303:                                    "reply");
304:                }
305:
306:                getScriptProxy().addScript(script);
307:            }
308:
309:            /**
310:             * Sets the color field.
311:             * @param color the new value for color
312:             */
313:            public void setColor(String color) {
314:                ScriptBuffer script = new ScriptBuffer();
315:                script.appendCall(getContextPath() + "setColor", color);
316:                getScriptProxy().addScript(script);
317:            }
318:
319:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.