1 38 package com.gargoylesoftware.htmlunit.html; 39 40 import java.util.ArrayList ; 41 import java.util.Iterator ; 42 import java.util.List ; 43 import java.util.Map ; 44 45 53 public abstract class TableRowGroup extends ClickableElement { 54 55 61 protected TableRowGroup( final HtmlPage page, final Map attributes) { 62 super(page, attributes); 63 } 64 65 66 71 public final List getRows() { 72 final List resultList = new ArrayList (); 73 74 final Iterator iterator = getChildElementsIterator(); 75 while( iterator.hasNext() ) { 76 final HtmlElement element = (HtmlElement)iterator.next(); 77 if( element instanceof HtmlTableRow ) { 78 resultList.add(element); 79 } 80 } 81 82 return resultList; 83 } 84 85 86 94 public final String getAlignAttribute() { 95 return getAttributeValue("align"); 96 } 97 98 99 107 public final String getCharAttribute() { 108 return getAttributeValue("char"); 109 } 110 111 112 120 public final String getCharoffAttribute() { 121 return getAttributeValue("charoff"); 122 } 123 124 125 133 public final String getValignAttribute() { 134 return getAttributeValue("valign"); 135 } 136 } 137 | Popular Tags |