1 16 package org.apache.html.dom; 17 18 import org.w3c.dom.html.HTMLTableColElement; 19 20 27 public class HTMLTableColElementImpl 28 extends HTMLElementImpl 29 implements HTMLTableColElement 30 { 31 32 private static final long serialVersionUID = 3257845497996915254L; 33 34 public String getAlign() 35 { 36 return capitalize( getAttribute( "align" ) ); 37 } 38 39 40 public void setAlign( String align ) 41 { 42 setAttribute( "align", align ); 43 } 44 45 46 public String getCh() 47 { 48 String ch; 49 50 ch = getAttribute( "char" ); 52 if ( ch != null && ch.length() > 1 ) 53 ch = ch.substring( 0, 1 ); 54 return ch; 55 } 56 57 58 public void setCh( String ch ) 59 { 60 if ( ch != null && ch.length() > 1 ) 62 ch = ch.substring( 0, 1 ); 63 setAttribute( "char", ch ); 64 } 65 66 67 public String getChOff() 68 { 69 return getAttribute( "charoff" ); 70 } 71 72 73 public void setChOff( String chOff ) 74 { 75 setAttribute( "charoff", chOff ); 76 } 77 78 79 public int getSpan() 80 { 81 return getInteger( getAttribute( "span" ) ); 82 } 83 84 85 public void setSpan( int span ) 86 { 87 setAttribute( "span", String.valueOf( span ) ); 88 } 89 90 91 public String getVAlign() 92 { 93 return capitalize( getAttribute( "valign" ) ); 94 } 95 96 97 public void setVAlign( String vAlign ) 98 { 99 setAttribute( "valign", vAlign ); 100 } 101 102 public String getWidth() 103 { 104 return getAttribute( "width" ); 105 } 106 107 108 public void setWidth( String width ) 109 { 110 setAttribute( "width", width ); 111 } 112 113 114 119 public HTMLTableColElementImpl( HTMLDocumentImpl owner, String name ) 120 { 121 super( owner, name ); 122 } 123 124 125 } 126 127 | Popular Tags |