1 package org.joshy.html.box; 2 3 import org.w3c.dom.Node ; 4 7 public class BlockBox extends Box { 8 public boolean auto_width = true; 9 public boolean auto_height = true; 10 12 public boolean display_block = true; 13 public boolean display_inline_block = false; 14 22 23 public BlockBox() { 24 super(); 25 } 26 public BlockBox(int x, int y, int w, int h) { 27 super(x,y,w,h); 28 } 29 30 public String toString() { 31 StringBuffer sb = new StringBuffer (); 32 sb.append("BlockBox:"); 33 sb.append(super.toString()); 34 if(this.fixed) { 35 sb.append(" position: fixed"); 36 } 37 if(this.right_set) { 38 sb.append(" right = " + this.right); 39 } 40 return sb.toString(); 43 } 44 45 } 46 | Popular Tags |