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>Table</b> is generated from xhtml.rng by Relaxer.
045: * This class is derived from:
046: *
047: * <!-- for programmer
048: * <element name="table">
049: * <ref name="table.attlist"/>
050: * <optional>
051: * <ref name="caption"/>
052: * </optional>
053: * <choice>
054: * <zeroOrMore>
055: * <ref name="col"/>
056: * </zeroOrMore>
057: * <zeroOrMore>
058: * <ref name="colgroup"/>
059: * </zeroOrMore>
060: * </choice>
061: * <choice>
062: * <group>
063: * <optional>
064: * <ref name="thead"/>
065: * </optional>
066: * <optional>
067: * <ref name="tfoot"/>
068: * </optional>
069: * <oneOrMore>
070: * <ref name="tbody"/>
071: * </oneOrMore>
072: * </group>
073: * <oneOrMore>
074: * <ref name="tr"/>
075: * </oneOrMore>
076: * </choice>
077: * </element>-->
078: * <!-- for javadoc -->
079: * <pre> <element name="table">
080: * <ref name="table.attlist"/>
081: * <optional>
082: * <ref name="caption"/>
083: * </optional>
084: * <choice>
085: * <zeroOrMore>
086: * <ref name="col"/>
087: * </zeroOrMore>
088: * <zeroOrMore>
089: * <ref name="colgroup"/>
090: * </zeroOrMore>
091: * </choice>
092: * <choice>
093: * <group>
094: * <optional>
095: * <ref name="thead"/>
096: * </optional>
097: * <optional>
098: * <ref name="tfoot"/>
099: * </optional>
100: * <oneOrMore>
101: * <ref name="tbody"/>
102: * </oneOrMore>
103: * </group>
104: * <oneOrMore>
105: * <ref name="tr"/>
106: * </oneOrMore>
107: * </choice>
108: * </element></pre>
109: *
110: * @version xhtml.rng (Tue Apr 20 01:31:08 PDT 2004)
111: * @author Relaxer 1.1b (http://www.relaxer.org)
112: */
113: public class Table {
114: public static final String FRAME_VOID = "void";
115: public static final String FRAME_ABOVE = "above";
116: public static final String FRAME_BELOW = "below";
117: public static final String FRAME_HSIDES = "hsides";
118: public static final String FRAME_LHS = "lhs";
119: public static final String FRAME_RHS = "rhs";
120: public static final String FRAME_VSIDES = "vsides";
121: public static final String FRAME_BOX = "box";
122: public static final String FRAME_BORDER = "border";
123: public static final String RULES_NONE = "none";
124: public static final String RULES_GROUPS = "groups";
125: public static final String RULES_ROWS = "rows";
126: public static final String RULES_COLS = "cols";
127: public static final String RULES_ALL = "all";
128: public static final String DIR_LTR = "ltr";
129: public static final String DIR_RTL = "rtl";
130: public static final String ALIGN_LEFT = "left";
131: public static final String ALIGN_ALL = "all";
132: public static final String ALIGN_RIGHT = "right";
133: public static final String ALIGN_NONE = "none";
134: private String width_;
135: private String border_;
136: private String frame_;
137: private String name_;
138: private String rules_;
139: private String cellspacing_;
140: private String cellpadding_;
141: private String id_;
142: private String classValue_;
143: private String title_;
144: private String style_;
145: private String xmlLang_;
146: private String lang_;
147: private String dir_;
148: private String onclick_;
149: private String ondblclick_;
150: private String onmousedown_;
151: private String onmouseup_;
152: private String onmouseover_;
153: private String onmousemove_;
154: private String onmouseout_;
155: private String onkeypress_;
156: private String onkeydown_;
157: private String onkeyup_;
158: private String summary_;
159: private String align_;
160: private String bgcolor_;
161: private Caption caption_;
162:
163: /**
164: * Creates a <code>Table</code>.
165: *
166: */
167: public Table() {
168: }
169:
170: /**
171: * Gets the String property <b>width</b>.
172: *
173: * @return String
174: */
175: public String getWidth() {
176: return (width_);
177: }
178:
179: /**
180: * Sets the String property <b>width</b>.
181: *
182: * @param width
183: */
184: public void setWidth(String width) {
185: this .width_ = width;
186: }
187:
188: /**
189: * Gets the String property <b>border</b>.
190: *
191: * @return String
192: */
193: public String getBorder() {
194: return (border_);
195: }
196:
197: /**
198: * Sets the String property <b>border</b>.
199: *
200: * @param border
201: */
202: public void setBorder(String border) {
203: this .border_ = border;
204: }
205:
206: /**
207: * Gets the String property <b>frame</b>.
208: *
209: * @return String
210: */
211: public String getFrame() {
212: return (frame_);
213: }
214:
215: /**
216: * Sets the String property <b>frame</b>.
217: *
218: * @param frame
219: */
220: public void setFrame(String frame) {
221: this .frame_ = frame;
222: }
223:
224: /**
225: * Gets the String property <b>name</b>.
226: *
227: * @return String
228: */
229: public String getName() {
230: return (name_);
231: }
232:
233: /**
234: * Sets the String property <b>name</b>.
235: *
236: * @param name
237: */
238: public void setName(String name) {
239: this .name_ = name;
240: }
241:
242: /**
243: * Gets the String property <b>rules</b>.
244: *
245: * @return String
246: */
247: public String getRules() {
248: return (rules_);
249: }
250:
251: /**
252: * Sets the String property <b>rules</b>.
253: *
254: * @param rules
255: */
256: public void setRules(String rules) {
257: this .rules_ = rules;
258: }
259:
260: /**
261: * Gets the String property <b>cellspacing</b>.
262: *
263: * @return String
264: */
265: public String getCellspacing() {
266: return (cellspacing_);
267: }
268:
269: /**
270: * Sets the String property <b>cellspacing</b>.
271: *
272: * @param cellspacing
273: */
274: public void setCellspacing(String cellspacing) {
275: this .cellspacing_ = cellspacing;
276: }
277:
278: /**
279: * Gets the String property <b>cellpadding</b>.
280: *
281: * @return String
282: */
283: public String getCellpadding() {
284: return (cellpadding_);
285: }
286:
287: /**
288: * Sets the String property <b>cellpadding</b>.
289: *
290: * @param cellpadding
291: */
292: public void setCellpadding(String cellpadding) {
293: this .cellpadding_ = cellpadding;
294: }
295:
296: /**
297: * Gets the String property <b>id</b>.
298: *
299: * @return String
300: */
301: public String getId() {
302: return (id_);
303: }
304:
305: /**
306: * Sets the String property <b>id</b>.
307: *
308: * @param id
309: */
310: public void setId(String id) {
311: this .id_ = id;
312: }
313:
314: /**
315: * Gets the String property <b>classValue</b>.
316: *
317: * @return String
318: */
319: public String getStyleClass() {
320: return classValue_;
321: }
322:
323: /**
324: * Sets the String property <b>classValue</b>.
325: *
326: * @param classValue
327: */
328: public void setStyleClass(String classValue) {
329: this .classValue_ = classValue;
330: }
331:
332: /**
333: * Gets the String property <b>title</b>.
334: *
335: * @return String
336: */
337: public String getTitle() {
338: return (title_);
339: }
340:
341: /**
342: * Sets the String property <b>title</b>.
343: *
344: * @param title
345: */
346: public void setTitle(String title) {
347: this .title_ = title;
348: }
349:
350: /**
351: * Gets the String property <b>style</b>.
352: *
353: * @return String
354: */
355: public String getStyle() {
356: return (style_);
357: }
358:
359: /**
360: * Sets the String property <b>style</b>.
361: *
362: * @param style
363: */
364: public void setStyle(String style) {
365: this .style_ = style;
366: }
367:
368: /**
369: * Gets the java.util.Locale property <b>xmlLang</b>.
370: *
371: * @return java.util.Locale
372: */
373: public String getXmlLang() {
374: return (xmlLang_);
375: }
376:
377: /**
378: * Sets the java.util.Locale property <b>xmlLang</b>.
379: *
380: * @param xmlLang
381: */
382: public void setXmlLang(String xmlLang) {
383: this .xmlLang_ = xmlLang;
384: }
385:
386: /**
387: * Gets the java.util.Locale property <b>lang</b>.
388: *
389: * @return java.util.Locale
390: */
391: public String getLang() {
392: return (lang_);
393: }
394:
395: /**
396: * Sets the java.util.Locale property <b>lang</b>.
397: *
398: * @param lang
399: */
400: public void setLang(String lang) {
401: this .lang_ = lang;
402: }
403:
404: /**
405: * Gets the String property <b>dir</b>.
406: *
407: * @return String
408: */
409: public String getDir() {
410: return (dir_);
411: }
412:
413: /**
414: * Sets the String property <b>dir</b>.
415: *
416: * @param dir
417: */
418: public void setDir(String dir) {
419: this .dir_ = dir;
420: }
421:
422: /**
423: * Gets the String property <b>onclick</b>.
424: *
425: * @return String
426: */
427: public String getOnclick() {
428: return (onclick_);
429: }
430:
431: /**
432: * Sets the String property <b>onclick</b>.
433: *
434: * @param onclick
435: */
436: public void setOnclick(String onclick) {
437: this .onclick_ = onclick;
438: }
439:
440: /**
441: * Gets the String property <b>ondblclick</b>.
442: *
443: * @return String
444: */
445: public String getOndblclick() {
446: return (ondblclick_);
447: }
448:
449: /**
450: * Sets the String property <b>ondblclick</b>.
451: *
452: * @param ondblclick
453: */
454: public void setOndblclick(String ondblclick) {
455: this .ondblclick_ = ondblclick;
456: }
457:
458: /**
459: * Gets the String property <b>onmousedown</b>.
460: *
461: * @return String
462: */
463: public String getOnmousedown() {
464: return (onmousedown_);
465: }
466:
467: /**
468: * Sets the String property <b>onmousedown</b>.
469: *
470: * @param onmousedown
471: */
472: public void setOnmousedown(String onmousedown) {
473: this .onmousedown_ = onmousedown;
474: }
475:
476: /**
477: * Gets the String property <b>onmouseup</b>.
478: *
479: * @return String
480: */
481: public String getOnmouseup() {
482: return (onmouseup_);
483: }
484:
485: /**
486: * Sets the String property <b>onmouseup</b>.
487: *
488: * @param onmouseup
489: */
490: public void setOnmouseup(String onmouseup) {
491: this .onmouseup_ = onmouseup;
492: }
493:
494: /**
495: * Gets the String property <b>onmouseover</b>.
496: *
497: * @return String
498: */
499: public String getOnmouseover() {
500: return (onmouseover_);
501: }
502:
503: /**
504: * Sets the String property <b>onmouseover</b>.
505: *
506: * @param onmouseover
507: */
508: public void setOnmouseover(String onmouseover) {
509: this .onmouseover_ = onmouseover;
510: }
511:
512: /**
513: * Gets the String property <b>onmousemove</b>.
514: *
515: * @return String
516: */
517: public String getOnmousemove() {
518: return (onmousemove_);
519: }
520:
521: /**
522: * Sets the String property <b>onmousemove</b>.
523: *
524: * @param onmousemove
525: */
526: public void setOnmousemove(String onmousemove) {
527: this .onmousemove_ = onmousemove;
528: }
529:
530: /**
531: * Gets the String property <b>onmouseout</b>.
532: *
533: * @return String
534: */
535: public String getOnmouseout() {
536: return (onmouseout_);
537: }
538:
539: /**
540: * Sets the String property <b>onmouseout</b>.
541: *
542: * @param onmouseout
543: */
544: public void setOnmouseout(String onmouseout) {
545: this .onmouseout_ = onmouseout;
546: }
547:
548: /**
549: * Gets the String property <b>onkeypress</b>.
550: *
551: * @return String
552: */
553: public String getOnkeypress() {
554: return (onkeypress_);
555: }
556:
557: /**
558: * Sets the String property <b>onkeypress</b>.
559: *
560: * @param onkeypress
561: */
562: public void setOnkeypress(String onkeypress) {
563: this .onkeypress_ = onkeypress;
564: }
565:
566: /**
567: * Gets the String property <b>onkeydown</b>.
568: *
569: * @return String
570: */
571: public String getOnkeydown() {
572: return (onkeydown_);
573: }
574:
575: /**
576: * Sets the String property <b>onkeydown</b>.
577: *
578: * @param onkeydown
579: */
580: public void setOnkeydown(String onkeydown) {
581: this .onkeydown_ = onkeydown;
582: }
583:
584: /**
585: * Gets the String property <b>onkeyup</b>.
586: *
587: * @return String
588: */
589: public String getOnkeyup() {
590: return (onkeyup_);
591: }
592:
593: /**
594: * Sets the String property <b>onkeyup</b>.
595: *
596: * @param onkeyup
597: */
598: public void setOnkeyup(String onkeyup) {
599: this .onkeyup_ = onkeyup;
600: }
601:
602: /**
603: * Gets the String property <b>summary</b>.
604: *
605: * @return String
606: */
607: public String getSummary() {
608: return (summary_);
609: }
610:
611: /**
612: * Sets the String property <b>summary</b>.
613: *
614: * @param summary
615: */
616: public void setSummary(String summary) {
617: this .summary_ = summary;
618: }
619:
620: /**
621: * Gets the String property <b>align</b>.
622: *
623: * @return String
624: */
625: public String getAlign() {
626: return (align_);
627: }
628:
629: /**
630: * Sets the String property <b>align</b>.
631: *
632: * @param align
633: */
634: public void setAlign(String align) {
635: this .align_ = align;
636: }
637:
638: /**
639: * Gets the String property <b>bgcolor</b>.
640: *
641: * @return String
642: */
643: public String getBgcolor() {
644: return (bgcolor_);
645: }
646:
647: /**
648: * Sets the String property <b>bgcolor</b>.
649: *
650: * @param bgcolor
651: */
652: public void setBgcolor(String bgcolor) {
653: this .bgcolor_ = bgcolor;
654: }
655:
656: /**
657: * Gets the Caption property <b>caption</b>.
658: *
659: * @return Caption
660: */
661: public Caption getCaption() {
662: return (caption_);
663: }
664:
665: /**
666: * Sets the Caption property <b>caption</b>.
667: *
668: * @param caption
669: */
670: public void setCaption(Caption caption) {
671: this.caption_ = caption;
672: }
673: }
|