home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / JDPSelectChartDef.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-09  |  24.5 KB  |  1,393 lines

  1. import java.awt.BorderLayout;
  2. import java.awt.Button;
  3. import java.awt.Color;
  4. import java.awt.Component;
  5. import java.awt.Container;
  6. import java.awt.Event;
  7. import java.awt.GridLayout;
  8. import java.awt.Label;
  9. import java.awt.Panel;
  10. import java.awt.TextField;
  11. import java.util.Vector;
  12.  
  13. public class JDPSelectChartDef extends JDPClassLayout {
  14.    JDPSelectDSN targetDSN;
  15.    JDPSelectColumns target;
  16.    JDPChartLayout targetChart;
  17.    JDPPopupMessage popuppanel;
  18.    JDPLayoutMgr targetLayoutMgr;
  19.    JDPList groupBy;
  20.    JDPList multipleSeries;
  21.    TextField multipleSeriesSQL;
  22.    TextField groupBySQL;
  23.    TextField chartTitle;
  24.    JDPComboBox chartTitleColor;
  25.    JDPComboBox chartType;
  26.    TextField xaxisTitle;
  27.    JDPComboBox xaxisTitleColor;
  28.    JDPComboBox xaxisLabelColor;
  29.    JDPComboBox yaxisLabelColor;
  30.    JDPComboBox chartFrameColor;
  31.    TextField maxRows;
  32.    TextField pfromwhereclause;
  33.    JDPComboBox autoscale;
  34.    JDPComboBox autozoom;
  35.    TextField minPlotValue;
  36.    TextField maxPlotValue;
  37.    JDPComboBox gridLineSettingH;
  38.    JDPComboBox gridLineSettingV;
  39.    JDPComboBox gridLineSettingB;
  40.    JDPComboBox gridLineSettingF;
  41.    JDPComboBox gridColor;
  42.    JDPComboBox dategroupby;
  43.    String[] dateGroupBy;
  44.    JDPList columns;
  45.    JDPComboBox fieldactive;
  46.    JDPComboBox aggregatefunction;
  47.    TextField elementlegend;
  48.    TextField fieldsql;
  49.    JDPComboBox elementcolor;
  50.    JDPComboBox elementbordercolor;
  51.    Label listCount;
  52.    boolean[] fieldActive;
  53.    String[] aggregateFunction;
  54.    String[] elementLegend;
  55.    String[] fieldSql;
  56.    Color[] elementColor;
  57.    Color[] elementBorderColor;
  58.    int[] indexes;
  59.    Vector gParmObject;
  60.    int currentSelection = -1;
  61.    int currentColumnSelection = -1;
  62.    JDPTabSelectPanel tabPanel;
  63.  
  64.    void updateArrays() {
  65.       if (this.currentSelection >= 0) {
  66.          this.dateGroupBy[this.currentSelection] = this.dategroupby.getSelectedItem();
  67.       }
  68.    }
  69.  
  70.    void clearList() {
  71.       this.groupBy.clear();
  72.       this.multipleSeries.clear();
  73.       this.columns.clear();
  74.    }
  75.  
  76.    void loadList() {
  77.       this.clearList();
  78.       if (this.target != null && this.target.columnName != null && this.target.columns.getSelectedIndexes().length != 0) {
  79.          if (this.chartTitle.getText().equals("")) {
  80.             String var1 = this.target.table.getText().toUpperCase();
  81.             int var2 = var1.indexOf(".");
  82.             if (var2 >= 0) {
  83.                var1 = var1.substring(var2 + 1);
  84.             }
  85.  
  86.             var1 = var1 + " CHART";
  87.             this.chartTitle.setText(var1);
  88.          }
  89.  
  90.          String[] var6 = this.target.columns.getSelectedItems();
  91.          this.indexes = this.target.columns.getSelectedIndexes();
  92.          int var7 = var6.length;
  93.          this.dateGroupBy = new String[var7];
  94.          this.fieldActive = new boolean[var7];
  95.          this.aggregateFunction = new String[var7];
  96.          this.elementLegend = new String[var7];
  97.          this.fieldSql = new String[var7];
  98.          this.elementColor = new Color[var7];
  99.          this.elementBorderColor = new Color[var7];
  100.          int var3 = 0;
  101.  
  102.          for(int var4 = 0; var4 < var6.length; ++var4) {
  103.             this.groupBy.addItem(var6[var4]);
  104.             this.multipleSeries.addItem(var6[var4]);
  105.             this.dateGroupBy[var4] = "";
  106.             if (JDPUtils.isOdbcDate(this.target.columnDatatype[this.indexes[var4]])) {
  107.                this.dateGroupBy[var4] = "Month";
  108.             }
  109.  
  110.             if (JDPUtils.isOdbcNum(this.target.columnDatatype[this.indexes[var4]]) && !this.chartType.getSelectedItem().equals("Gantt")) {
  111.                this.fieldActive[var3] = true;
  112.                this.aggregateFunction[var3] = "";
  113.                this.aggregatefunction.enable();
  114.                this.elementLegend[var3] = super.user.u.makeLabel(var6[var4]);
  115.                this.fieldSql[var3] = var6[var4];
  116.                this.elementColor[var3] = super.user.u._cvtcolor(this.elementcolor.getItem(var4 % 12));
  117.                this.elementBorderColor[var3] = Color.black;
  118.                this.elementcolor.enable();
  119.                this.elementbordercolor.enable();
  120.                this.columns.addItem(var6[var4]);
  121.                this.columns.select(var4);
  122.                ++var3;
  123.             }
  124.  
  125.             if (JDPUtils.isOdbcDate(this.target.columnDatatype[this.indexes[var4]]) && this.chartType.getSelectedItem().equals("Gantt")) {
  126.                if (this.columns.countItems() < 2) {
  127.                   this.fieldActive[var3] = true;
  128.                } else {
  129.                   this.fieldActive[var3] = false;
  130.                }
  131.  
  132.                this.aggregateFunction[var3] = "";
  133.                this.aggregatefunction.disable();
  134.                this.elementLegend[var3] = super.user.u.makeLabel(var6[var4]);
  135.                this.fieldSql[var3] = var6[var4];
  136.                this.elementColor[var3] = super.user.u._cvtcolor(this.elementcolor.getItem(var4 % 12));
  137.                this.elementBorderColor[var3] = Color.black;
  138.                this.elementcolor.disable();
  139.                this.elementbordercolor.disable();
  140.                this.columns.addItem(var6[var4]);
  141.                if (this.fieldActive[var3]) {
  142.                   this.columns.select(var4);
  143.                } else {
  144.                   this.columns.deselect(var4);
  145.                }
  146.  
  147.                ++var3;
  148.             }
  149.          }
  150.  
  151.       } else {
  152.          if (super.componentName.equals("") && ((Component)this).isShowing()) {
  153.             super.user.mainmsg.setStatusMsg("You must first select a Table.", 10);
  154.          }
  155.  
  156.       }
  157.    }
  158.  
  159.    boolean restoreSelections() {
  160.       JDPSaveProps var1 = super.user.saveProperties;
  161.       if (super.user.prevProperties != null) {
  162.          var1 = super.user.prevProperties;
  163.       }
  164.  
  165.       String var2 = "JDPSelectChartDef" + super.componentName;
  166.       var1.restoreObject(this.groupBy, var2, "groupBy");
  167.       var1.restoreObject(this.groupBySQL, var2, "groupBySQL");
  168.       var1.restoreObject(this.multipleSeries, var2, "multipleSeries");
  169.       var1.restoreObject(this.multipleSeriesSQL, var2, "multipleSeriesSQL");
  170.       var1.restoreObject(this.chartTitle, var2, "chartTitle");
  171.       var1.restoreObject(this.chartTitleColor, var2, "chartTitleColor");
  172.       var1.restoreObject(this.chartType, var2, "chartType");
  173.       var1.restoreObject(this.xaxisTitle, var2, "xaxisTitle");
  174.       var1.restoreObject(this.xaxisTitleColor, var2, "xaxisTitleColor");
  175.       var1.restoreObject(this.xaxisLabelColor, var2, "xaxisLabelColor");
  176.       var1.restoreObject(this.yaxisLabelColor, var2, "yaxisLabelColor");
  177.       var1.restoreObject(this.chartFrameColor, var2, "chartFrameColor");
  178.       var1.restoreObject(this.maxRows, var2, "maxRows");
  179.       var1.restoreObject(this.pfromwhereclause, var2, "pfromwhereclause");
  180.       var1.restoreObject(this.autoscale, var2, "autoscale");
  181.       var1.restoreObject(this.autozoom, var2, "autozoom");
  182.       var1.restoreObject(this.minPlotValue, var2, "minPlotValue");
  183.       var1.restoreObject(this.maxPlotValue, var2, "maxPlotValue");
  184.       var1.restoreObject(this.gridLineSettingH, var2, "gridLineSettingH");
  185.       var1.restoreObject(this.gridLineSettingV, var2, "gridLineSettingV");
  186.       var1.restoreObject(this.gridLineSettingB, var2, "gridLineSettingB");
  187.       var1.restoreObject(this.gridLineSettingF, var2, "gridLineSettingF");
  188.       var1.restoreObject(this.gridColor, var2, "gridColor");
  189.       var1.restoreObject(this.dategroupby, var2, "dategroupby");
  190.       String[] var3 = (String[])var1.restoreObject(this.dateGroupBy, var2, "dateGroupBy");
  191.       boolean[] var4 = (boolean[])var1.restoreObject(this.fieldActive, var2, "fieldActive");
  192.       String[] var5 = (String[])var1.restoreObject(this.aggregateFunction, var2, "aggregateFunction");
  193.       String[] var6 = (String[])var1.restoreObject(this.elementLegend, var2, "elementLegend");
  194.       String[] var7 = (String[])var1.restoreObject(this.fieldSql, var2, "fieldSql");
  195.       Color[] var8 = (Color[])var1.restoreObject(this.elementColor, var2, "elementColor");
  196.       Color[] var9 = (Color[])var1.restoreObject(this.elementBorderColor, var2, "elementBorderColor");
  197.       if (var3 != null) {
  198.          if (this.dateGroupBy.length < var3.length) {
  199.             this.dateGroupBy = new String[var3.length];
  200.          }
  201.  
  202.          if (this.fieldActive.length < var4.length) {
  203.             this.fieldActive = new boolean[var4.length];
  204.          }
  205.  
  206.          if (this.aggregateFunction.length < var5.length) {
  207.             this.aggregateFunction = new String[var5.length];
  208.          }
  209.  
  210.          if (this.elementLegend.length < var6.length) {
  211.             this.elementLegend = new String[var6.length];
  212.          }
  213.  
  214.          if (this.fieldSql.length < var7.length) {
  215.             this.fieldSql = new String[var7.length];
  216.          }
  217.  
  218.          if (this.elementColor.length < var8.length) {
  219.             this.elementColor = new Color[var8.length];
  220.          }
  221.  
  222.          if (this.elementBorderColor.length < var9.length) {
  223.             this.elementBorderColor = new Color[var9.length];
  224.          }
  225.  
  226.          for(int var10 = 0; var10 < var3.length; ++var10) {
  227.             this.dateGroupBy[var10] = var3[var10];
  228.             this.fieldActive[var10] = var4[var10];
  229.             this.aggregateFunction[var10] = var5[var10];
  230.             this.elementLegend[var10] = var6[var10];
  231.             this.fieldSql[var10] = var7[var10];
  232.             this.elementColor[var10] = var8[var10];
  233.             this.elementBorderColor[var10] = var9[var10];
  234.             if (this.fieldActive[var10]) {
  235.                this.columns.select(var10);
  236.             } else {
  237.                this.columns.deselect(var10);
  238.             }
  239.          }
  240.       }
  241.  
  242.       if (this.autoscale.getSelectedItem().equals("Yes")) {
  243.          this.minPlotValue.setEditable(false);
  244.          this.maxPlotValue.setEditable(false);
  245.       } else {
  246.          this.minPlotValue.setEditable(true);
  247.          this.maxPlotValue.setEditable(true);
  248.       }
  249.  
  250.       if (this.autozoom.getSelectedItem().equals("Yes")) {
  251.          this.minPlotValue.setEditable(false);
  252.          this.minPlotValue.setText("0");
  253.       }
  254.  
  255.       if (this.chartType.getSelectedItem().equals("Pie")) {
  256.          this.xaxisLabelColor.disable();
  257.          this.yaxisLabelColor.disable();
  258.          this.chartFrameColor.disable();
  259.          this.autoscale.disable();
  260.          this.autozoom.disable();
  261.          this.minPlotValue.disable();
  262.          this.maxPlotValue.disable();
  263.          this.gridLineSettingH.disable();
  264.          this.gridLineSettingV.disable();
  265.          this.gridLineSettingB.disable();
  266.          this.gridLineSettingF.disable();
  267.          this.gridColor.disable();
  268.          this.elementlegend.disable();
  269.          this.elementcolor.disable();
  270.          this.elementbordercolor.disable();
  271.  
  272.          for(int var11 = 0; var11 < this.multipleSeries.countItems(); ++var11) {
  273.             this.multipleSeries.deselect(var11);
  274.          }
  275.  
  276.          this.multipleSeries.disable();
  277.          this.multipleSeriesSQL.disable();
  278.       } else {
  279.          this.xaxisLabelColor.enable();
  280.          this.yaxisLabelColor.enable();
  281.          this.chartFrameColor.enable();
  282.          this.autoscale.enable();
  283.          this.autozoom.enable();
  284.          this.minPlotValue.enable();
  285.          this.maxPlotValue.enable();
  286.          this.gridLineSettingH.enable();
  287.          this.gridLineSettingV.enable();
  288.          this.gridLineSettingB.enable();
  289.          this.gridLineSettingF.enable();
  290.          this.gridColor.enable();
  291.          this.elementlegend.enable();
  292.          this.elementcolor.enable();
  293.          this.elementbordercolor.enable();
  294.          this.multipleSeries.enable();
  295.          this.multipleSeriesSQL.enable();
  296.       }
  297.  
  298.       if (this.dategroupby.getSelectedIndex() > 0) {
  299.          this.dategroupby.disable();
  300.       } else {
  301.          this.dategroupby.enable();
  302.       }
  303.  
  304.       return true;
  305.    }
  306.  
  307.    void clearFields() {
  308.       this.multipleSeriesSQL.setText("");
  309.       this.groupBySQL.setText("");
  310.       this.chartTitle.setText("");
  311.       this.chartTitleColor.select(0);
  312.       this.chartType.select(0);
  313.       this.xaxisTitle.setText("");
  314.       this.xaxisTitleColor.select(0);
  315.       this.xaxisLabelColor.select(0);
  316.       this.yaxisLabelColor.select(0);
  317.       this.chartFrameColor.select(0);
  318.       this.maxRows.setText("1000");
  319.       this.pfromwhereclause.setText("(1=1)");
  320.       this.autoscale.select(0);
  321.       this.autozoom.select(0);
  322.       this.minPlotValue.setText("0");
  323.       this.maxPlotValue.setText("100");
  324.       this.gridLineSettingH.select(0);
  325.       this.gridLineSettingV.select(0);
  326.       this.gridLineSettingB.select(0);
  327.       this.gridLineSettingF.select(0);
  328.       this.gridColor.select(0);
  329.       this.dategroupby.select(0);
  330.    }
  331.  
  332.    void loadLayoutComponent() {
  333.       boolean var1 = false;
  334.       boolean var2 = false;
  335.       if (!super.thisBranch.compType.startsWith("JDPWiz")) {
  336.          if (this.targetChart != null) {
  337.             this.targetChart.refresh();
  338.          }
  339.  
  340.          if (this.targetLayoutMgr != null) {
  341.             this.targetLayoutMgr.gSource.constructMethod(super.thisBranch, "Main");
  342.             this.targetLayoutMgr.setButton("Layout");
  343.             this.targetLayoutMgr.reDraw();
  344.             return;
  345.          }
  346.       } else if (this.targetLayoutMgr != null && (!this.targetLayoutMgr.projectLoading || this.targetLayoutMgr.loadingWizardApp)) {
  347.          if (super.thisBranch.leaves.size() > 0) {
  348.             this.targetLayoutMgr.lView.removeSelectedBranch();
  349.          }
  350.  
  351.          JDPTreeBranch[] var3 = new JDPTreeBranch[1];
  352.          JDPJagg var5 = new JDPJagg(super.user.jaggPath);
  353.          var5.loadSettings(this.targetDSN);
  354.          var5.setMRW("100");
  355.          new JDPLoadChoice(super.user, var5, (Object)null, "", "", "", "", -1);
  356.          JDPTreeBranch[] var6 = this.targetLayoutMgr.layoutTree.getTreeBranch(super.thisBranch.thisObject);
  357.          JDPTreeBranch[] var7 = var6;
  358.          JDPTreeBranch var8 = var6[var6.length - 1];
  359.          if (this.columns.countItems() > 0) {
  360.             Component var9 = this.targetLayoutMgr.gSource.findRelatedComp(super.thisBranch, "JDPSearchLayout");
  361.             Component var10 = this.targetLayoutMgr.gSource.findRelatedComp(super.thisBranch, "JDPListLayout");
  362.             JDPTreeBranch var11 = null;
  363.             if (var9 != null && ((JDPSearchLayout)var9).columns.getSelectedIndexes().length > 0) {
  364.                var1 = true;
  365.             }
  366.  
  367.             if (var10 != null && ((JDPListLayout)var10).columns.getSelectedItems().length > 0) {
  368.                var2 = true;
  369.             }
  370.  
  371.             boolean var12 = this.targetLayoutMgr.projectLoading;
  372.             this.targetLayoutMgr.projectLoading = true;
  373.             if (var1 || var2) {
  374.                var3[0] = new JDPTreeBranch();
  375.                var3[0].name = "Panel";
  376.                var3[0].compType = "Panel";
  377.                var3[0].icon = 24;
  378.                this.targetLayoutMgr.checkDragNDrop(var3, var6);
  379.                var11 = this.targetLayoutMgr.layoutTree.getLastAddedBranch();
  380.                var6 = this.targetLayoutMgr.layoutTree.getTreeBranch(var11);
  381.                var7 = var6;
  382.             }
  383.  
  384.             if (var2) {
  385.                var3[0] = new JDPTreeBranch();
  386.                var3[0].name = "Panel";
  387.                var3[0].compType = "Panel";
  388.                var3[0].icon = 24;
  389.                this.targetLayoutMgr.checkDragNDrop(var3, this.targetLayoutMgr.layoutTree.getTreeBranch(super.thisBranch.thisObject));
  390.                var11 = this.targetLayoutMgr.layoutTree.getLastAddedBranch();
  391.             }
  392.  
  393.             JDPTreeBranch var13 = null;
  394.             JDPTreeBranch var14 = null;
  395.             if (var1) {
  396.                this.targetLayoutMgr.setButton("Blank");
  397.                this.targetLayoutMgr.layoutTree.addBranch(var11, super.thisBranch.name + "SP1", 7);
  398.                ((JDPSearchLayout)var9).thisBranch = this.targetLayoutMgr.layoutTree.getLastAddedBranch();
  399.                ((JDPSearchLayout)var9).thisBranch.compType = "JDPWhereClause";
  400.                ((JDPSearchLayout)var9).thisBranch.compPosition = "North";
  401.                ((JDPSearchLayout)var9).thisBranch.thisObject = new Panel();
  402.                ((Container)super.thisBranch.thisObject).add(((JDPSearchLayout)var9).thisBranch.compPosition, (Component)((JDPSearchLayout)var9).thisBranch.thisObject);
  403.                ((JDPSearchLayout)var9).loadLayoutComponent();
  404.                this.targetLayoutMgr.setProperties(((JDPSearchLayout)var9).thisBranch);
  405.                var13 = this.targetLayoutMgr.layoutTree.getLastAddedBranch();
  406.             }
  407.  
  408.             if (var2) {
  409.                this.targetLayoutMgr.setButton("Blank");
  410.                this.targetLayoutMgr.layoutTree.addBranch(var11, super.thisBranch.name + "RL1", 26);
  411.                ((JDPListLayout)var10).thisBranch = this.targetLayoutMgr.layoutTree.getLastAddedBranch();
  412.                ((JDPListLayout)var10).thisBranch.compType = "JDPSearchResults";
  413.                ((JDPListLayout)var10).thisBranch.compPosition = "Center";
  414.                ((JDPListLayout)var10).thisBranch.thisObject = new Panel();
  415.                ((Container)super.thisBranch.thisObject).add(((JDPListLayout)var10).thisBranch.compPosition, (Component)((JDPListLayout)var10).thisBranch.thisObject);
  416.                ((JDPListLayout)var10).loadLayoutComponent();
  417.                this.targetLayoutMgr.setProperties(((JDPListLayout)var10).thisBranch);
  418.                var14 = this.targetLayoutMgr.layoutTree.getLastAddedBranch();
  419.             }
  420.  
  421.             var3[0] = new JDPTreeBranch();
  422.             var3[0].name = super.thisBranch.name + "CL1";
  423.             var3[0].compType = "JDPChartLayout";
  424.             var3[0].icon = 33;
  425.             JDPChartLayout var4 = new JDPChartLayout();
  426.             ((JDPClassLayout)var4).InitClass(super.user, (Panel)var7[var7.length - 1].thisObject, "JDPLayoutMgr:" + super.componentName);
  427.             this.targetLayoutMgr.checkDragNDrop(var3, var7, var4);
  428.             this.targetLayoutMgr.gSource.targetGenerator.setHandle((JDPClassLayout)var4);
  429.             if (var14 != null) {
  430.                var14.treeVector = new Vector();
  431.                JDPTreePicker var16 = new JDPTreePicker(super.user, this.targetLayoutMgr, this.targetLayoutMgr.dragPanel);
  432.                int[] var17 = new int[]{4, 1, 2, 1};
  433.                var16.setIcons(var17);
  434.                var16.setRoot("Component Events", true);
  435.                JDPTreeBranch var18 = var16.treeRoot;
  436.                Object[] var19 = new Object[]{null, "Methods"};
  437.                String[] var20 = new String[]{null, "Drop here to attach this component/method to this Event"};
  438.                var16.setDropKeys(var19);
  439.                var16.setDragAndDrop((boolean[])null);
  440.                var16.setDropMessages(var20);
  441.                String[] var21 = new String[]{"ACTION_EVENT", null, null, null};
  442.                boolean[] var22 = new boolean[]{true, true, true, false};
  443.                var16.setIcons(var17);
  444.                var16.setExpanded(var22);
  445.                var16.addEntry(var21, var17, var21[0]);
  446.                var14.treeVector.addElement(var18);
  447.                var17[2] = super.thisBranch.icon;
  448.                var21[1] = super.thisBranch.name;
  449.                var21[2] = super.thisBranch.name + "LoadData";
  450.                var16.addEntry(var21, var17, var21[2]);
  451.                JDPTreeBranch var23 = var16.getLastAddedBranch();
  452.                var23.text = new String[1];
  453.                var23.text[0] = var21[2] + "(" + super.thisBranch.name + "RL1.getSelectedKey());";
  454.                String[] var24 = new String[]{"String"};
  455.                this.loadParameters(var23, var24);
  456.             }
  457.  
  458.             if (var13 != null) {
  459.                var13.treeVector = new Vector();
  460.                JDPTreePicker var27 = new JDPTreePicker(super.user, this.targetLayoutMgr, this.targetLayoutMgr.dragPanel);
  461.                int[] var28 = new int[]{4, 1, 2, 1};
  462.                var27.setIcons(var28);
  463.                var27.setRoot("Component Events", true);
  464.                JDPTreeBranch var29 = var27.treeRoot;
  465.                Object[] var30 = new Object[]{null, "Methods"};
  466.                String[] var31 = new String[]{null, "Drop here to attach this component/method to this Event"};
  467.                var27.setDropKeys(var30);
  468.                var27.setDragAndDrop((boolean[])null);
  469.                var27.setDropMessages(var31);
  470.                String[] var32 = new String[]{"ACTION_EVENT", null, null, null};
  471.                boolean[] var33 = new boolean[]{true, true, true, false};
  472.                var27.setIcons(var28);
  473.                var27.setExpanded(var33);
  474.                var27.addEntry(var32, var28, var32[0]);
  475.                var13.treeVector.addElement(var29);
  476.                if (var14 != null) {
  477.                   var28[2] = var14.icon;
  478.                   var32[1] = super.thisBranch.name + "RL1";
  479.                   var32[2] = "clearList()";
  480.                   var27.addEntry(var32, var28, var32[2]);
  481.                   JDPTreeBranch var34 = var27.getLastAddedBranch();
  482.                   var34.text = new String[1];
  483.                   var34.text[0] = var32[1] + "." + var32[2] + ";";
  484.                   String[] var38 = new String[0];
  485.                   this.loadParameters(var34, var38);
  486.                   var32[2] = "setFromWhereClause(String)";
  487.                   var27.addEntry(var32, var28, var32[2]);
  488.                   var34 = var27.getLastAddedBranch();
  489.                   var34.text = new String[1];
  490.                   var34.text[0] = var32[1] + ".setFromWhereClause(" + super.thisBranch.name + "SP1.getFromWhereClause());";
  491.                   String[] var25 = new String[]{"String"};
  492.                   this.loadParameters(var34, var25);
  493.                   var32[2] = "loadList()";
  494.                   var27.addEntry(var32, var28, var32[2]);
  495.                   var34 = var27.getLastAddedBranch();
  496.                   var34.text = new String[1];
  497.                   var34.text[0] = var32[1] + "." + var32[2] + ";";
  498.                   this.loadParameters(var34, var38);
  499.                } else if (var13 != null) {
  500.                   ((JDPWhereClause)var13.thisObject).setHorizontalLayout(true);
  501.                   var13.properties = new String[3][1];
  502.                   var13.properties[0][0] = "HorizontalLayout:";
  503.                   var13.properties[1][0] = "true";
  504.                   var13.properties[2][0] = "boolean";
  505.                   var28[2] = 33;
  506.                   var32[1] = super.thisBranch.name + "CL1";
  507.                   var32[2] = "LoadDataFromWhereClause(String)";
  508.                   var27.addEntry(var32, var28, var32[2]);
  509.                   JDPTreeBranch var37 = var27.getLastAddedBranch();
  510.                   var37.text = new String[1];
  511.                   var37.text[0] = super.thisBranch.name + "LoadDataFromWhereClause(" + super.thisBranch.name + "SP1.getFromWhereClause());";
  512.                   String[] var39 = new String[0];
  513.                   this.loadParameters(var37, var39);
  514.                }
  515.             }
  516.  
  517.             this.targetLayoutMgr.projectLoading = var12;
  518.             var8.expanded = false;
  519.             this.targetLayoutMgr.setProperties(var8);
  520.             if (var8.thisObject instanceof Component) {
  521.                ((Component)var8.thisObject).layout();
  522.                ((Component)var8.thisObject).paintAll(((Component)var8.thisObject).getGraphics());
  523.             }
  524.  
  525.             this.targetLayoutMgr.interactionMgr.loadMethodTree(var8, false);
  526.             this.targetLayoutMgr.currentBranch = super.thisBranch;
  527.             this.targetLayoutMgr.gSource.constructMethod(super.thisBranch, "Main");
  528.             if (!this.targetLayoutMgr.projectLoading) {
  529.                this.targetLayoutMgr.setButton("Blank");
  530.                this.targetLayoutMgr.layoutTree.select(this.targetLayoutMgr.layoutTree.getTreeBranchNames(var8));
  531.                if (var9 != null || var10 != null) {
  532.                   this.targetLayoutMgr.refreshLayout(super.thisBranch);
  533.                }
  534.  
  535.                this.targetLayoutMgr.setButton("Layout");
  536.                this.targetLayoutMgr.reDraw();
  537.             }
  538.          }
  539.       }
  540.  
  541.    }
  542.  
  543.    void loadColumnItem(int var1) {
  544.       this.aggregatefunction.select(this.aggregateFunction[var1]);
  545.       this.elementlegend.setText(this.elementLegend[var1]);
  546.       this.fieldsql.setText(this.fieldSql[var1]);
  547.       this.elementcolor.select(JDPUtils._cvtbcolor(this.elementColor[var1]));
  548.       this.elementbordercolor.select(JDPUtils._cvtbcolor(this.elementBorderColor[var1]));
  549.    }
  550.  
  551.    void updateColumnArrays() {
  552.       if (this.currentColumnSelection >= 0) {
  553.          this.fieldActive[this.currentColumnSelection] = this.columns.isSelected(this.currentColumnSelection);
  554.          this.aggregateFunction[this.currentColumnSelection] = this.aggregatefunction.getSelectedItem();
  555.          this.elementLegend[this.currentColumnSelection] = this.elementlegend.getText();
  556.          this.fieldSql[this.currentColumnSelection] = this.fieldsql.getText();
  557.          this.elementColor[this.currentColumnSelection] = super.user.u._cvtcolor(this.elementcolor.getSelectedItem());
  558.          this.elementBorderColor[this.currentColumnSelection] = super.user.u._cvtcolor(this.elementbordercolor.getSelectedItem());
  559.       }
  560.    }
  561.  
  562.    void loadParameters(JDPTreeBranch var1, String[] var2) {
  563.       this.targetLayoutMgr.interactionMgr.loadParameterTree(var1, var2);
  564.    }
  565.  
  566.    boolean saveSelections() {
  567.       JDPSaveProps var1 = super.user.saveProperties;
  568.       String var2 = "JDPSelectChartDef" + super.componentName;
  569.       var1.saveObject(this.groupBy, var2, "groupBy");
  570.       var1.saveObject(this.groupBySQL, var2, "groupBySQL");
  571.       var1.saveObject(this.multipleSeries, var2, "multipleSeries");
  572.       var1.saveObject(this.multipleSeriesSQL, var2, "multipleSeriesSQL");
  573.       var1.saveObject(this.chartTitle, var2, "chartTitle");
  574.       var1.saveObject(this.chartTitleColor, var2, "chartTitleColor");
  575.       var1.saveObject(this.chartType, var2, "chartType");
  576.       var1.saveObject(this.xaxisTitle, var2, "xaxisTitle");
  577.       var1.saveObject(this.xaxisTitleColor, var2, "xaxisTitleColor");
  578.       var1.saveObject(this.xaxisLabelColor, var2, "xaxisLabelColor");
  579.       var1.saveObject(this.yaxisLabelColor, var2, "yaxisLabelColor");
  580.       var1.saveObject(this.chartFrameColor, var2, "chartFrameColor");
  581.       var1.saveObject(this.maxRows, var2, "maxRows");
  582.       var1.saveObject(this.pfromwhereclause, var2, "pfromwhereclause");
  583.       var1.saveObject(this.autoscale, var2, "autoscale");
  584.       var1.saveObject(this.autozoom, var2, "autozoom");
  585.       var1.saveObject(this.minPlotValue, var2, "minPlotValue");
  586.       var1.saveObject(this.maxPlotValue, var2, "maxPlotValue");
  587.       var1.saveObject(this.gridLineSettingH, var2, "gridLineSettingH");
  588.       var1.saveObject(this.gridLineSettingV, var2, "gridLineSettingV");
  589.       var1.saveObject(this.gridLineSettingB, var2, "gridLineSettingB");
  590.       var1.saveObject(this.gridLineSettingF, var2, "gridLineSettingF");
  591.       var1.saveObject(this.gridColor, var2, "gridColor");
  592.       var1.saveObject(this.dategroupby, var2, "dategroupby");
  593.       var1.saveObject(this.dateGroupBy, var2, "dateGroupBy");
  594.       var1.saveObject(this.fieldActive, var2, "fieldActive");
  595.       var1.saveObject(this.aggregateFunction, var2, "aggregateFunction");
  596.       var1.saveObject(this.elementLegend, var2, "elementLegend");
  597.       var1.saveObject(this.fieldSql, var2, "fieldSql");
  598.       var1.saveObject(this.elementColor, var2, "elementColor");
  599.       var1.saveObject(this.elementBorderColor, var2, "elementBorderColor");
  600.       return true;
  601.    }
  602.  
  603.    void refresh() {
  604.       this.clearFields();
  605.       this.currentSelection = -1;
  606.       this.currentColumnSelection = -1;
  607.       this.retrieveColumns();
  608.       this.loadList();
  609.       this.restoreSelections();
  610.       if (this.targetChart != null) {
  611.          this.targetChart.refresh();
  612.       }
  613.  
  614.    }
  615.  
  616.    void retrieveColumns() {
  617.       for(int var1 = 0; var1 < super.user.gParm.size(); ++var1) {
  618.          if (super.user.gParm.elementAt(var1) instanceof Vector) {
  619.             Vector var2 = (Vector)super.user.gParm.elementAt(var1);
  620.             if (((String)var2.elementAt(0)).compareTo("SelectDSN" + super.componentName) == 0) {
  621.                this.targetDSN = (JDPSelectDSN)var2.elementAt(3);
  622.             }
  623.  
  624.             if (((String)var2.elementAt(0)).compareTo("SelectColumns" + super.componentName) == 0) {
  625.                this.target = (JDPSelectColumns)var2.elementAt(1);
  626.             }
  627.  
  628.             if (((String)var2.elementAt(0)).compareTo("ChartLayout" + super.componentName) == 0) {
  629.                this.targetChart = (JDPChartLayout)var2.elementAt(1);
  630.             }
  631.          }
  632.  
  633.          if (super.user.gParm.elementAt(var1) instanceof JDPLayoutMgr && !super.componentName.equals("")) {
  634.             this.targetLayoutMgr = (JDPLayoutMgr)super.user.gParm.elementAt(var1);
  635.          }
  636.       }
  637.  
  638.    }
  639.  
  640.    public boolean handleEvent(Event var1) {
  641.       switch (var1.id) {
  642.          case 202:
  643.             if (var1.target instanceof JDPTabSelectTopPanel) {
  644.                this.retrieveColumns();
  645.                return true;
  646.             }
  647.  
  648.             return false;
  649.          case 401:
  650.             if (var1.key == 9) {
  651.                if (var1.target.equals(this.chartTitle)) {
  652.                   super.user.u.cursor(this.chartTitleColor);
  653.                   return true;
  654.                }
  655.  
  656.                if (var1.target.equals(this.chartTitleColor)) {
  657.                   super.user.u.cursor(this.xaxisTitle);
  658.                   return true;
  659.                }
  660.  
  661.                if (var1.target.equals(this.xaxisTitle)) {
  662.                   super.user.u.cursor(this.xaxisTitleColor);
  663.                   return true;
  664.                }
  665.  
  666.                if (var1.target.equals(this.xaxisTitleColor)) {
  667.                   super.user.u.cursor(this.xaxisLabelColor);
  668.                   return true;
  669.                }
  670.  
  671.                if (var1.target.equals(this.xaxisLabelColor)) {
  672.                   super.user.u.cursor(this.yaxisLabelColor);
  673.                   return true;
  674.                }
  675.  
  676.                if (var1.target.equals(this.yaxisLabelColor)) {
  677.                   super.user.u.cursor(this.chartFrameColor);
  678.                   return true;
  679.                }
  680.  
  681.                if (var1.target.equals(this.chartFrameColor)) {
  682.                   super.user.u.cursor(this.chartTitle);
  683.                   return true;
  684.                }
  685.  
  686.                if (var1.target.equals(this.autoscale)) {
  687.                   super.user.u.cursor(this.autozoom);
  688.                   return true;
  689.                }
  690.  
  691.                if (var1.target.equals(this.autozoom)) {
  692.                   super.user.u.cursor(this.minPlotValue);
  693.                   return true;
  694.                }
  695.  
  696.                if (var1.target.equals(this.minPlotValue)) {
  697.                   super.user.u.cursor(this.maxPlotValue);
  698.                   return true;
  699.                }
  700.  
  701.                if (var1.target.equals(this.maxPlotValue)) {
  702.                   super.user.u.cursor(this.gridLineSettingH);
  703.                   return true;
  704.                }
  705.  
  706.                if (var1.target.equals(this.gridLineSettingH)) {
  707.                   super.user.u.cursor(this.gridLineSettingV);
  708.                   return true;
  709.                }
  710.  
  711.                if (var1.target.equals(this.gridLineSettingV)) {
  712.                   super.user.u.cursor(this.gridLineSettingB);
  713.                   return true;
  714.                }
  715.  
  716.                if (var1.target.equals(this.gridLineSettingB)) {
  717.                   super.user.u.cursor(this.gridLineSettingF);
  718.                   return true;
  719.                }
  720.  
  721.                if (var1.target.equals(this.gridLineSettingF)) {
  722.                   super.user.u.cursor(this.gridColor);
  723.                   return true;
  724.                }
  725.  
  726.                if (var1.target.equals(this.gridColor)) {
  727.                   super.user.u.cursor(this.autoscale);
  728.                   return true;
  729.                }
  730.  
  731.                if (var1.target.equals(this.chartType)) {
  732.                   super.user.u.cursor(this.pfromwhereclause);
  733.                   return true;
  734.                }
  735.  
  736.                if (super.componentName.equals("")) {
  737.                   if (var1.target.equals(this.pfromwhereclause)) {
  738.                      super.user.u.cursor(this.maxRows);
  739.                      return true;
  740.                   }
  741.  
  742.                   if (var1.target.equals(this.maxRows)) {
  743.                      super.user.u.cursor(this.chartType);
  744.                      return true;
  745.                   }
  746.                } else if (var1.target.equals(this.pfromwhereclause)) {
  747.                   super.user.u.cursor(this.chartType);
  748.                   return true;
  749.                }
  750.  
  751.                return true;
  752.             }
  753.  
  754.             return false;
  755.          case 503:
  756.          case 504:
  757.          case 505:
  758.             this.popuppanel.postEvent(var1);
  759.             return false;
  760.          case 701:
  761.          case 702:
  762.             if (var1.target instanceof JDPList) {
  763.                if (var1.target.equals(this.columns)) {
  764.                   this.updateColumnArrays();
  765.                   int var5 = (Integer)var1.arg;
  766.                   this.loadColumnItem(var5);
  767.                   this.currentColumnSelection = var5;
  768.                   this.fieldActive[this.currentColumnSelection] = this.columns.isSelected(this.currentColumnSelection);
  769.                }
  770.  
  771.                if (var1.target.equals(this.groupBy)) {
  772.                   this.groupBySQL.setText("");
  773.                   int var6 = (Integer)var1.arg;
  774.  
  775.                   for(int var3 = 0; var3 < this.groupBy.countItems(); ++var3) {
  776.                      if (var3 != var6) {
  777.                         this.groupBy.deselect(var3);
  778.                      }
  779.                   }
  780.  
  781.                   if (this.groupBy.getSelectedIndex() >= 0) {
  782.                      this.dategroupby.select(this.dateGroupBy[var6]);
  783.                      this.loadItem(var6);
  784.                   }
  785.  
  786.                   if (this.groupBy.getSelectedIndex() >= 0 && !this.chartType.getSelectedItem().equals("Gantt")) {
  787.                      for(int var8 = 0; var8 < this.aggregateFunction.length; ++var8) {
  788.                         this.aggregateFunction[var8] = "Sum";
  789.                      }
  790.                   } else {
  791.                      for(int var7 = 0; var7 < this.aggregateFunction.length; ++var7) {
  792.                         this.aggregateFunction[var7] = "";
  793.                      }
  794.                   }
  795.                }
  796.  
  797.                if (var1.target.equals(this.multipleSeries)) {
  798.                   this.multipleSeriesSQL.setText("");
  799.                   if (this.multipleSeries.getSelectedIndex() >= 0) {
  800.                      this.multipleSeriesSQL.setText(this.multipleSeries.getSelectedItem());
  801.                   }
  802.                }
  803.  
  804.                return true;
  805.             } else {
  806.                return false;
  807.             }
  808.          case 1001:
  809.             if (var1.target instanceof TextField) {
  810.                super.user.u.isnumeric(this.maxRows, super.user.mainmsg);
  811.                super.user.u.isfloat(this.minPlotValue, super.user.mainmsg);
  812.                super.user.u.isfloat(this.maxPlotValue, super.user.mainmsg);
  813.                return true;
  814.             } else if (var1.target instanceof JDPComboBox) {
  815.                if (this.autoscale.getSelectedItem().equals("Yes")) {
  816.                   this.minPlotValue.setEditable(false);
  817.                   this.maxPlotValue.setEditable(false);
  818.                } else {
  819.                   this.minPlotValue.setEditable(true);
  820.                   this.maxPlotValue.setEditable(true);
  821.                }
  822.  
  823.                if (this.autozoom.getSelectedItem().equals("Yes")) {
  824.                   this.minPlotValue.setEditable(false);
  825.                   this.minPlotValue.setText("0");
  826.                }
  827.  
  828.                if (var1.target.equals(this.dategroupby) && this.groupBy.getSelectedIndex() >= 0) {
  829.                   this.loadItem(this.groupBy.getSelectedIndex());
  830.                }
  831.  
  832.                if (var1.target.equals(this.aggregatefunction) && (this.groupBy.getSelectedIndex() >= 0 || this.multipleSeries.getSelectedIndex() >= 0) && this.aggregatefunction.getSelectedItem().equals("")) {
  833.                   this.aggregatefunction.select("Sum");
  834.                }
  835.  
  836.                if (var1.target.equals(this.chartType)) {
  837.                   if (!this.chartType.getSelectedItem().equals("Pie")) {
  838.                      this.xaxisLabelColor.enable();
  839.                      this.yaxisLabelColor.enable();
  840.                      this.chartFrameColor.enable();
  841.                      this.autoscale.enable();
  842.                      this.autozoom.enable();
  843.                      this.minPlotValue.enable();
  844.                      this.maxPlotValue.enable();
  845.                      this.gridLineSettingH.enable();
  846.                      this.gridLineSettingV.enable();
  847.                      this.gridLineSettingB.enable();
  848.                      this.gridLineSettingF.enable();
  849.                      this.gridColor.enable();
  850.                      this.elementlegend.enable();
  851.                      this.elementcolor.enable();
  852.                      this.elementbordercolor.enable();
  853.                      this.multipleSeries.enable();
  854.                      this.multipleSeriesSQL.enable();
  855.                   } else {
  856.                      this.xaxisLabelColor.disable();
  857.                      this.yaxisLabelColor.disable();
  858.                      this.chartFrameColor.disable();
  859.                      this.autoscale.disable();
  860.                      this.autozoom.disable();
  861.                      this.minPlotValue.disable();
  862.                      this.maxPlotValue.disable();
  863.                      this.gridLineSettingH.disable();
  864.                      this.gridLineSettingV.disable();
  865.                      this.gridLineSettingB.disable();
  866.                      this.gridLineSettingF.disable();
  867.                      this.gridColor.disable();
  868.                      this.elementlegend.disable();
  869.                      this.elementcolor.disable();
  870.                      this.elementbordercolor.disable();
  871.  
  872.                      for(int var4 = 0; var4 < this.multipleSeries.countItems(); ++var4) {
  873.                         this.multipleSeries.deselect(var4);
  874.                      }
  875.  
  876.                      this.multipleSeries.disable();
  877.                      this.multipleSeriesSQL.disable();
  878.                   }
  879.  
  880.                   this.loadList();
  881.                }
  882.  
  883.                return true;
  884.             } else {
  885.                if (var1.target instanceof Button) {
  886.                   String var2 = (String)var1.arg;
  887.                   if (var2.trim().compareTo("Accept") == 0) {
  888.                      if (super.user.u.isnumeric(this.maxRows, super.user.mainmsg) && super.user.u.isfloat(this.minPlotValue, super.user.mainmsg) && super.user.u.isfloat(this.maxPlotValue, super.user.mainmsg)) {
  889.                         super.user.mainmsg.setStatusMsg("Saving selections...", 0);
  890.                         this.updateArrays();
  891.                         this.updateColumnArrays();
  892.                         this.saveSelections();
  893.                         this.retrieveColumns();
  894.                         this.loadLayoutComponent();
  895.                         if (super.componentName.equals("")) {
  896.                            super.user.jdpMenuPanel.loadNextTab();
  897.                         }
  898.  
  899.                         super.user.mainmsg.setStatusMsg("Selections accepted.", 5);
  900.                      }
  901.  
  902.                      return true;
  903.                   }
  904.  
  905.                   if (var2.trim().compareTo("Reset") == 0) {
  906.                      this.refresh();
  907.                      return true;
  908.                   }
  909.                }
  910.  
  911.                return true;
  912.             }
  913.          default:
  914.             return false;
  915.       }
  916.    }
  917.  
  918.    boolean removeSelections() {
  919.       JDPSaveProps var1 = super.user.saveProperties;
  920.       String var2 = "JDPSelectChartDef" + super.componentName;
  921.       var1.removeObject(this.groupBy, var2, "groupBy");
  922.       var1.removeObject(this.groupBySQL, var2, "groupBySQL");
  923.       var1.removeObject(this.multipleSeries, var2, "multipleSeries");
  924.       var1.removeObject(this.multipleSeriesSQL, var2, "multipleSeriesSQL");
  925.       var1.removeObject(this.chartTitle, var2, "chartTitle");
  926.       var1.removeObject(this.chartTitleColor, var2, "chartTitleColor");
  927.       var1.removeObject(this.chartType, var2, "chartType");
  928.       var1.removeObject(this.xaxisTitle, var2, "xaxisTitle");
  929.       var1.removeObject(this.xaxisTitleColor, var2, "xaxisTitleColor");
  930.       var1.removeObject(this.xaxisLabelColor, var2, "xaxisLabelColor");
  931.       var1.removeObject(this.yaxisLabelColor, var2, "yaxisLabelColor");
  932.       var1.removeObject(this.chartFrameColor, var2, "chartFrameColor");
  933.       var1.removeObject(this.maxRows, var2, "maxRows");
  934.       var1.removeObject(this.pfromwhereclause, var2, "pfromwhereclause");
  935.       var1.removeObject(this.autoscale, var2, "autoscale");
  936.       var1.removeObject(this.autozoom, var2, "autozoom");
  937.       var1.removeObject(this.minPlotValue, var2, "minPlotValue");
  938.       var1.removeObject(this.maxPlotValue, var2, "maxPlotValue");
  939.       var1.removeObject(this.gridLineSettingH, var2, "gridLineSettingH");
  940.       var1.removeObject(this.gridLineSettingV, var2, "gridLineSettingV");
  941.       var1.removeObject(this.gridLineSettingB, var2, "gridLineSettingB");
  942.       var1.removeObject(this.gridLineSettingF, var2, "gridLineSettingF");
  943.       var1.removeObject(this.gridColor, var2, "gridColor");
  944.       var1.removeObject(this.dategroupby, var2, "dategroupby");
  945.       var1.removeObject(this.dateGroupBy, var2, "dateGroupBy");
  946.       var1.removeObject(this.fieldActive, var2, "fieldActive");
  947.       var1.removeObject(this.aggregateFunction, var2, "aggregateFunction");
  948.       var1.removeObject(this.elementLegend, var2, "elementLegend");
  949.       var1.removeObject(this.fieldSql, var2, "fieldSql");
  950.       var1.removeObject(this.elementColor, var2, "elementColor");
  951.       var1.removeObject(this.elementBorderColor, var2, "elementBorderColor");
  952.       return true;
  953.    }
  954.  
  955.    void loadItem(int var1) {
  956.       this.groupBySQL.setText(this.groupBy.getSelectedItem());
  957.       if (this.dateGroupBy[var1].equals("")) {
  958.          this.dategroupby.disable();
  959.       } else {
  960.          this.dategroupby.enable();
  961.          int var2 = this.target.columnDatatype[this.indexes[var1]];
  962.          String var3 = this.groupBy.getSelectedItem();
  963.          if (JDPUtils.isOdbcDate(var2)) {
  964.             if (this.targetDSN.dsnType.indexOf(JDPJagg.MSSQLSERVER) >= 0) {
  965.                var3 = "CONVERT(char," + var3 + ",11)";
  966.                if (this.dategroupby.getSelectedItem().equals("Month")) {
  967.                   var3 = "SUBSTRING(" + var3 + ",1,5)";
  968.                }
  969.  
  970.                if (this.dategroupby.getSelectedItem().equals("Year")) {
  971.                   var3 = "SUBSTRING(" + var3 + ",1,2)";
  972.                }
  973.             } else if (this.targetDSN.dsnType.indexOf(JDPJagg.SYBASE) < 0 && this.targetDSN.dsnType.indexOf(JDPJagg.SYBASE10) < 0) {
  974.                if (this.targetDSN.dsnType.indexOf(JDPJagg.ANYWHERE) >= 0) {
  975.                   var3 = "CONVERT(char," + var3 + ",11)";
  976.                   if (this.dategroupby.getSelectedItem().equals("Month")) {
  977.                      var3 = "SUBSTRING(" + var3 + ",1,5)";
  978.                   }
  979.  
  980.                   if (this.dategroupby.getSelectedItem().equals("Year")) {
  981.                      var3 = "SUBSTRING(" + var3 + ",1,2)";
  982.                   }
  983.                } else if (this.targetDSN.dsnType.indexOf(JDPJagg.SOLIDSERVER) >= 0) {
  984.                   var3 = "CONVERT_CHAR(" + var3 + ")";
  985.                   if (this.dategroupby.getSelectedItem().equals("Month")) {
  986.                      var3 = "SUBSTRING(" + var3 + ",6,2)";
  987.                   }
  988.  
  989.                   if (this.dategroupby.getSelectedItem().equals("Year")) {
  990.                      var3 = "SUBSTRING(" + var3 + ",1,4)";
  991.                   }
  992.                } else if (this.targetDSN.dsnType.indexOf(JDPJagg.ORACLE) < 0 && this.targetDSN.dsnType.indexOf(JDPJagg.POLITE) < 0) {
  993.                   if (this.targetDSN.dsnType.indexOf(JDPJagg.ACCESS) >= 0) {
  994.                      var3 = "format(" + var3 + ", 'yy/mm/dd')";
  995.                      if (this.dategroupby.getSelectedItem().equals("Month")) {
  996.                         var3 = "LEFT(" + var3 + ",5)";
  997.                      }
  998.  
  999.                      if (this.dategroupby.getSelectedItem().equals("Year")) {
  1000.                         var3 = "LEFT(" + var3 + ",2)";
  1001.                      }
  1002.                   } else if (this.targetDSN.dsnType.indexOf(JDPJagg.DB2) >= 0) {
  1003.                      if (this.dategroupby.getSelectedItem().equals("Month")) {
  1004.                         var3 = "CHAR(MONTH(" + var3 + "))";
  1005.                      }
  1006.  
  1007.                      if (this.dategroupby.getSelectedItem().equals("Year")) {
  1008.                         var3 = "CHAR(YEAR(" + var3 + "))";
  1009.                      }
  1010.                   } else if (this.targetDSN.dsnType.indexOf(JDPJagg.VFOXPRO) >= 0) {
  1011.                      if (this.dategroupby.getSelectedItem().equals("Month")) {
  1012.                         var3 = "SUBSTR(DTOC(" + var3 + "),1,2)";
  1013.                      }
  1014.  
  1015.                      if (this.dategroupby.getSelectedItem().equals("Year")) {
  1016.                         var3 = "SUBSTR(DTOC(" + var3 + "),7,2)";
  1017.                      }
  1018.                   } else if (this.targetDSN.dsnType.indexOf(JDPJagg.FOXPRO) >= 0) {
  1019.                      if (this.dategroupby.getSelectedItem().equals("Month")) {
  1020.                         var3 = "SUBSTR(STR(" + var3 + "),1,2)";
  1021.                      }
  1022.  
  1023.                      if (this.dategroupby.getSelectedItem().equals("Year")) {
  1024.                         var3 = "SUBSTR(STR(" + var3 + "),7,2)";
  1025.                      }
  1026.                   } else if (this.targetDSN.dsnType.indexOf(JDPJagg.CLOUDSCAPE) >= 0) {
  1027.                      var3 = "cast(" + var3 + " as char(14))";
  1028.                      if (this.dategroupby.getSelectedItem().equals("Month")) {
  1029.                         var3 = "SUBSTR(" + var3 + ",6,10)+SUBSTR(" + var3 + ",11,13)";
  1030.                      }
  1031.  
  1032.                      if (this.dategroupby.getSelectedItem().equals("Year")) {
  1033.                         var3 = "SUBSTR(" + var3 + ",6,10)";
  1034.                      }
  1035.                   }
  1036.                } else {
  1037.                   var3 = "to_char(" + var3 + ", 'yy/mm/dd')";
  1038.                   if (this.dategroupby.getSelectedItem().equals("Month")) {
  1039.                      var3 = "SUBSTR(" + var3 + ",1,5)";
  1040.                   }
  1041.  
  1042.                   if (this.dategroupby.getSelectedItem().equals("Year")) {
  1043.                      var3 = "SUBSTR(" + var3 + ",1,2)";
  1044.                   }
  1045.                }
  1046.             } else {
  1047.                var3 = "CONVERT(char," + var3 + ",11)";
  1048.                if (this.dategroupby.getSelectedItem().equals("Month")) {
  1049.                   var3 = "SUBSTRING(" + var3 + ",1,5)";
  1050.                }
  1051.  
  1052.                if (this.dategroupby.getSelectedItem().equals("Year")) {
  1053.                   var3 = "SUBSTRING(" + var3 + ",1,2)";
  1054.                }
  1055.             }
  1056.          }
  1057.  
  1058.          this.groupBySQL.setText(var3);
  1059.       }
  1060.    }
  1061.  
  1062.    public void InitClass(JDPUser var1, Panel var2, String var3) {
  1063.       super.user = var1;
  1064.       super.moduleName = "SelectChartDef";
  1065.       if (var3.startsWith("JDPLayoutMgr:")) {
  1066.          super.componentName = var3.substring(13);
  1067.          var3 = "";
  1068.       }
  1069.  
  1070.       ((Container)this).setLayout(new BorderLayout());
  1071.       ((Component)this).setFont(var1.plainFont);
  1072.       this.popuppanel = new JDPPopupMessage(var1, var2);
  1073.       ((Container)var2).add(this.popuppanel);
  1074.       Panel var4 = new Panel();
  1075.       ((Container)var4).setLayout(new BorderLayout());
  1076.       Panel var5 = new Panel();
  1077.       ((Container)var5).setLayout(new BorderLayout());
  1078.       Panel var6 = new Panel();
  1079.       ((Container)var6).setLayout(new BorderLayout());
  1080.       Panel var7 = new Panel();
  1081.       ((Container)var7).setLayout(new GridLayout(4, 1));
  1082.       JDPScrollPanel var8 = new JDPScrollPanel();
  1083.       Panel var9 = new Panel();
  1084.       ((Container)var9).setLayout(new BorderLayout());
  1085.       JDPScrollPanel var10 = new JDPScrollPanel();
  1086.       Panel var11 = new Panel();
  1087.       ((Container)var11).setLayout(new BorderLayout());
  1088.       JDPScrollPanel var12 = new JDPScrollPanel();
  1089.       Panel var13 = new Panel();
  1090.       ((Container)var13).setLayout(new BorderLayout());
  1091.       Panel var14 = new Panel();
  1092.       ((Container)var14).setLayout(new BorderLayout());
  1093.       Panel var15 = new Panel();
  1094.       ((Container)var15).setLayout(new BorderLayout());
  1095.       Panel var16 = new Panel();
  1096.       ((Container)var16).setLayout(new BorderLayout());
  1097.       Panel var17 = new Panel();
  1098.       ((Container)var17).setLayout(new BorderLayout());
  1099.       Panel var18 = new Panel();
  1100.       ((Container)var18).setLayout(new BorderLayout());
  1101.       JDPScrollPanel var19 = new JDPScrollPanel();
  1102.       JDPScrollPanel var20 = new JDPScrollPanel();
  1103.       JDPScrollPanel var21 = new JDPScrollPanel();
  1104.       Panel var22 = new Panel();
  1105.       ((Container)var22).setLayout(new BorderLayout());
  1106.       this.chartType = new JDPComboBox(var1, "", 10);
  1107.       this.chartType.setEditable(false);
  1108.       this.chartType.addItem("Column");
  1109.       this.chartType.addItem("Bar");
  1110.       this.chartType.addItem("Line");
  1111.       this.chartType.addItem("Area");
  1112.       this.chartType.addItem("Pie");
  1113.       this.chartType.addItem("Gantt");
  1114.       this.chartTitle = new TextField("", 30);
  1115.       this.xaxisTitle = new TextField("", 30);
  1116.       this.chartTitleColor = new JDPComboBox(var1, "", 10);
  1117.       this.chartTitleColor.setEditable(false);
  1118.       this.chartTitleColor.addItem("Black");
  1119.       this.chartTitleColor.addItem("Gray");
  1120.       this.chartTitleColor.addItem("Blue");
  1121.       this.chartTitleColor.addItem("Cyan");
  1122.       this.chartTitleColor.addItem("DarkGray");
  1123.       this.chartTitleColor.addItem("Green");
  1124.       this.chartTitleColor.addItem("LightGray");
  1125.       this.chartTitleColor.addItem("Magenta");
  1126.       this.chartTitleColor.addItem("Orange");
  1127.       this.chartTitleColor.addItem("Pink");
  1128.       this.chartTitleColor.addItem("Red");
  1129.       this.chartTitleColor.addItem("White");
  1130.       this.chartTitleColor.addItem("Yellow");
  1131.       this.xaxisTitleColor = new JDPComboBox(var1, "", 10);
  1132.       this.xaxisTitleColor.setEditable(false);
  1133.       this.xaxisTitleColor.addItem("Black");
  1134.       this.xaxisTitleColor.addItem("Gray");
  1135.       this.xaxisTitleColor.addItem("Blue");
  1136.       this.xaxisTitleColor.addItem("Cyan");
  1137.       this.xaxisTitleColor.addItem("DarkGray");
  1138.       this.xaxisTitleColor.addItem("Green");
  1139.       this.xaxisTitleColor.addItem("LightGray");
  1140.       this.xaxisTitleColor.addItem("Magenta");
  1141.       this.xaxisTitleColor.addItem("Orange");
  1142.       this.xaxisTitleColor.addItem("Pink");
  1143.       this.xaxisTitleColor.addItem("Red");
  1144.       this.xaxisTitleColor.addItem("White");
  1145.       this.xaxisTitleColor.addItem("Yellow");
  1146.       this.xaxisLabelColor = new JDPComboBox(var1, "", 10);
  1147.       this.xaxisLabelColor.setEditable(false);
  1148.       this.xaxisLabelColor.addItem("Black");
  1149.       this.xaxisLabelColor.addItem("Gray");
  1150.       this.xaxisLabelColor.addItem("Blue");
  1151.       this.xaxisLabelColor.addItem("Cyan");
  1152.       this.xaxisLabelColor.addItem("DarkGray");
  1153.       this.xaxisLabelColor.addItem("Green");
  1154.       this.xaxisLabelColor.addItem("LightGray");
  1155.       this.xaxisLabelColor.addItem("Magenta");
  1156.       this.xaxisLabelColor.addItem("Orange");
  1157.       this.xaxisLabelColor.addItem("Pink");
  1158.       this.xaxisLabelColor.addItem("Red");
  1159.       this.xaxisLabelColor.addItem("White");
  1160.       this.xaxisLabelColor.addItem("Yellow");
  1161.       this.yaxisLabelColor = new JDPComboBox(var1, "", 10);
  1162.       this.yaxisLabelColor.setEditable(false);
  1163.       this.yaxisLabelColor.addItem("Black");
  1164.       this.yaxisLabelColor.addItem("Gray");
  1165.       this.yaxisLabelColor.addItem("Blue");
  1166.       this.yaxisLabelColor.addItem("Cyan");
  1167.       this.yaxisLabelColor.addItem("DarkGray");
  1168.       this.yaxisLabelColor.addItem("Green");
  1169.       this.yaxisLabelColor.addItem("LightGray");
  1170.       this.yaxisLabelColor.addItem("Magenta");
  1171.       this.yaxisLabelColor.addItem("Orange");
  1172.       this.yaxisLabelColor.addItem("Pink");
  1173.       this.yaxisLabelColor.addItem("Red");
  1174.       this.yaxisLabelColor.addItem("White");
  1175.       this.yaxisLabelColor.addItem("Yellow");
  1176.       this.chartFrameColor = new JDPComboBox(var1, "", 10);
  1177.       this.chartFrameColor.setEditable(false);
  1178.       this.chartFrameColor.addItem("Black");
  1179.       this.chartFrameColor.addItem("Gray");
  1180.       this.chartFrameColor.addItem("Blue");
  1181.       this.chartFrameColor.addItem("Cyan");
  1182.       this.chartFrameColor.addItem("DarkGray");
  1183.       this.chartFrameColor.addItem("Green");
  1184.       this.chartFrameColor.addItem("LightGray");
  1185.       this.chartFrameColor.addItem("Magenta");
  1186.       this.chartFrameColor.addItem("Orange");
  1187.       this.chartFrameColor.addItem("Pink");
  1188.       this.chartFrameColor.addItem("Red");
  1189.       this.chartFrameColor.addItem("White");
  1190.       this.chartFrameColor.addItem("Yellow");
  1191.       this.pfromwhereclause = new TextField("(1=1)", 30);
  1192.       this.maxRows = new TextField("1000", 10);
  1193.       ((Container)var8).add("Left", new JDPWrapLabel(var1, "Chart Type:"));
  1194.       ((Container)var8).add("Right", this.chartType);
  1195.       ((Container)var8).add("Left", new JDPWrapLabel(var1, "Special Where Clause:"));
  1196.       ((Container)var8).add("Right", this.pfromwhereclause);
  1197.       if (super.componentName.equals("")) {
  1198.          ((Container)var8).add("Left", new JDPWrapLabel(var1, "Maximum rows to report on:"));
  1199.          ((Container)var8).add("Right", this.maxRows);
  1200.       }
  1201.  
  1202.       ((Container)var9).add("Center", new JDPChiselFramePanel(var1, "Define basic chart settings:", var8, "North"));
  1203.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "Chart Title:"));
  1204.       ((Container)var10).add("Right", this.chartTitle);
  1205.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "Chart Title Color:"));
  1206.       ((Container)var10).add("Right", this.chartTitleColor);
  1207.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "X Axis Title:"));
  1208.       ((Container)var10).add("Right", this.xaxisTitle);
  1209.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "X Axis Title Color:"));
  1210.       ((Container)var10).add("Right", this.xaxisTitleColor);
  1211.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "X Axis Label Color:"));
  1212.       ((Container)var10).add("Right", this.xaxisLabelColor);
  1213.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "Y Axis Label Color:"));
  1214.       ((Container)var10).add("Right", this.yaxisLabelColor);
  1215.       ((Container)var10).add("Left", new JDPWrapLabel(var1, "Chart frame Color:"));
  1216.       ((Container)var10).add("Right", this.chartFrameColor);
  1217.       ((Container)var11).add("Center", new JDPChiselFramePanel(var1, "Define chart titles:", var10, "North"));
  1218.       this.autoscale = new JDPComboBox(var1, "", 5);
  1219.       this.autoscale.setEditable(false);
  1220.       this.autoscale.addItem("Yes");
  1221.       this.autoscale.addItem("No");
  1222.       this.autozoom = new JDPComboBox(var1, "", 5);
  1223.       this.autozoom.setEditable(false);
  1224.       this.autozoom.addItem("No");
  1225.       this.autozoom.addItem("Yes");
  1226.       this.minPlotValue = new TextField("0", 5);
  1227.       this.maxPlotValue = new TextField("100", 5);
  1228.       this.minPlotValue.setEditable(false);
  1229.       this.maxPlotValue.setEditable(false);
  1230.       this.gridLineSettingH = new JDPComboBox(var1, "", 5);
  1231.       this.gridLineSettingH.setEditable(false);
  1232.       this.gridLineSettingH.addItem("Yes");
  1233.       this.gridLineSettingH.addItem("No");
  1234.       this.gridLineSettingV = new JDPComboBox(var1, "", 5);
  1235.       this.gridLineSettingV.setEditable(false);
  1236.       this.gridLineSettingV.addItem("Yes");
  1237.       this.gridLineSettingV.addItem("No");
  1238.       this.gridLineSettingB = new JDPComboBox(var1, "", 5);
  1239.       this.gridLineSettingB.setEditable(false);
  1240.       this.gridLineSettingB.addItem("Yes");
  1241.       this.gridLineSettingB.addItem("No");
  1242.       this.gridLineSettingF = new JDPComboBox(var1, "", 5);
  1243.       this.gridLineSettingF.setEditable(false);
  1244.       this.gridLineSettingF.addItem("Yes");
  1245.       this.gridLineSettingF.addItem("No");
  1246.       this.gridColor = new JDPComboBox(var1, "", 10);
  1247.       this.gridColor.setEditable(false);
  1248.       this.gridColor.addItem("Gray");
  1249.       this.gridColor.addItem("LightGray");
  1250.       this.gridColor.addItem("Black");
  1251.       this.gridColor.addItem("Blue");
  1252.       this.gridColor.addItem("Cyan");
  1253.       this.gridColor.addItem("DarkGray");
  1254.       this.gridColor.addItem("Green");
  1255.       this.gridColor.addItem("Magenta");
  1256.       this.gridColor.addItem("Orange");
  1257.       this.gridColor.addItem("Pink");
  1258.       this.gridColor.addItem("Red");
  1259.       this.gridColor.addItem("White");
  1260.       this.gridColor.addItem("Yellow");
  1261.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Auto calc min and max values:"));
  1262.       ((Container)var12).add("Right", this.autoscale);
  1263.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Adjust min y value to zoom in:"));
  1264.       ((Container)var12).add("Right", this.autozoom);
  1265.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Minimum y value:"));
  1266.       ((Container)var12).add("Right", this.minPlotValue);
  1267.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Maximum y value:"));
  1268.       ((Container)var12).add("Right", this.maxPlotValue);
  1269.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Grid setting: Horizontal:"));
  1270.       Panel var23 = new Panel();
  1271.       ((Container)var23).setLayout(new JDPLineLayout(1));
  1272.       ((Container)var23).add("Left", this.gridLineSettingH);
  1273.       ((Container)var23).add("Left", new JDPWrapLabel(var1, "Vertical:"));
  1274.       ((Container)var23).add("Left", this.gridLineSettingV);
  1275.       ((Container)var12).add("Right", var23);
  1276.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Grid setting: Background:"));
  1277.       Panel var24 = new Panel();
  1278.       ((Container)var24).setLayout(new JDPLineLayout(1));
  1279.       ((Container)var24).add("Left", this.gridLineSettingB);
  1280.       ((Container)var24).add("Left", new JDPWrapLabel(var1, "Foreground:"));
  1281.       ((Container)var24).add("Left", this.gridLineSettingF);
  1282.       ((Container)var12).add("Right", var24);
  1283.       ((Container)var12).add("Left", new JDPWrapLabel(var1, "Background grid color:"));
  1284.       ((Container)var12).add("Right", this.gridColor);
  1285.       ((Container)var13).add("Center", new JDPChiselFramePanel(var1, "Define chart scaling:", var12, "North"));
  1286.       this.dategroupby = new JDPComboBox(var1, "", 7);
  1287.       this.dategroupby.setEditable(false);
  1288.       this.dategroupby.addItem("");
  1289.       this.dategroupby.addItem("Day");
  1290.       this.dategroupby.addItem("Month");
  1291.       this.dategroupby.addItem("Year");
  1292.       this.dategroupby.disable();
  1293.       ((Container)var19).add("Left", new JDPWrapLabel(var1, "For this column:"));
  1294.       ((Container)var19).add("Right", new Panel());
  1295.       ((Container)var19).add("Left", new JDPWrapLabel(var1, "Group by:    "));
  1296.       ((Container)var19).add("Right", this.dategroupby);
  1297.       this.groupBySQL = new TextField("", 25);
  1298.       ((Container)var19).add("Left", new JDPWrapLabel(var1, "SQL Select:"));
  1299.       ((Container)var19).add("Right", this.groupBySQL);
  1300.       this.groupBy = new JDPList(var1);
  1301.       this.groupBy.setMinWidth(160);
  1302.       ((Container)var17).add("West", this.groupBy);
  1303.       Panel var25 = new Panel();
  1304.       ((Container)var25).setLayout(new BorderLayout());
  1305.       ((Container)var25).add("Center", var19);
  1306.       ((Container)var17).add("Center", var25);
  1307.       ((Container)var15).add("Center", new JDPChiselFramePanel(var1, "Choose the column by which to group your data (optional):", var17, "North"));
  1308.       this.multipleSeries = new JDPList(var1);
  1309.       this.multipleSeries.setMinWidth(160);
  1310.       ((Container)var6).add("Center", this.multipleSeries);
  1311.       this.multipleSeriesSQL = new TextField("", 30);
  1312.       ((Container)var20).add("Left", new JDPWrapLabel(var1, "SQL Select:"));
  1313.       ((Container)var20).add("Right", this.multipleSeriesSQL);
  1314.       ((Container)var18).add("West", var6);
  1315.       Panel var26 = new Panel();
  1316.       ((Container)var26).setLayout(new BorderLayout());
  1317.       ((Container)var26).add("Center", var20);
  1318.       ((Container)var18).add("Center", var26);
  1319.       ((Container)var16).add("Center", new JDPChiselFramePanel(var1, "Choose the column that defines values for multiple series (optional):", var18, "North"));
  1320.       String[] var27 = new String[]{"Type", "Titles", "Scaling", "Data grouping", "Multiple series", "Chart detail"};
  1321.       Panel[] var28 = new Panel[]{var9, var11, var13, var15, var16, var22};
  1322.       JDPTabSelectPanel var29 = new JDPTabSelectPanel(var1, var27, var28, "North");
  1323.       ((Container)var4).add("Center", var29);
  1324.       this.columns = new JDPList(var1);
  1325.       this.columns.setMinWidth(160);
  1326.       this.columns.setSelectionsCheckboxes(true);
  1327.       this.columns.allowMultipleSelections(true);
  1328.       this.aggregatefunction = new JDPComboBox(var1, "", 10);
  1329.       this.aggregatefunction.setEditable(false);
  1330.       this.aggregatefunction.addItem("");
  1331.       this.aggregatefunction.addItem("Sum");
  1332.       this.aggregatefunction.addItem("Average");
  1333.       this.elementlegend = new TextField("", 20);
  1334.       this.fieldsql = new TextField("", 20);
  1335.       this.elementcolor = new JDPComboBox(var1, "", 10);
  1336.       this.elementcolor.setEditable(false);
  1337.       this.elementcolor.addItem("Blue");
  1338.       this.elementcolor.addItem("Cyan");
  1339.       this.elementcolor.addItem("Green");
  1340.       this.elementcolor.addItem("Magenta");
  1341.       this.elementcolor.addItem("Orange");
  1342.       this.elementcolor.addItem("Red");
  1343.       this.elementcolor.addItem("White");
  1344.       this.elementcolor.addItem("Yellow");
  1345.       this.elementcolor.addItem("Pink");
  1346.       this.elementcolor.addItem("Black");
  1347.       this.elementcolor.addItem("DarkGray");
  1348.       this.elementcolor.addItem("Gray");
  1349.       this.elementbordercolor = new JDPComboBox(var1, "", 10);
  1350.       this.elementbordercolor.setEditable(false);
  1351.       this.elementbordercolor.addItem("Black");
  1352.       this.elementbordercolor.addItem("Gray");
  1353.       this.elementbordercolor.addItem("Blue");
  1354.       this.elementbordercolor.addItem("Cyan");
  1355.       this.elementbordercolor.addItem("DarkGray");
  1356.       this.elementbordercolor.addItem("Green");
  1357.       this.elementbordercolor.addItem("LightGray");
  1358.       this.elementbordercolor.addItem("Magenta");
  1359.       this.elementbordercolor.addItem("Orange");
  1360.       this.elementbordercolor.addItem("Pink");
  1361.       this.elementbordercolor.addItem("Red");
  1362.       this.elementbordercolor.addItem("White");
  1363.       this.elementbordercolor.addItem("Yellow");
  1364.       ((Container)var21).add("Left", new JDPWrapLabel(var1, "Aggregate Function:"));
  1365.       ((Container)var21).add("Right", this.aggregatefunction);
  1366.       ((Container)var21).add("Left", new JDPWrapLabel(var1, "Legend Text:"));
  1367.       ((Container)var21).add("Right", this.elementlegend);
  1368.       ((Container)var21).add("Left", new JDPWrapLabel(var1, "Element Color:"));
  1369.       ((Container)var21).add("Right", this.elementcolor);
  1370.       ((Container)var21).add("Left", new JDPWrapLabel(var1, "Element Border Color:"));
  1371.       ((Container)var21).add("Right", this.elementbordercolor);
  1372.       ((Container)var21).add("Left", new JDPWrapLabel(var1, "SQL Select:"));
  1373.       ((Container)var21).add("Right", this.fieldsql);
  1374.       Panel var30 = new Panel();
  1375.       ((Container)var30).setLayout(new BorderLayout());
  1376.       ((Container)var30).add("West", this.columns);
  1377.       ((Container)var30).add("Center", var21);
  1378.       ((Container)var22).add("Center", new JDPChiselFramePanel(var1, "Select the columns that contain the chart data:", var30, "North"));
  1379.       String[] var31 = new String[]{"Accept", "Reset"};
  1380.       int[] var32 = new int[]{5, 6};
  1381.       JDPButtons var33 = new JDPButtons(var1, var31, var32, JDPButtons.HORIZONTAL);
  1382.       ((Container)var4).add("South", var33);
  1383.       this.popuppanel.addComponent(var33.button[0], "Accept Selections", "Accept selections and proceed to next screen");
  1384.       this.popuppanel.addComponent(var33.button[1], "Reset Selections", "Reset selections back to default settings");
  1385.       ((Container)this).add("Center", new JDPChiselFramePanel(var1, "Chart definition:", var4, "North"));
  1386.       this.gParmObject = new Vector();
  1387.       this.gParmObject.addElement(super.moduleName + super.componentName);
  1388.       this.gParmObject.addElement(this);
  1389.       var1.gParm.addElement(this.gParmObject);
  1390.       ((Component)var2).paintAll(((Component)var2).getGraphics());
  1391.    }
  1392. }
  1393.