private void prePopulateSupportCombo() { TreeNode[] coll = LookupHelper.getStandingSupportTypeExercise(domain.getLookupService()).getRootNodes(); form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear(); form.ctnStand().lyrParent().tabDetails().cmbSupport().getValues().clear(); if(coll != null) { for(int i=0;i<coll.length;i++) { StandingSupportTypeExercise item = (StandingSupportTypeExercise)coll[i]; if(item.isActive()) form.ctnStand().lyrParent().tabDetails().cmbSupport().newRow(item, item.getText()); } } }
protected void onComboBoxSupportValueChanged() throws ims.framework.exceptions.PresentationLogicException { form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear(); form.ctnStand().lyrParent().tabDetails().grdTime().getRows().clear(); if(form.ctnStand().lyrParent().tabDetails().cmbSupport().getValue() == null) return; if(form.ctnStand().lyrParent().tabDetails().cmbSupport().getValue().equals(StandingSupportTypeExercise.TILTTABLE)) //populate Select grid { hideControlsForTilt(true); showGrd(true); form.ctnStand().lyrParent().tabDetails().grdSelect().setReadOnly(false); prePopulateTiltGrd(); } else { hideControlsForTilt(false); showGrd(false); form.ctnStand().lyrParent().tabDetails().grdTime().setReadOnly(false); prePopulateFrameGrd(); } }
private void populateTiltGrd(StandingSupportTypeExerciseCollection tiltSupportExerciseColl) { GenForm.ctnStandContainer.lyrParentLayer.tabDetailsContainer.grdSelectRow tRow = null; form.ctnStand().lyrParent().tabDetails().grdTime().setVisible(false); form.ctnStand().lyrParent().tabDetails().grdSelect().setVisible(true); if(tiltSupportExerciseColl != null) { for (int i=0; i<tiltSupportExerciseColl.size(); i++) { StandingSupportTypeExercise modal = tiltSupportExerciseColl.get(i); tRow = form.ctnStand().lyrParent().tabDetails().grdSelect().getRowByValue(modal); if (tRow != null) tRow.setColSelect(true); else { tRow = form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().newRow(); tRow.setValue(modal); tRow.setColSupportType(modal.getText()); tRow.setColSelect(true); } } } }
private void prePopulateTiltGrd() { GenForm.ctnStandContainer.lyrParentLayer.tabDetailsContainer.grdSelectRow row = null; form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().clear(); ArrayList coll = form.ctnStand().lyrParent().tabDetails().cmbSupport().getValue().getChildInstances(); for(int i=0;i<coll.size();i++) { StandingSupportTypeExercise type = (StandingSupportTypeExercise)coll.get(i); row = form.ctnStand().lyrParent().tabDetails().grdSelect().getRows().newRow(); row.setValue(type); row.setColSupportType(type.getText()); } }
private void prePopulateFrameGrd() { GenForm.ctnStandContainer.lyrParentLayer.tabDetailsContainer.grdTimeRow row = null; form.ctnStand().lyrParent().tabDetails().grdTime().getRows().clear(); ArrayList coll = form.ctnStand().lyrParent().tabDetails().cmbSupport().getValue().getChildInstances(); for (int i = 0; i < coll.size(); i++) { StandingSupportTypeExercise type = (StandingSupportTypeExercise) coll.get(i); row = form.ctnStand().lyrParent().tabDetails().grdTime().getRows().newRow(); row.setColSupportType(type); } }