private void loadStructure(grdFrictionRow row) { DeepFrictionMassageAreaStructureCollection collDeepFriction = LookupHelper.getDeepFrictionMassageAreaStructure(domain.getLookupService()); TreeNode[] rootNodes = null; ArrayList childColl = null; DeepFrictionMassageAreaStructure childFrictionInst = null; rootNodes = collDeepFriction.getRootNodes(); for (int j = 0; j < rootNodes.length; j++) { DeepFrictionMassageAreaStructure inst = (DeepFrictionMassageAreaStructure) rootNodes[j]; if (row.getColArea().getValue().equals(inst)) { childColl = inst.getChildInstances(); row.getColStructure().clear(); if (childColl != null) { for (int p = 0; p < childColl.size(); p++) { childFrictionInst = (DeepFrictionMassageAreaStructure) childColl.get(p); row.getColStructure().newRow(childFrictionInst, childFrictionInst.getText()); } } } } }
private void loadLookupsIntoGrid(grdFrictionRow rowFriction) { DeepFrictionMassageAreaStructureCollection collDeepFriction = LookupHelper.getDeepFrictionMassageAreaStructure(domain.getLookupService()); TreeNode[] rootNodes = null; rootNodes = collDeepFriction.getRootNodes(); if (rowFriction == null) rowFriction = form.grdFriction().getRows().newRow(); rowFriction.getColArea().clear(); for (int j = 0; j < rootNodes.length; j++) { DeepFrictionMassageAreaStructure inst = (DeepFrictionMassageAreaStructure) rootNodes[j]; rowFriction.getColArea().newRow(inst, inst.getText()); } }