1 20 21 22 package org.ozoneDB.xml.dom.html; 23 24 25 import org.ozoneDB.xml.dom.ElementImpl; 26 import org.w3c.dom.html.HTMLTableColElement; 27 28 29 35 public final class HTMLTableColElementImpl extends HTMLElementImpl implements HTMLTableColElement { 36 37 38 public String getAlign() { 39 return capitalize( getAttribute( "align" ) ); 40 } 41 42 43 public void setAlign( String align ) { 44 setAttribute( "align", align ); 45 } 46 47 48 public String getCh() { 49 String ch; 50 51 ch = getAttribute( "char" ); 53 if (ch != null && ch.length() > 1) { 54 ch = ch.substring( 0, 1 ); 55 } 56 return ch; 57 } 58 59 60 public void setCh( String ch ) { 61 if (ch != null && ch.length() > 1) { 63 ch = ch.substring( 0, 1 ); 64 } 65 setAttribute( "char", ch ); 66 } 67 68 69 public String getChOff() { 70 return getAttribute( "charoff" ); 71 } 72 73 74 public void setChOff( String chOff ) { 75 setAttribute( "charoff", chOff ); 76 } 77 78 79 public int getSpan() { 80 return toInteger( getAttribute( "span" ) ); 81 } 82 83 84 public void setSpan( int span ) { 85 setAttribute( "span", String.valueOf( span ) ); 86 } 87 88 89 public String getVAlign() { 90 return capitalize( getAttribute( "valign" ) ); 91 } 92 93 94 public void setVAlign( String vAlign ) { 95 setAttribute( "valign", vAlign ); 96 } 97 98 99 public String getWidth() { 100 return getAttribute( "width" ); 101 } 102 103 104 public void setWidth( String width ) { 105 setAttribute( "width", width ); 106 } 107 108 109 114 public HTMLTableColElementImpl( HTMLDocumentImpl owner, String name ) { 115 super( owner, name ); 116 } 117 118 119 } 120 | Popular Tags |