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>Hr</b> is generated from xhtml.rng by Relaxer.
045: * This class is derived from:
046: *
047: * <!-- for programmer
048: * <element name="hr">
049: * <ref name="hr.attlist"/>
050: * </element>-->
051: * <!-- for javadoc -->
052: * <pre> <element name="hr">
053: * <ref name="hr.attlist"/>
054: * </element></pre>
055: *
056: * @version xhtml.rng (Tue Apr 20 01:31:08 PDT 2004)
057: * @author Relaxer 1.1b (http://www.relaxer.org)
058: */
059: public class Hr {
060: public static final String DIR_LTR = "ltr";
061: public static final String DIR_RTL = "rtl";
062: public static final String ALIGN_LEFT = "left";
063: public static final String ALIGN_CENTER = "center";
064: public static final String ALIGN_RIGHT = "right";
065: public static final String NOSHADE_NOSHADE = "noshade";
066:
067: private String id_;
068: private String classValue_;
069: private String title_;
070: private String style_;
071: private String xmlLang_;
072: private String lang_;
073: private String dir_;
074: private String onclick_;
075: private String ondblclick_;
076: private String onmousedown_;
077: private String onmouseup_;
078: private String onmouseover_;
079: private String onmousemove_;
080: private String onmouseout_;
081: private String onkeypress_;
082: private String onkeydown_;
083: private String onkeyup_;
084: private String align_;
085: private String noshade_;
086: private String size_;
087: private String width_;
088:
089: /**
090: * Creates a <code>Hr</code>.
091: *
092: */
093: public Hr() {
094: }
095:
096: /**
097: * Gets the String property <b>id</b>.
098: *
099: * @return String
100: */
101: public String getId() {
102: return (id_);
103: }
104:
105: /**
106: * Sets the String property <b>id</b>.
107: *
108: * @param id
109: */
110: public void setId(String id) {
111: this .id_ = id;
112: }
113:
114: /**
115: * Gets the String property <b>classValue</b>.
116: *
117: * @return String
118: */
119: public String getStyleClass() {
120:
121: return classValue_;
122: }
123:
124: /**
125: * Sets the String property <b>classValue</b>.
126: *
127: * @param classValue
128: */
129: public void setStyleClass(String classValue) {
130:
131: this .classValue_ = classValue;
132: }
133:
134: /**
135: * Gets the String property <b>title</b>.
136: *
137: * @return String
138: */
139: public String getTitle() {
140: return (title_);
141: }
142:
143: /**
144: * Sets the String property <b>title</b>.
145: *
146: * @param title
147: */
148: public void setTitle(String title) {
149: this .title_ = title;
150: }
151:
152: /**
153: * Gets the String property <b>style</b>.
154: *
155: * @return String
156: */
157: public String getStyle() {
158: return (style_);
159: }
160:
161: /**
162: * Sets the String property <b>style</b>.
163: *
164: * @param style
165: */
166: public void setStyle(String style) {
167: this .style_ = style;
168: }
169:
170: /**
171: * Gets the java.util.Locale property <b>xmlLang</b>.
172: *
173: * @return java.util.Locale
174: */
175: public String getXmlLang() {
176: return (xmlLang_);
177: }
178:
179: /**
180: * Sets the java.util.Locale property <b>xmlLang</b>.
181: *
182: * @param xmlLang
183: */
184: public void setXmlLang(String xmlLang) {
185: this .xmlLang_ = xmlLang;
186: }
187:
188: /**
189: * Gets the java.util.Locale property <b>lang</b>.
190: *
191: * @return java.util.Locale
192: */
193: public String getLang() {
194: return (lang_);
195: }
196:
197: /**
198: * Sets the java.util.Locale property <b>lang</b>.
199: *
200: * @param lang
201: */
202: public void setLang(String lang) {
203: this .lang_ = lang;
204: }
205:
206: /**
207: * Gets the String property <b>dir</b>.
208: *
209: * @return String
210: */
211: public String getDir() {
212: return (dir_);
213: }
214:
215: /**
216: * Sets the String property <b>dir</b>.
217: *
218: * @param dir
219: */
220: public void setDir(String dir) {
221: this .dir_ = dir;
222: }
223:
224: /**
225: * Gets the String property <b>onclick</b>.
226: *
227: * @return String
228: */
229: public String getOnclick() {
230: return (onclick_);
231: }
232:
233: /**
234: * Sets the String property <b>onclick</b>.
235: *
236: * @param onclick
237: */
238: public void setOnclick(String onclick) {
239: this .onclick_ = onclick;
240: }
241:
242: /**
243: * Gets the String property <b>ondblclick</b>.
244: *
245: * @return String
246: */
247: public String getOndblclick() {
248: return (ondblclick_);
249: }
250:
251: /**
252: * Sets the String property <b>ondblclick</b>.
253: *
254: * @param ondblclick
255: */
256: public void setOndblclick(String ondblclick) {
257: this .ondblclick_ = ondblclick;
258: }
259:
260: /**
261: * Gets the String property <b>onmousedown</b>.
262: *
263: * @return String
264: */
265: public String getOnmousedown() {
266: return (onmousedown_);
267: }
268:
269: /**
270: * Sets the String property <b>onmousedown</b>.
271: *
272: * @param onmousedown
273: */
274: public void setOnmousedown(String onmousedown) {
275: this .onmousedown_ = onmousedown;
276: }
277:
278: /**
279: * Gets the String property <b>onmouseup</b>.
280: *
281: * @return String
282: */
283: public String getOnmouseup() {
284: return (onmouseup_);
285: }
286:
287: /**
288: * Sets the String property <b>onmouseup</b>.
289: *
290: * @param onmouseup
291: */
292: public void setOnmouseup(String onmouseup) {
293: this .onmouseup_ = onmouseup;
294: }
295:
296: /**
297: * Gets the String property <b>onmouseover</b>.
298: *
299: * @return String
300: */
301: public String getOnmouseover() {
302: return (onmouseover_);
303: }
304:
305: /**
306: * Sets the String property <b>onmouseover</b>.
307: *
308: * @param onmouseover
309: */
310: public void setOnmouseover(String onmouseover) {
311: this .onmouseover_ = onmouseover;
312: }
313:
314: /**
315: * Gets the String property <b>onmousemove</b>.
316: *
317: * @return String
318: */
319: public String getOnmousemove() {
320: return (onmousemove_);
321: }
322:
323: /**
324: * Sets the String property <b>onmousemove</b>.
325: *
326: * @param onmousemove
327: */
328: public void setOnmousemove(String onmousemove) {
329: this .onmousemove_ = onmousemove;
330: }
331:
332: /**
333: * Gets the String property <b>onmouseout</b>.
334: *
335: * @return String
336: */
337: public String getOnmouseout() {
338: return (onmouseout_);
339: }
340:
341: /**
342: * Sets the String property <b>onmouseout</b>.
343: *
344: * @param onmouseout
345: */
346: public void setOnmouseout(String onmouseout) {
347: this .onmouseout_ = onmouseout;
348: }
349:
350: /**
351: * Gets the String property <b>onkeypress</b>.
352: *
353: * @return String
354: */
355: public String getOnkeypress() {
356: return (onkeypress_);
357: }
358:
359: /**
360: * Sets the String property <b>onkeypress</b>.
361: *
362: * @param onkeypress
363: */
364: public void setOnkeypress(String onkeypress) {
365: this .onkeypress_ = onkeypress;
366: }
367:
368: /**
369: * Gets the String property <b>onkeydown</b>.
370: *
371: * @return String
372: */
373: public String getOnkeydown() {
374: return (onkeydown_);
375: }
376:
377: /**
378: * Sets the String property <b>onkeydown</b>.
379: *
380: * @param onkeydown
381: */
382: public void setOnkeydown(String onkeydown) {
383: this .onkeydown_ = onkeydown;
384: }
385:
386: /**
387: * Gets the String property <b>onkeyup</b>.
388: *
389: * @return String
390: */
391: public String getOnkeyup() {
392: return (onkeyup_);
393: }
394:
395: /**
396: * Sets the String property <b>onkeyup</b>.
397: *
398: * @param onkeyup
399: */
400: public void setOnkeyup(String onkeyup) {
401: this .onkeyup_ = onkeyup;
402: }
403:
404: /**
405: * Gets the String property <b>align</b>.
406: *
407: * @return String
408: */
409: public String getAlign() {
410: return (align_);
411: }
412:
413: /**
414: * Sets the String property <b>align</b>.
415: *
416: * @param align
417: */
418: public void setAlign(String align) {
419: this .align_ = align;
420: }
421:
422: /**
423: * Gets the String property <b>noshade</b>.
424: *
425: * @return String
426: */
427: public String getNoshade() {
428: return (noshade_);
429: }
430:
431: /**
432: * Sets the String property <b>noshade</b>.
433: *
434: * @param noshade
435: */
436: public void setNoshade(String noshade) {
437: this .noshade_ = noshade;
438: }
439:
440: protected static final String NOSHADE = "noshade";
441:
442: public boolean getNoshade_boolean() {
443:
444: return NOSHADE.equalsIgnoreCase(getNoshade());
445: }
446:
447: public void setNoshade_boolean(boolean noshade) {
448:
449: setNoshade(noshade ? NOSHADE : null);
450: }
451:
452: /**
453: * Gets the String property <b>size</b>.
454: *
455: * @return String
456: */
457: public String getSize() {
458: return (size_);
459: }
460:
461: /**
462: * Sets the String property <b>size</b>.
463: *
464: * @param sizeValue
465: */
466: public void setSize(String sizeValue) {
467: this .size_ = sizeValue;
468: }
469:
470: /**
471: * Gets the String property <b>width</b>.
472: *
473: * @return String
474: */
475: public String getWidth() {
476: return (width_);
477: }
478:
479: /**
480: * Sets the String property <b>width</b>.
481: *
482: * @param width
483: */
484: public void setWidth(String width) {
485: this.width_ = width;
486: }
487:
488: }
|