home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / Source.bin / WizardBeanInfo.java < prev    next >
Text File  |  1998-03-18  |  20KB  |  559 lines

  1. /*
  2.  * WizardBeanInfo.java
  3.  */
  4.  
  5. package symantec.itools.awt;
  6.  
  7. import java.beans.*;
  8. import symantec.itools.beans.*;
  9. import java.util.ResourceBundle;
  10.  
  11. /**
  12.  * BeanInfo for Wizard.
  13.  */
  14.  
  15. public class WizardBeanInfo extends SimpleBeanInfo {
  16.  
  17.     /**
  18.      * Constructs a WizardBeanInfo object.
  19.      */
  20.     public WizardBeanInfo()
  21.     {
  22.     }
  23.  
  24.     /**
  25.      * Gets a BeanInfo for the superclass of this bean.
  26.      * @return BeanInfo[] containing this bean's superclass BeanInfo
  27.      */
  28.     public BeanInfo[] getAdditionalBeanInfo() {
  29.         try {
  30.             BeanInfo[] bi = new BeanInfo[1];
  31.             bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
  32.             return bi;
  33.         }
  34.         catch (IntrospectionException e) { throw new Error(e.toString());}
  35.     }
  36.  
  37.     /**
  38.      * Gets the SymantecBeanDescriptor for this bean.
  39.      * @return an object of type SymantecBeanDescriptor
  40.      * @see symantec.itools.beans.SymantecBeanDescriptor
  41.      */
  42.     public BeanDescriptor getBeanDescriptor() {
  43.         ResourceBundle group = ResourceBundle.getBundle("symantec.itools.resources.GroupBundle");
  44.         String s = group.getString("GroupUtility");
  45.         
  46.         SymantecBeanDescriptor bd = new SymantecBeanDescriptor(beanClass);
  47.         bd.setFolder(s);
  48.         bd.setToolbar(s);
  49.         //bd.setWinHelp("0x123B2");// TO CHANGE
  50.  
  51.         bd.addAdditionalConnections(getAdditionalBeanInfo());
  52.  
  53.         return (BeanDescriptor)bd;
  54.     }
  55.  
  56.     /**
  57.      * Gets an image that may be used to visually represent this bean
  58.      * (in the toolbar, on a form, etc).
  59.      * @param iconKind the type of icon desired, one of: BeanInfo.ICON_MONO_16x16,
  60.      * BeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_MONO_32x32, or BeanInfo.ICON_COLOR_32x32.
  61.      * @return an image for this bean, always color even if requested monochrome
  62.      * @see BeanInfo#ICON_MONO_16x16
  63.      * @see BeanInfo#ICON_COLOR_16x16
  64.      * @see BeanInfo#ICON_MONO_32x32
  65.      * @see BeanInfo#ICON_COLOR_32x32
  66.      */
  67.     public java.awt.Image getIcon(int iconKind) {
  68.         if (iconKind == BeanInfo.ICON_MONO_16x16 ||
  69.             iconKind == BeanInfo.ICON_COLOR_16x16) {
  70.             java.awt.Image img = loadImage("WizardC16.gif");
  71.             return img;
  72.         }
  73.  
  74.         if (iconKind == BeanInfo.ICON_MONO_32x32 ||
  75.             iconKind == BeanInfo.ICON_COLOR_32x32) {
  76.             java.awt.Image img = loadImage("WizardC32.gif");
  77.             return img;
  78.         }
  79.  
  80.         return null;
  81.     }
  82.  
  83.     /**
  84.      * Gets an array of descriptions of the methods used for "connections" by
  85.      * Visual CafΘ's Interaction Wizard.
  86.      * Included in each method description is a CONNECTIONS ConnectionDescriptor.
  87.      * @return method descriptions for this bean
  88.      * @see symantec.itools.beans.ConnectionDescriptor#CONNECTIONS
  89.      */
  90.     public MethodDescriptor[] getMethodDescriptors() {
  91.         Class[] args;
  92.         ConnectionDescriptor connection;
  93.         java.util.Vector connections;
  94.         java.util.Vector md = new java.util.Vector();
  95.         ResourceBundle conn = ResourceBundle.getBundle("symantec.itools.resources.ConnBundle");
  96.  
  97.         // setSelectedIndex
  98.  
  99.         /*
  100.         try{
  101.             args = new Class[1];
  102.             args[0] = java.lang.Integer.TYPE;
  103.             MethodDescriptor setSelectedIndex = new MethodDescriptor(beanClass.getMethod("setSelectedIndex", args));
  104.  
  105.             connections = new java.util.Vector();
  106.             connection = new ConnectionDescriptor("input", "int", "",
  107.                                     "%name%.setSelectedIndex(%arg%);",
  108.                                     conn.getString("SetSelectedIndex"));
  109.             connections.addElement(connection);
  110.  
  111.             setSelectedIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  112.             md.addElement(setSelectedIndex);
  113.         } catch (Exception e) { throw new Error("setSelectedIndex:: " + e.toString()); }
  114.         */
  115.  
  116.         // getSelectedIndex
  117.  
  118.         try{
  119.             args = null;
  120.             MethodDescriptor getSelectedIndex = new MethodDescriptor(beanClass.getMethod("getSelectedIndex", args));
  121.  
  122.             connections = new java.util.Vector();
  123.             connection = new ConnectionDescriptor("output", "int", "",
  124.                                     "%name%.getSelectedIndex()",
  125.                                     conn.getString("SetSelectedIndex"));
  126.             connections.addElement(connection);
  127.  
  128.             getSelectedIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  129.             md.addElement(getSelectedIndex);
  130.         } catch (Exception e) { throw new Error("getSelectedIndex:: " + e.toString()); }
  131.         
  132.         // setButtonsAlignment
  133.         
  134.         /*
  135.         try{
  136.             args = new Class[1];
  137.             args[0] = java.lang.Integer.TYPE ;
  138.             MethodDescriptor setButtonsAlignment = new MethodDescriptor(beanClass.getMethod("setButtonsAlignment", args));
  139.  
  140.             connections = new java.util.Vector();
  141.             connection = new ConnectionDescriptor("input", "int", "",
  142.                                     "%name%.setButtonsAlignment(%arg%);",
  143.                                     conn.getString("SetButtonsAlignment"));
  144.             connections.addElement(connection);
  145.  
  146.             setButtonsAlignment.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  147.             md.addElement(setButtonsAlignment);
  148.         } catch (Exception e) { throw new Error("setButtonsAlignment:: " + e.toString()); }
  149.         */
  150.         
  151.         // getButtonsAlignment
  152.  
  153.         /*
  154.         try{
  155.             args = null;
  156.             MethodDescriptor getButtonsAlignment = new MethodDescriptor(beanClass.getMethod("getButtonsAlignment", args));
  157.  
  158.             connections = new java.util.Vector();
  159.             connection = new ConnectionDescriptor("output", "int", "",
  160.                                     "%name%.getButtonsAlignment()",
  161.                                     conn.getString("GetButtonsAlignment"));
  162.             connections.addElement(connection);
  163.  
  164.             getButtonsAlignment.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  165.             md.addElement(getButtonsAlignment);
  166.         } catch (Exception e) { throw new Error("getButtonsAlignment:: " + e.toString()); }
  167.         */
  168.  
  169.         // getPageCount
  170.  
  171.         try{
  172.             args = null;
  173.             MethodDescriptor getPageCount = new MethodDescriptor(beanClass.getMethod("getPageCount", args));
  174.  
  175.             connections = new java.util.Vector();
  176.             connection = new ConnectionDescriptor("output", "int", "",
  177.                                     "%name%.getPageCount()",
  178.                                     conn.getString("GetPageCount"));
  179.             connections.addElement(connection);
  180.  
  181.             getPageCount.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  182.             md.addElement(getPageCount);
  183.         } catch (Exception e) { throw new Error("getPageCount:: " + e.toString()); }
  184.  
  185.         // goPrevious
  186.  
  187.         try{
  188.             args = null;
  189.             MethodDescriptor goPrevious = new MethodDescriptor(beanClass.getMethod("goPrevious", args));
  190.  
  191.             connections = new java.util.Vector();
  192.             connection = new ConnectionDescriptor("input", "void", "",
  193.                                     "%name%.goPrevious();",
  194.                                     conn.getString("GoPrevious"));
  195.             connections.addElement(connection);
  196.  
  197.             goPrevious.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  198.             md.addElement(goPrevious);
  199.         } catch (Exception e) { throw new Error("goPrevious:: " + e.toString()); }
  200.  
  201.         // goNext
  202.  
  203.         try{
  204.             args = null;
  205.             MethodDescriptor goNext = new MethodDescriptor(beanClass.getMethod("goNext", args));
  206.  
  207.             connections = new java.util.Vector();
  208.             connection = new ConnectionDescriptor("input", "void", "",
  209.                                     "%name%.goNext();",
  210.                                     conn.getString("GoNext"));
  211.             connections.addElement(connection);
  212.  
  213.             goNext.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  214.             md.addElement(goNext);
  215.         } catch (Exception e) { throw new Error("goNext:: " + e.toString()); }
  216.  
  217.         // doFinish
  218.  
  219.         try{
  220.             args = null;
  221.             MethodDescriptor doFinish = new MethodDescriptor(beanClass.getMethod("doFinish", args));
  222.  
  223.             connections = new java.util.Vector();
  224.             connection = new ConnectionDescriptor("input", "void", "",
  225.                                     "%name%.doFinish();",
  226.                                     conn.getString("DoFinish"));
  227.             connections.addElement(connection);
  228.  
  229.             doFinish.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  230.             md.addElement(doFinish);
  231.         } catch (Exception e) { throw new Error("doFinish:: " + e.toString()); }
  232.  
  233.         // doCancel
  234.  
  235.         try{
  236.             args = null;
  237.             MethodDescriptor doCancel = new MethodDescriptor(beanClass.getMethod("doCancel", args));
  238.  
  239.             connections = new java.util.Vector();
  240.             connection = new ConnectionDescriptor("input", "void", "",
  241.                                     "%name%.doCancel();",
  242.                                     conn.getString("DoCancel"));
  243.             connections.addElement(connection);
  244.  
  245.             doCancel.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  246.             md.addElement(doCancel);
  247.         } catch (Exception e) { throw new Error("doCancel:: " + e.toString()); }
  248.  
  249.         // doHelp
  250.  
  251.         try{
  252.             args = null;
  253.             MethodDescriptor doHelp = new MethodDescriptor(beanClass.getMethod("doHelp", args));
  254.  
  255.             connections = new java.util.Vector();
  256.             connection = new ConnectionDescriptor("input", "void", "",
  257.                                     "%name%.doHelp();",
  258.                                     conn.getString("DoHelp"));
  259.             connections.addElement(connection);
  260.  
  261.             doHelp.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  262.             md.addElement(doHelp);
  263.         } catch (Exception e) { throw new Error("doHelp:: " + e.toString()); }
  264.  
  265.         // updateButtonsState
  266.  
  267.         try{
  268.             args = null;
  269.             MethodDescriptor updateButtonsState = new MethodDescriptor(beanClass.getMethod("updateButtonsState", args));
  270.  
  271.             connections = new java.util.Vector();
  272.             connection = new ConnectionDescriptor("input", "void", "",
  273.                                     "%name%.updateButtonsState();",
  274.                                     conn.getString("SetButtonsState"));
  275.             connections.addElement(connection);
  276.  
  277.             updateButtonsState.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  278.             md.addElement(updateButtonsState);
  279.         } catch (Exception e) { throw new Error("updateButtonsState:: " + e.toString()); }
  280.  
  281.         // setPreviousEnabled
  282.  
  283.         try{
  284.             args = new Class[1];
  285.             args[0] = java.lang.Boolean.TYPE;
  286.             MethodDescriptor setPreviousEnabled = new MethodDescriptor(beanClass.getMethod("setPreviousEnabled", args));
  287.  
  288.             connections = new java.util.Vector();
  289.             connection = new ConnectionDescriptor("input", "void", "",
  290.                                     "%name%.setPreviousEnabled(true);",
  291.                                     conn.getString("SetPreviousEnabledTrue"));
  292.             connections.addElement(connection);
  293.  
  294.             connection = new ConnectionDescriptor("input", "void", "",
  295.                                     "%name%.setPreviousEnabled(false);",
  296.                                     conn.getString("SetPreviousEnabledFalse"));
  297.             connections.addElement(connection);
  298.  
  299.             setPreviousEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  300.             md.addElement(setPreviousEnabled);
  301.         } catch (Exception e) { throw new Error("setPreviousEnabled:: " + e.toString()); }
  302.  
  303.         // setNextEnabled
  304.  
  305.         try{
  306.             args = new Class[1];
  307.             args[0] = java.lang.Boolean.TYPE;
  308.             MethodDescriptor setNextEnabled = new MethodDescriptor(beanClass.getMethod("setNextEnabled", args));
  309.  
  310.             connections = new java.util.Vector();
  311.             connection = new ConnectionDescriptor("input", "void", "",
  312.                                     "%name%.setNextEnabled(true);",
  313.                                     conn.getString("SetNextEnabledTrue"));
  314.             connections.addElement(connection);
  315.  
  316.             connection = new ConnectionDescriptor("input", "void", "",
  317.                                     "%name%.setNextEnabled(false);",
  318.                                     conn.getString("SetNextEnabledFalse"));
  319.             connections.addElement(connection);
  320.  
  321.             setNextEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  322.             md.addElement(setNextEnabled);
  323.         } catch (Exception e) { throw new Error("setNextEnabled:: " + e.toString()); }
  324.  
  325.         // setFinishEnabled
  326.  
  327.         try{
  328.             args = new Class[1];
  329.             args[0] = java.lang.Boolean.TYPE;
  330.             MethodDescriptor setFinishEnabled = new MethodDescriptor(beanClass.getMethod("setFinishEnabled", args));
  331.  
  332.             connections = new java.util.Vector();
  333.             connection = new ConnectionDescriptor("input", "void", "",
  334.                                     "%name%.setFinishEnabled(true);",
  335.                                     conn.getString("SetFinishEnabledTrue"));
  336.             connections.addElement(connection);
  337.  
  338.             connection = new ConnectionDescriptor("input", "void", "",
  339.                                     "%name%.setFinishEnabled(false);",
  340.                                     conn.getString("SetFinishEnabledFalse"));
  341.             connections.addElement(connection);
  342.  
  343.             setFinishEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  344.             md.addElement(setFinishEnabled);
  345.         } catch (Exception e) { throw new Error("setFinishEnabled:: " + e.toString()); }
  346.  
  347.         // setCancelEnabled
  348.  
  349.         try{
  350.             args = new Class[1];
  351.             args[0] = java.lang.Boolean.TYPE;
  352.             MethodDescriptor setCancelEnabled = new MethodDescriptor(beanClass.getMethod("setCancelEnabled", args));
  353.  
  354.             connections = new java.util.Vector();
  355.             connection = new ConnectionDescriptor("input", "void", "",
  356.                                     "%name%.setCancelEnabled(true);",
  357.                                     conn.getString("SetCancelEnabledTrue"));
  358.             connections.addElement(connection);
  359.  
  360.             connection = new ConnectionDescriptor("input", "void", "",
  361.                                     "%name%.setCancelEnabled(false);",
  362.                                     conn.getString("SetCancelEnabledFalse"));
  363.             connections.addElement(connection);
  364.  
  365.             setCancelEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  366.             md.addElement(setCancelEnabled);
  367.         } catch (Exception e) { throw new Error("setCancelEnabled:: " + e.toString()); }
  368.  
  369.         // setHelpEnabled
  370.  
  371.         try{
  372.             args = new Class[1];
  373.             args[0] = java.lang.Boolean.TYPE;
  374.             MethodDescriptor setHelpEnabled = new MethodDescriptor(beanClass.getMethod("setHelpEnabled", args));
  375.  
  376.             connections = new java.util.Vector();
  377.             connection = new ConnectionDescriptor("input", "void", "",
  378.                                     "%name%.setHelpEnabled(true);",
  379.                                     conn.getString("SetHelpEnabledTrue"));
  380.             connections.addElement(connection);
  381.  
  382.             connection = new ConnectionDescriptor("input", "void", "",
  383.                                     "%name%.setHelpEnabled(false);",
  384.                                     conn.getString("SetHelpEnabledFalse"));
  385.             connections.addElement(connection);
  386.  
  387.             setHelpEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  388.             md.addElement(setHelpEnabled);
  389.         } catch (Exception e) { throw new Error("setHelpEnabled:: " + e.toString()); }
  390.  
  391.         // setNextPageIndex
  392.  
  393.         try{
  394.             args = new Class[1];
  395.             args[0] = java.lang.Integer.TYPE;
  396.             MethodDescriptor setNextPageIndex = new MethodDescriptor(beanClass.getMethod("setNextPageIndex", args));
  397.  
  398.             connections = new java.util.Vector();
  399.             connection = new ConnectionDescriptor("input", "int", "",
  400.                                     "%name%.setNextPageIndex(%arg%);",
  401.                                     conn.getString("SetNextPageIndex"));
  402.             connections.addElement(connection);
  403.  
  404.             setNextPageIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  405.             md.addElement(setNextPageIndex);
  406.         } catch (Exception e) { throw new Error("setNextPageName:: " + e.toString()); }
  407.  
  408.         // setPreviousPageIndex
  409.  
  410.         try{
  411.             args = new Class[1];
  412.             args[0] = java.lang.Integer.TYPE;
  413.             MethodDescriptor setPreviousPageIndex = new MethodDescriptor(beanClass.getMethod("setPreviousPageIndex", args));
  414.  
  415.             connections = new java.util.Vector();
  416.             connection = new ConnectionDescriptor("input", "int", "",
  417.                                     "%name%.setPreviousPageIndex(%arg%);",
  418.                                     conn.getString("SetPreviousPageIndex"));
  419.             connections.addElement(connection);
  420.  
  421.             setPreviousPageIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  422.             md.addElement(setPreviousPageIndex);
  423.         } catch (Exception e) { throw new Error("setPreviousPageName:: " + e.toString()); }
  424.  
  425.         // setNextPage
  426.  
  427.         try{
  428.             args = new Class[1];
  429.             args[0] = java.awt.Component.class;
  430.             MethodDescriptor setNextPage = new MethodDescriptor(beanClass.getMethod("setNextPage", args));
  431.  
  432.             connections = new java.util.Vector();
  433.             connection = new ConnectionDescriptor("input", "java.awt.Component", "",
  434.                                     "%name%.setNextPage(%arg%);",
  435.                                     conn.getString("SetNextPage"));
  436.             connections.addElement(connection);
  437.  
  438.             setNextPage.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  439.             md.addElement(setNextPage);
  440.         } catch (Exception e) { throw new Error("setNextPage:: " + e.toString()); }
  441.  
  442.         // setPreviousPage
  443.  
  444.         try{
  445.             args = new Class[1];
  446.             args[0] = java.awt.Component.class;
  447.             MethodDescriptor setPreviousPage = new MethodDescriptor(beanClass.getMethod("setPreviousPage", args));
  448.  
  449.             connections = new java.util.Vector();
  450.             connection = new ConnectionDescriptor("input", "java.awt.Component", "",
  451.                                     "%name%.setPreviousPage(%arg%);",
  452.                                     conn.getString("SetPreviousPage"));
  453.             connections.addElement(connection);
  454.  
  455.             setPreviousPage.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  456.             md.addElement(setPreviousPage);
  457.         } catch (Exception e) { throw new Error("setPreviousPage:: " + e.toString()); }
  458.  
  459.         MethodDescriptor[] rv = new MethodDescriptor[md.size()];
  460.         md.copyInto(rv);
  461.  
  462.         return rv;
  463.     }
  464.  
  465.     /**
  466.      * Returns descriptions of this bean's properties.
  467.      */
  468.     public PropertyDescriptor[] getPropertyDescriptors() {
  469.         ResourceBundle prop = ResourceBundle.getBundle("symantec.itools.resources.PropBundle");
  470.         
  471.         try{
  472.             // SelectedIndex
  473.             
  474.             PropertyDescriptor selectedIndex = new PropertyDescriptor("selectedIndex", beanClass,
  475.                 "getSelectedIndex", null);
  476.             selectedIndex.setBound(true);
  477.             //selectedIndex.setConstrained(true);
  478.             selectedIndex.setDisplayName(prop.getString("SelectedIndex"));
  479.             selectedIndex.setHidden(true);
  480.  
  481.             // ComponentAt
  482.  
  483.             /*
  484.             PropertyDescriptor componentAt = new PropertyDescriptor("componentAt", beanClass);
  485.             componentAt.setBound(true);
  486.             componentAt.setConstrained(true);
  487.             componentAt.setDisplayName("Component at index");
  488.             componentAt.setHidden(true);
  489.             */
  490.  
  491.             // HelpButtonVisible
  492.  
  493.             PropertyDescriptor helpButtonVisible = new PropertyDescriptor("helpButtonVisible", beanClass);
  494.             helpButtonVisible.setBound(true);
  495.             helpButtonVisible.setConstrained(true);
  496.             helpButtonVisible.setDisplayName(prop.getString("HelpButtonVisible"));
  497.  
  498.             // Combined button
  499.  
  500.             PropertyDescriptor combinedButton = new PropertyDescriptor("combinedButton", beanClass);
  501.             combinedButton.setBound(true);
  502.             combinedButton.setConstrained(true);
  503.             combinedButton.setDisplayName(prop.getString("CombinedButton"));
  504.             
  505.             // Buttons alignment
  506.             
  507.             PropertyDescriptor buttonsAlignment = new PropertyDescriptor("buttonsAlignment", beanClass);
  508.             buttonsAlignment.setBound(true);
  509.             buttonsAlignment.setConstrained(true);
  510.             buttonsAlignment.setDisplayName(prop.getString("ButtonsAlignment"));
  511.             buttonsAlignment.setValue("ENUMERATION", "LEFT=0, CENTER=1, RIGHT=2");
  512.  
  513.             // PageCount
  514.  
  515.             PropertyDescriptor pageCount = new PropertyDescriptor("pageCount", beanClass,
  516.                 "getPageCount", null);
  517.             pageCount.setBound(true);
  518.             pageCount.setDisplayName(prop.getString("PageCount"));
  519.             pageCount.setHidden(true);
  520.  
  521.             // Layout
  522.  
  523.             PropertyDescriptor layout = new PropertyDescriptor("layout", beanClass);
  524.             layout.setHidden(true);
  525.  
  526.             PropertyDescriptor[] rv = {
  527.                 selectedIndex,
  528.                 //componentAt,
  529.                 helpButtonVisible,
  530.                 combinedButton,
  531.                 buttonsAlignment,
  532.                 pageCount,
  533.                 layout};
  534.             return rv;
  535.         } catch (IntrospectionException e) { throw new Error(e.toString()); }
  536.     }
  537.     /*
  538.     public EventSetDescriptor[] getEventSetDescriptors() {
  539.         try {
  540.             EventSetDescriptor action = new EventSetDescriptor();
  541.         } catch() {}
  542.         public EventSetDescriptor(Class sourceClass,
  543.                            String eventSetName,
  544.                            Class listenerType,
  545.                            String listenerMethodName) throws IntrospectionException
  546.  
  547.     }
  548.     */
  549.  
  550.     /**
  551.      * Returns the index of the property expected to be changed most often by the designer.
  552.      */
  553.     public int getDefaultPropertyIndex() {
  554.         return 0;    //  the index for our default property is always 0
  555.     }
  556.  
  557.     private final static Class beanClass = symantec.itools.awt.Wizard.class;
  558. }
  559.