home *** CD-ROM | disk | FTP | other *** search
- package dhClasses.html;
-
- import java.util.Vector;
-
- public class HtmlParser$TableCell {
- // $FF: synthetic field
- private final HtmlParser this$0;
- private int m_rowspan;
- private int m_colspan;
- private Vector m_content;
- private HtmlTag m_cellTag;
- private boolean m_spanned;
-
- public HtmlParser$TableCell(HtmlParser this$0, int row, int col) {
- this.this$0 = this$0;
- this.m_rowspan = 0;
- this.m_colspan = 0;
- this.m_content = new Vector();
- this.m_cellTag = null;
- this.m_spanned = false;
- this.m_spanned = true;
- this.m_rowspan = row;
- this.m_colspan = col;
- }
-
- public HtmlParser$TableCell(HtmlParser this$0, int rowspan, int colspan, HtmlTag cellTag) {
- this.this$0 = this$0;
- this.m_rowspan = 0;
- this.m_colspan = 0;
- this.m_content = new Vector();
- this.m_cellTag = null;
- this.m_spanned = false;
- this.m_rowspan = rowspan;
- this.m_colspan = colspan;
- this.m_cellTag = cellTag;
- }
-
- public void addElement(Object obj) {
- this.m_content.addElement(obj);
- }
-
- public Object elementAt(int index) {
- return this.m_content.elementAt(index);
- }
-
- public HtmlTag getCellTag() {
- return this.m_cellTag;
- }
-
- public String getCharacterData() {
- String content = "";
-
- for(int i = 0; i < this.m_content.size(); ++i) {
- Object obj = this.m_content.elementAt(i);
- if (obj instanceof String) {
- content = content + obj;
- }
- }
-
- return content;
- }
-
- public int getColSpan() {
- return this.m_colspan;
- }
-
- public int getRowSpan() {
- return this.m_rowspan;
- }
-
- public boolean isSpanned() {
- return this.m_spanned;
- }
-
- public int size() {
- return this.m_content.size();
- }
- }
-