/** * @param d the device to write the code to * @param l the layout manager * @throws IOException */ @Override public void write(Device d, SLayoutManager l) throws IOException { final SBoxLayout layout = (SBoxLayout) l; final List components = layout.getComponents(); final int cols = layout.getOrientation() == SBoxLayout.HORIZONTAL ? components.size() : 1; final TableCellStyle styles = cellLayoutStyle(layout); openLayouterBody(d, layout); printLayouterTableBody(d, layout.getContainer(), cols, components, styles); closeLayouterBody(d, layout); }