Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ProjectAttributes1.java

Go to the documentation of this file.
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 ProjectAttributes1 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             edProblem.setText(prj.getProblem().getString());
00093         }
00094     }
00095 
00096     public void saveData(RQMLFirstClass elem) {
00097         if(elem instanceof Project) {
00098             Project prj = (Project) elem;
00099             prj.getProblem().setString(edProblem.getText());
00100         }
00101     }
00102 
00103     //----------------------------------------------------------------------
00104     // Overidden methods
00105 
00106     protected void initChildren()
00107     {
00108         lbProblem = createLabel("Problem:");
00109 
00110         edProblem = createMultiEdit("", 7, 1);
00111     }
00112 
00113 
00114     protected Control[][] getFormControls() {
00115         Control[][] children = new Control[][] {
00116             {lbProblem, edProblem},
00117         };
00118         return children;
00119     }
00120 
00121     public String getCaption() {
00122         return "Problem Statement";
00123     }
00124 
00125     private Label lbProblem;
00126 
00127     private MultiEdit edProblem;
00128 }

Generated on Fri Jun 18 19:51:23 2004 for Arcle Rambutan by doxygen 1.3.5