1 14 package org.wings.plaf.css; 15 16 import org.wings.SBoxLayout; 17 import org.wings.SLayoutManager; 18 import org.wings.io.Device; 19 20 import java.io.IOException ; 21 import java.util.List ; 22 23 public class BoxLayoutCG extends AbstractLayoutCG { 24 29 public void write(Device d, SLayoutManager l) 30 throws IOException { 31 32 final SBoxLayout layout = (SBoxLayout) l; 33 final List components = layout.getComponents(); 34 final int cols = layout.getOrientation() == SBoxLayout.HORIZONTAL ? components.size() : 1; 35 final int border = layout.getBorder(); 36 37 printLayouterTableHeader(d, "SBoxLayout", layout.getHgap(), layout.getVgap(), border, layout); 38 39 printLayouterTableBody(d, cols, false, layout.getHgap(), layout.getVgap(), border, components); 40 41 printLayouterTableFooter(d, "SBoxLayout", layout); 42 43 } 44 } 45 46 47 | Popular Tags |