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