1 57 package org.enhydra.apache.html.dom; 58 59 60 import org.enhydra.apache.xerces.dom.ElementImpl; 61 import org.w3c.dom.html.HTMLTableColElement; 62 63 64 70 public class HTMLTableColElementImpl 71 extends HTMLElementImpl 72 implements HTMLTableColElement 73 { 74 75 76 public String getAlign() 77 { 78 return capitalize( getAttribute( "align" ) ); 79 } 80 81 82 public void setAlign( String align ) 83 { 84 setAttribute( "align", align ); 85 } 86 87 88 public String getCh() 89 { 90 String ch; 91 92 ch = getAttribute( "char" ); 94 if ( ch != null && ch.length() > 1 ) 95 ch = ch.substring( 0, 1 ); 96 return ch; 97 } 98 99 100 public void setCh( String ch ) 101 { 102 if ( ch != null && ch.length() > 1 ) 104 ch = ch.substring( 0, 1 ); 105 setAttribute( "char", ch ); 106 } 107 108 109 public String getChOff() 110 { 111 return getAttribute( "charoff" ); 112 } 113 114 115 public void setChOff( String chOff ) 116 { 117 setAttribute( "charoff", chOff ); 118 } 119 120 121 public int getSpan() 122 { 123 return getInteger( getAttribute( "span" ) ); 124 } 125 126 127 public void setSpan( int span ) 128 { 129 setAttribute( "span", String.valueOf( span ) ); 130 } 131 132 133 public String getVAlign() 134 { 135 return capitalize( getAttribute( "valign" ) ); 136 } 137 138 139 public void setVAlign( String vAlign ) 140 { 141 setAttribute( "valign", vAlign ); 142 } 143 144 public String getWidth() 145 { 146 return getAttribute( "width" ); 147 } 148 149 150 public void setWidth( String width ) 151 { 152 setAttribute( "width", width ); 153 } 154 155 156 161 public HTMLTableColElementImpl( HTMLDocumentImpl owner, String name ) 162 { 163 super( owner, name ); 164 } 165 166 167 } 168 169 | Popular Tags |