00001 00066 package com.arcle.rmt.superwaba.vc.rqml; 00067 00068 import superwaba.ext.xplat.ui.MultiEdit; 00069 00070 import waba.ui.ComboBox; 00071 import waba.ui.Control; 00072 import waba.ui.Label; 00073 import com.arcle.rmt.rqml.RQMLFirstClass; 00074 import com.arcle.rmt.rqml.Project; 00075 00085 public class ProjectAttributes2 extends FirstClassPanel { 00086 //---------------------------------------------------------------------- 00087 // Implemented Abstract Methods 00088 00089 public void loadData(RQMLFirstClass elem) { 00090 if(elem instanceof Project) { 00091 Project prj = (Project) elem; 00092 edScope.setText(prj.getScope().getString()); 00093 edVision.setText(prj.getVision().getString()); 00094 } 00095 } 00096 00097 public void saveData(RQMLFirstClass elem) { 00098 if(elem instanceof Project) { 00099 Project prj = (Project) elem; 00100 prj.getScope().setString(edScope.getText()); 00101 prj.getVision().setString(edVision.getText()); 00102 } 00103 } 00104 00105 //---------------------------------------------------------------------- 00106 // Overidden methods 00107 00108 protected void initChildren() 00109 { 00110 lbScope = createLabel("Scope:"); 00111 lbVision = createLabel("Vision:"); 00112 00113 edScope = createMultiEdit("", 4, 1); 00114 edVision = createMultiEdit("", 4, 1); 00115 } 00116 00117 00118 protected Control[][] getFormControls() { 00119 Control[][] children = new Control[][] { 00120 {lbVision, edVision}, 00121 {lbScope, edScope} 00122 }; 00123 return children; 00124 } 00125 00126 public String getCaption() { 00127 return "Scope & Vision"; 00128 } 00129 00130 private Label lbProblem; 00131 private Label lbScope; 00132 private Label lbVision; 00133 00134 private MultiEdit edProblem; 00135 private MultiEdit edScope; 00136 private MultiEdit edVision; 00137 }