public Widget getMyWidgetsAsFlexTable() { FlexTable table = new FlexTable(); int insert = 0; for (int i = 0; i < myStructures.size(); i++) { Structure current = myStructures.getStructure(i); if (!codeable) current.hideWidgets(); table.setWidget(0, insert++, current.generate()); } return table; }
public SISRow(Structure structure) { children = new ArrayList(); myStructures = new StructureCollection(); if (structure.getStructureType().equalsIgnoreCase(XMLUtils.STRUCTURE_COLLECTION)) { ((SISStructureCollection) structure).setDisplayType(SISStructureCollection.FLEXTABLE); for (int i = 0; i < ((SISStructureCollection) structure).getStructures().size(); i++) { // SysDebugger.getInstance().println("This is a " + // ((SISStructureCollection // )structure).getStructureAt(i).getStructureType()); if ((((SISStructureCollection) structure).getStructureAt(i)) .getStructureType() .equalsIgnoreCase(XMLUtils.RELATED_STRUCTURE)) { ((SISRelatedStructures) (((SISStructureCollection) structure).getStructureAt(i))) .setDisplayType(SISRelatedStructures.FLEXTABLE_NODESCRIPTION); } } } myStructures.add(structure); }