001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: package org.netbeans.modules.visualweb.xhtml;
042:
043: /**
044: * <b>Form</b> is generated from xhtml.rng by Relaxer.
045: * This class is derived from:
046: *
047: * <!-- for programmer
048: * <element name="form">
049: * <ref name="form.attlist"/>
050: * <!-- Don't use Block.model, because this gets redefined by the
051: * legacy module. -->
052: * <oneOrMore>
053: * <ref name="Block.class"/>
054: * </oneOrMore>
055: * </element>-->
056: * <!-- for javadoc -->
057: * <pre> <element name="form">
058: * <ref name="form.attlist"/>
059: * <!-- Don't use Block.model, because this gets redefined by the
060: * legacy module. -->
061: * <oneOrMore>
062: * <ref name="Block.class"/>
063: * </oneOrMore>
064: * </element></pre>
065: *
066: * @version xhtml.rng (Tue Apr 20 01:31:08 PDT 2004)
067: * @author Relaxer 1.1b (http://www.relaxer.org)
068: */
069: public class Form {
070: public static final String DIR_LTR = "ltr";
071: public static final String DIR_RTL = "rtl";
072: public static final String METHOD_GET = "get";
073: public static final String METHOD_POST = "post";
074: private String acceptCharset_;
075: private String accept_;
076: private String id_;
077: private String classValue_;
078: private String title_;
079: private String style_;
080: private String xmlLang_;
081: private String lang_;
082: private String dir_;
083: private String onclick_;
084: private String ondblclick_;
085: private String onmousedown_;
086: private String onmouseup_;
087: private String onmouseover_;
088: private String onmousemove_;
089: private String onmouseout_;
090: private String onkeypress_;
091: private String onkeydown_;
092: private String onkeyup_;
093: private String action_;
094: private String method_;
095: private String enctype_;
096: private String onreset_;
097: private String onsubmit_;
098: private String target_;
099: private String name_;
100:
101: /**
102: * Creates a <code>Form</code>.
103: *
104: */
105: public Form() {
106: action_ = "";
107: }
108:
109: /**
110: * Gets the String property <b>acceptCharset</b>.
111: *
112: * @return String
113: */
114: public String getAcceptCharset() {
115: return (acceptCharset_);
116: }
117:
118: /**
119: * Sets the String property <b>acceptCharset</b>.
120: *
121: * @param acceptCharset
122: */
123: public void setAcceptCharset(String acceptCharset) {
124: this .acceptCharset_ = acceptCharset;
125: }
126:
127: /**
128: * Gets the String property <b>accept</b>.
129: *
130: * @return String
131: */
132: public String getAccept() {
133: return (accept_);
134: }
135:
136: /**
137: * Sets the String property <b>accept</b>.
138: *
139: * @param accept
140: */
141: public void setAccept(String accept) {
142: this .accept_ = accept;
143: }
144:
145: /**
146: * Gets the String property <b>id</b>.
147: *
148: * @return String
149: */
150: public String getId() {
151: return (id_);
152: }
153:
154: /**
155: * Sets the String property <b>id</b>.
156: *
157: * @param id
158: */
159: public void setId(String id) {
160: this .id_ = id;
161: }
162:
163: /**
164: * Gets the String property <b>classValue</b>.
165: *
166: * @return String
167: */
168: public String getClassValue() {
169: return classValue_;
170: }
171:
172: /**
173: * Sets the String property <b>classValue</b>.
174: *
175: * @param classValue
176: */
177: public void setClassValue(String classValue) {
178: this .classValue_ = classValue;
179: }
180:
181: /**
182: * Gets the String property <b>title</b>.
183: *
184: * @return String
185: */
186: public String getTitle() {
187: return (title_);
188: }
189:
190: /**
191: * Sets the String property <b>title</b>.
192: *
193: * @param title
194: */
195: public void setTitle(String title) {
196: this .title_ = title;
197: }
198:
199: /**
200: * Gets the String property <b>style</b>.
201: *
202: * @return String
203: */
204: public String getStyle() {
205: return (style_);
206: }
207:
208: /**
209: * Sets the String property <b>style</b>.
210: *
211: * @param style
212: */
213: public void setStyle(String style) {
214: this .style_ = style;
215: }
216:
217: /**
218: * Gets the java.util.Locale property <b>xmlLang</b>.
219: *
220: * @return java.util.Locale
221: */
222: public String getXmlLang() {
223: return (xmlLang_);
224: }
225:
226: /**
227: * Sets the java.util.Locale property <b>xmlLang</b>.
228: *
229: * @param xmlLang
230: */
231: public void setXmlLang(String xmlLang) {
232: this .xmlLang_ = xmlLang;
233: }
234:
235: /**
236: * Gets the java.util.Locale property <b>lang</b>.
237: *
238: * @return java.util.Locale
239: */
240: public String getLang() {
241: return (lang_);
242: }
243:
244: /**
245: * Sets the java.util.Locale property <b>lang</b>.
246: *
247: * @param lang
248: */
249: public void setLang(String lang) {
250: this .lang_ = lang;
251: }
252:
253: /**
254: * Gets the String property <b>dir</b>.
255: *
256: * @return String
257: */
258: public String getDir() {
259: return (dir_);
260: }
261:
262: /**
263: * Sets the String property <b>dir</b>.
264: *
265: * @param dir
266: */
267: public void setDir(String dir) {
268: this .dir_ = dir;
269: }
270:
271: /**
272: * Gets the String property <b>onclick</b>.
273: *
274: * @return String
275: */
276: public String getOnclick() {
277: return (onclick_);
278: }
279:
280: /**
281: * Sets the String property <b>onclick</b>.
282: *
283: * @param onclick
284: */
285: public void setOnclick(String onclick) {
286: this .onclick_ = onclick;
287: }
288:
289: /**
290: * Gets the String property <b>ondblclick</b>.
291: *
292: * @return String
293: */
294: public String getOndblclick() {
295: return (ondblclick_);
296: }
297:
298: /**
299: * Sets the String property <b>ondblclick</b>.
300: *
301: * @param ondblclick
302: */
303: public void setOndblclick(String ondblclick) {
304: this .ondblclick_ = ondblclick;
305: }
306:
307: /**
308: * Gets the String property <b>onmousedown</b>.
309: *
310: * @return String
311: */
312: public String getOnmousedown() {
313: return (onmousedown_);
314: }
315:
316: /**
317: * Sets the String property <b>onmousedown</b>.
318: *
319: * @param onmousedown
320: */
321: public void setOnmousedown(String onmousedown) {
322: this .onmousedown_ = onmousedown;
323: }
324:
325: /**
326: * Gets the String property <b>onmouseup</b>.
327: *
328: * @return String
329: */
330: public String getOnmouseup() {
331: return (onmouseup_);
332: }
333:
334: /**
335: * Sets the String property <b>onmouseup</b>.
336: *
337: * @param onmouseup
338: */
339: public void setOnmouseup(String onmouseup) {
340: this .onmouseup_ = onmouseup;
341: }
342:
343: /**
344: * Gets the String property <b>onmouseover</b>.
345: *
346: * @return String
347: */
348: public String getOnmouseover() {
349: return (onmouseover_);
350: }
351:
352: /**
353: * Sets the String property <b>onmouseover</b>.
354: *
355: * @param onmouseover
356: */
357: public void setOnmouseover(String onmouseover) {
358: this .onmouseover_ = onmouseover;
359: }
360:
361: /**
362: * Gets the String property <b>onmousemove</b>.
363: *
364: * @return String
365: */
366: public String getOnmousemove() {
367: return (onmousemove_);
368: }
369:
370: /**
371: * Sets the String property <b>onmousemove</b>.
372: *
373: * @param onmousemove
374: */
375: public void setOnmousemove(String onmousemove) {
376: this .onmousemove_ = onmousemove;
377: }
378:
379: /**
380: * Gets the String property <b>onmouseout</b>.
381: *
382: * @return String
383: */
384: public String getOnmouseout() {
385: return (onmouseout_);
386: }
387:
388: /**
389: * Sets the String property <b>onmouseout</b>.
390: *
391: * @param onmouseout
392: */
393: public void setOnmouseout(String onmouseout) {
394: this .onmouseout_ = onmouseout;
395: }
396:
397: /**
398: * Gets the String property <b>onkeypress</b>.
399: *
400: * @return String
401: */
402: public String getOnkeypress() {
403: return (onkeypress_);
404: }
405:
406: /**
407: * Sets the String property <b>onkeypress</b>.
408: *
409: * @param onkeypress
410: */
411: public void setOnkeypress(String onkeypress) {
412: this .onkeypress_ = onkeypress;
413: }
414:
415: /**
416: * Gets the String property <b>onkeydown</b>.
417: *
418: * @return String
419: */
420: public String getOnkeydown() {
421: return (onkeydown_);
422: }
423:
424: /**
425: * Sets the String property <b>onkeydown</b>.
426: *
427: * @param onkeydown
428: */
429: public void setOnkeydown(String onkeydown) {
430: this .onkeydown_ = onkeydown;
431: }
432:
433: /**
434: * Gets the String property <b>onkeyup</b>.
435: *
436: * @return String
437: */
438: public String getOnkeyup() {
439: return (onkeyup_);
440: }
441:
442: /**
443: * Sets the String property <b>onkeyup</b>.
444: *
445: * @param onkeyup
446: */
447: public void setOnkeyup(String onkeyup) {
448: this .onkeyup_ = onkeyup;
449: }
450:
451: /**
452: * Gets the String property <b>action</b>.
453: *
454: * @return String
455: */
456: public String getAction() {
457: return (action_);
458: }
459:
460: /**
461: * Sets the String property <b>action</b>.
462: *
463: * @param action
464: */
465: public void setAction(String action) {
466: this .action_ = action;
467: }
468:
469: /**
470: * Gets the String property <b>method</b>.
471: *
472: * @return String
473: */
474: public String getMethod() {
475: return (method_);
476: }
477:
478: /**
479: * Sets the String property <b>method</b>.
480: *
481: * @param method
482: */
483: public void setMethod(String method) {
484: this .method_ = method;
485: }
486:
487: /**
488: * Gets the String property <b>enctype</b>.
489: *
490: * @return String
491: */
492: public String getEnctype() {
493: return (enctype_);
494: }
495:
496: /**
497: * Sets the String property <b>enctype</b>.
498: *
499: * @param enctype
500: */
501: public void setEnctype(String enctype) {
502: this .enctype_ = enctype;
503: }
504:
505: /**
506: * Gets the String property <b>onreset</b>.
507: *
508: * @return String
509: */
510: public String getOnreset() {
511: return (onreset_);
512: }
513:
514: /**
515: * Sets the String property <b>onreset</b>.
516: *
517: * @param onreset
518: */
519: public void setOnreset(String onreset) {
520: this .onreset_ = onreset;
521: }
522:
523: /**
524: * Gets the String property <b>onsubmit</b>.
525: *
526: * @return String
527: */
528: public String getOnsubmit() {
529: return (onsubmit_);
530: }
531:
532: /**
533: * Sets the String property <b>onsubmit</b>.
534: *
535: * @param onsubmit
536: */
537: public void setOnsubmit(String onsubmit) {
538: this .onsubmit_ = onsubmit;
539: }
540:
541: /**
542: * Gets the String property <b>target</b>.
543: *
544: * @return String
545: */
546: public String getTarget() {
547: return (target_);
548: }
549:
550: /**
551: * Sets the String property <b>target</b>.
552: *
553: * @param target
554: */
555: public void setTarget(String target) {
556: this .target_ = target;
557: }
558:
559: /**
560: * Gets the String property <b>name</b>.
561: *
562: * @return String
563: */
564: public String getName() {
565: return (name_);
566: }
567:
568: /**
569: * Sets the String property <b>name</b>.
570: *
571: * @param name
572: */
573: public void setName(String name) {
574: this.name_ = name;
575: }
576: }
|