1 package org.joshy.html.box; 2 import java.awt.Point ; 3 import java.util.List ; 4 import java.util.ArrayList ; 5 import org.w3c.dom.*; 6 import org.joshy.u; 7 8 public class CellBox extends BlockBox { 9 public Box sub_box; 10 private boolean virtual = false; 11 private CellBox real_box = null; 12 public CellBox(int x, int y, int width, int height) { 13 super(x,y,width,height); 14 } 15 16 public boolean isReal() { 17 return !virtual; 18 } 19 public CellBox getReal() { 20 return real_box; 21 } 22 23 public static CellBox createVirtual(CellBox real) { 24 if(real == null) { 25 u.p("WARNING: real is null!!!"); 26 } 27 CellBox cb = new CellBox(0,0,0,0); 28 cb.virtual = true; 29 cb.real_box = real; 30 return cb; 31 } 32 33 public RowBox rb; 34 35 } 36 | Popular Tags |