KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > joshy > html > box > BlockBox


1 package org.joshy.html.box;
2
3 import org.w3c.dom.Node JavaDoc;
4 //import java.util.ArrayList;
5
//import java.util.List;
6

7 public class BlockBox extends Box {
8     public boolean auto_width = true;
9     public boolean auto_height = true;
10     //public boolean inline = false;
11

12     public boolean display_block = true;
13     public boolean display_inline_block = false;
14     /*
15     public boolean isInline() {
16         return inline;
17     }
18     public boolean isBlock() {
19         return !inline;
20     }
21     */

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 JavaDoc toString() {
31         StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
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         //+ " right = " + this.right;
41
// + " width = " + auto_width + " height = " + auto_height;
42
return sb.toString();
43     }
44
45 }
46
Popular Tags