public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor rootDirStr =
          new PropertyDescriptor("rootDirStr", getBeanDescriptor().getBeanClass());
      rootDirStr.setBound(true);
      rootDirStr.setPropertyEditorClass(JTextFieldEditor.class);
      rootDirStr.setDisplayName("<html><font color='green'>root dir:");
      rootDirStr.setShortDescription("The directory root to search for change sets. ");

      PropertyDescriptor validateChangeSets =
          new PropertyDescriptor("validateChangeSets", getBeanDescriptor().getBeanClass());
      validateChangeSets.setBound(true);
      validateChangeSets.setPropertyEditorClass(CheckboxEditor.class);
      validateChangeSets.setDisplayName("<html><font color='green'>validate:");
      validateChangeSets.setShortDescription("Select if you want to validate change sets. ");

      PropertyDescriptor validators =
          new PropertyDescriptor("validators", getBeanDescriptor().getBeanClass());
      validators.setBound(true);
      validators.setPropertyEditorClass(JTextFieldEditor.class);
      validators.setDisplayName("<html><font color='green'>validators:");
      validators.setShortDescription("The validators used on the change sets. ");

      PropertyDescriptor rv[] = {rootDirStr, validateChangeSets, validators};
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
  static {
    try {
      EventSetDescriptor propertyChange =
          new EventSetDescriptor(
              BEAN_CLASS, "propertyChange", PropertyChangeListener.class, "propertyChange");
      propertyChange.setDisplayName(ResourceBundleLoader.getText("EVT_NAME_PROPERTY_CHANGE"));
      propertyChange.setShortDescription(ResourceBundleLoader.getText("EVT_DESC_PROPERTY_CHANGE"));

      eventSetDescriptors_ = new EventSetDescriptor[] {propertyChange};

      PropertyDescriptor path = new PropertyDescriptor("path", BEAN_CLASS);
      path.setBound(true);
      path.setConstrained(false);
      path.setDisplayName(ResourceBundleLoader.getText("PROP_NAME_PATH"));
      path.setShortDescription(ResourceBundleLoader.getText("PROP_DESC_PATH"));

      PropertyDescriptor system = new PropertyDescriptor("system", BEAN_CLASS);
      system.setBound(true);
      system.setConstrained(false);
      system.setDisplayName(ResourceBundleLoader.getText("PROP_NAME_SYSTEM"));
      system.setShortDescription(ResourceBundleLoader.getText("PROP_DESC_SYSTEM"));

      propertyDescriptors_ = new PropertyDescriptor[] {path, system};
    } catch (IntrospectionException e) {
      Trace.log(Trace.ERROR, "Unexpected IntrospectionException:", e);
      throw new InternalErrorException(InternalErrorException.UNEXPECTED_EXCEPTION);
    }
  }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor _toolTipText =
          new PropertyDescriptor("toolTipText", beanClass, "getToolTipText", "setToolTipText");
      _toolTipText.setDisplayName("toolTipText");
      _toolTipText.setShortDescription("toolTipText");
      PropertyDescriptor _fillColor =
          new PropertyDescriptor("fillColor", beanClass, "getFillColor", "setFillColor");
      _fillColor.setDisplayName("fillColor");
      _fillColor.setShortDescription("fillColor");
      _fillColor.setPropertyEditorClass(GeColorEditor.class);
      PropertyDescriptor _borderColor =
          new PropertyDescriptor("borderColor", beanClass, "getBorderColor", "setBorderColor");
      _borderColor.setDisplayName("borderColor");
      _borderColor.setShortDescription("borderColor");
      _borderColor.setPropertyEditorClass(GeColorEditor.class);
      PropertyDescriptor _colorTone =
          new PropertyDescriptor("colorTone", beanClass, "getColorTone", "setColorTone");
      _colorTone.setDisplayName("colorTone");
      _colorTone.setShortDescription("colorTone");
      _colorTone.setPropertyEditorClass(GeColorToneEditor.class);
      PropertyDescriptor _colorShift =
          new PropertyDescriptor("colorShift", beanClass, "getColorShift", "setColorShift");
      _colorShift.setDisplayName("colorShift");
      _colorShift.setShortDescription("colorShift");
      _colorShift.setPropertyEditorClass(GeColorShiftEditor.class);
      PropertyDescriptor _colorBrightness =
          new PropertyDescriptor(
              "colorBrightness", beanClass, "getColorBrightness", "setColorBrightness");
      _colorBrightness.setDisplayName("colorBrightness");
      _colorBrightness.setShortDescription("colorBrightness");
      _colorBrightness.setPropertyEditorClass(GeColorBrightnessEditor.class);
      PropertyDescriptor _colorIntensity =
          new PropertyDescriptor(
              "colorIntensity", beanClass, "getColorIntensity", "setColorIntensity");
      _colorIntensity.setDisplayName("colorIntensity");
      _colorIntensity.setShortDescription("colorIntensity");
      _colorIntensity.setPropertyEditorClass(GeColorIntensityEditor.class);
      PropertyDescriptor _rotate =
          new PropertyDescriptor("rotate", beanClass, "getRotate", "setRotate");
      _rotate.setDisplayName("rotate");
      _rotate.setShortDescription("rotate");
      PropertyDescriptor[] pds =
          new PropertyDescriptor[] {
            _toolTipText,
            _fillColor,
            _borderColor,
            _colorTone,
            _colorShift,
            _colorBrightness,
            _colorIntensity,
            _rotate
          };
      return pds;

    } catch (IntrospectionException ex) {
      ex.printStackTrace();
      return null;
    }
  }
Beispiel #4
0
 public void addColumn(String displayName, String propertyName) {
   try {
     PropertyDescriptor property =
         new PropertyDescriptor(propertyName, beanClass, propertyName, null);
     property.setDisplayName(displayName);
     properties.add(property);
   } catch (Exception ex) {
     throw new RuntimeException(ex);
   }
 }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor listName =
          new PropertyDescriptor("listName", TakeFirstItemInAttachmentList.class);
      listName.setBound(true);
      listName.setPropertyEditorClass(PropertyNameLabelEditor.class);
      listName.setDisplayName("<html><font color='green'>Name of temporary list:");
      listName.setShortDescription("Name of the temporary list.");

      PropertyDescriptor conceptKey =
          new PropertyDescriptor("conceptKey", TakeFirstItemInAttachmentList.class);
      conceptKey.setBound(true);
      conceptKey.setPropertyEditorClass(PropertyNameLabelEditor.class);
      conceptKey.setDisplayName("<html><font color='green'>Concept key:");
      conceptKey.setShortDescription("Concept key.");

      PropertyDescriptor rv[] = {listName, conceptKey};
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor profilePropName =
          new PropertyDescriptor("profilePropName", getBeanDescriptor().getBeanClass());
      profilePropName.setBound(true);
      profilePropName.setPropertyEditorClass(PropertyNameLabelEditor.class);
      profilePropName.setDisplayName("<html><font color='green'>profile property:");
      profilePropName.setShortDescription("The property containing the profile to change.");

      PropertyDescriptor editPathEntry =
          new PropertyDescriptor("editPathEntry", getBeanDescriptor().getBeanClass());
      editPathEntry.setBound(true);
      editPathEntry.setPropertyEditorClass(ConceptLabelPropEditor.class);
      editPathEntry.setDisplayName("<html><font color='green'>editing path:");
      editPathEntry.setShortDescription("The property that contains the editing path.");

      PropertyDescriptor rv[] = {profilePropName, editPathEntry};
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
Beispiel #7
0
  /** Constructor. */
  @SuppressWarnings("unchecked")
  public PropertyMd(PropertyDescriptor prop) throws InvalidEntityBeanPropertyException {
    prop.setDisplayName(nameToTitle(prop.getName()));
    prop.setShortDescription("");
    this.entityClass = prop.getReadMethod().getDeclaringClass();
    this.propertyDescriptor = prop;
    Field f = getField();
    isManualInputAllowed = true;
    if (f != null) {
      // check if it has a @NoManualInput annotation
      NoManualInput noManualInputA = f.getAnnotation(NoManualInput.class);
      if (noManualInputA != null) {
        isManualInputAllowed = false;
        createDefaultValue = noManualInputA.createDefaultValue();
        defaultValueClass = propertyDescriptor.getPropertyType();
      }
      CreateDefaultValue defValueA = f.getAnnotation(CreateDefaultValue.class);
      if (!createDefaultValue && (defValueA != null)) {
        createDefaultValue = true;
        defaultValueClass = defValueA.clazz();
        if (Object.class.equals(defaultValueClass)) {
          defaultValueClass = propertyDescriptor.getPropertyType();
        }
      }

      // check if it has a @Label annotation
      Label labelA = f.getAnnotation(Label.class);
      if (labelA != null) {
        prop.setDisplayName(labelA.name());
        prop.setShortDescription(labelA.description());
      }

      // check if it has a @ImmutableReference annotation
      ImmutableReference immutableRefA = f.getAnnotation(ImmutableReference.class);
      if (immutableRefA != null) {
        isImmutableReference = true;
      }
    }
  }
 /**
  * Creates the descriptor.
  *
  * @param propertyName The programmatic name of the property.
  * @param getterName The name of the method used for reading the property value.
  * @param setterName The name of the method used for writing the property value.
  * @param displayNameKey The key to resource bundle for displayName
  * @param descriptionKey The key to resource bundle for the description
  */
 private static PropertyDescriptor createDescriptor(
     String propertyName,
     String getterName,
     String setterName,
     String displayNameKey,
     String descriptionKey)
     throws IntrospectionException {
   PropertyDescriptor desc =
       new PropertyDescriptor(propertyName, RMIDataLoader.class, getterName, setterName);
   desc.setDisplayName(getString(displayNameKey));
   desc.setShortDescription(getString(descriptionKey));
   return desc;
 }
  protected void performAction(Node[] node) {

    try {

      List<ClearingItem> clearingList = getClearingItems();
      log.info("found " + clearingList.size() + " clearing items.");

      for (ClearingItem item : clearingList) {
        ClearingPrintTO to = new ClearingPrintTO();
        to.setMessage(ClearingPrintTO.resolveMessage(item));
        to.setCreated(to.getCreated());
      }

      List<PropertyDescriptor> props = new ArrayList<PropertyDescriptor>();
      PropertyDescriptor pd =
          new PropertyDescriptor("created", ClearingItem.class, "getCreated", null);
      pd.setDisplayName("Datum");
      props.add(pd);

      pd = new PropertyDescriptor("message", ClearingItem.class);
      pd.setDisplayName("Klärfall");
      props.add(pd);

      byte[] bytes = export("Klärfallliste", clearingList, props);
      log.info("received " + bytes.length + " bytes");

      log.info("going to print");

      ReportServiceBean reportService = new ReportServiceBean();
      reportService.print("default", bytes, DocumentTypes.APPLICATION_PDF.toString());

      //            print("default", bytes, DocumentTypes.APPLICATION_PDF.toString());
      log.info("printing on default");

    } catch (Throwable ex) {
      ExceptionAnnotator.annotate(ex);
    }
  }
Beispiel #10
0
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor _borderColor =
          new PropertyDescriptor("borderColor", beanClass, "getBorderColor", "setBorderColor");
      _borderColor.setDisplayName("borderColor");
      _borderColor.setShortDescription("borderColor");
      _borderColor.setPropertyEditorClass(GeColorEditor.class);
      PropertyDescriptor _lineWidth =
          new PropertyDescriptor("lineWidth", beanClass, "getLineWidth", "setLineWidth");
      _lineWidth.setDisplayName("lineWidth");
      _lineWidth.setShortDescription("lineWidth");
      PropertyDescriptor _rotate =
          new PropertyDescriptor("rotate", beanClass, "getRotate", "setRotate");
      _rotate.setDisplayName("rotate");
      _rotate.setShortDescription("rotate");
      PropertyDescriptor[] pds = new PropertyDescriptor[] {_borderColor, _lineWidth, _rotate};
      return pds;

    } catch (IntrospectionException ex) {
      ex.printStackTrace();
      return null;
    }
  }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor queueType = new PropertyDescriptor("queueType", ToQueue.class);
      queueType.setBound(true);
      queueType.setPropertyEditorClass(ConceptLabelEditor.class);
      queueType.setDisplayName("Queue type:");
      queueType.setShortDescription("The type of queue to place this process into.");

      PropertyDescriptor rv[] = {queueType};
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor profilePropName =
          new PropertyDescriptor("profilePropName", getBeanDescriptor().getBeanClass());
      profilePropName.setBound(true);
      profilePropName.setPropertyEditorClass(PropertyNameLabelEditor.class);
      profilePropName.setDisplayName("<html><font color='green'>profile prop:");
      profilePropName.setShortDescription("The property that contains the working profile.");

      PropertyDescriptor rv[] = {profilePropName};
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {

      PropertyDescriptor inputPropName =
          new PropertyDescriptor("inputPropName", getBeanDescriptor().getBeanClass());
      inputPropName.setBound(true);
      inputPropName.setPropertyEditorClass(PropertyNameLabelEditor.class);
      inputPropName.setDisplayName("<html><font color='green'>input set property");
      inputPropName.setShortDescription("");

      PropertyDescriptor rv[] = {inputPropName};
      return rv;
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
 @NbBundle.Messages({
   "tsPeriodSelectorUI.typeDesc.name=Type",
   "tsPeriodSelectorUI.typeDesc.desc=Specify the way the time span is defined"
 })
 private EnhancedPropertyDescriptor typeDesc() {
   try {
     PropertyDescriptor desc = new PropertyDescriptor("type", this.getClass());
     EnhancedPropertyDescriptor edesc = new EnhancedPropertyDescriptor(desc, TYPE_ID);
     edesc.setRefreshMode(EnhancedPropertyDescriptor.Refresh.All);
     desc.setDisplayName(Bundle.tsPeriodSelectorUI_typeDesc_name());
     desc.setShortDescription(Bundle.tsPeriodSelectorUI_typeDesc_desc());
     edesc.setReadOnly(ro_);
     return edesc;
   } catch (IntrospectionException ex) {
     return null;
   }
 }
 @NbBundle.Messages({
   "tsPeriodSelectorUI.lastDesc.name=Last",
   "tsPeriodSelectorUI.lastDesc.desc=Number of periods considered at the end of the series"
 })
 private EnhancedPropertyDescriptor lastDesc() {
   PeriodSelectorType type = core_.getType();
   if (type != PeriodSelectorType.Excluding && type != PeriodSelectorType.Last) {
     return null;
   }
   try {
     PropertyDescriptor desc = new PropertyDescriptor("last", this.getClass());
     EnhancedPropertyDescriptor edesc = new EnhancedPropertyDescriptor(desc, TYPE_ID);
     desc.setDisplayName(Bundle.tsPeriodSelectorUI_lastDesc_name());
     desc.setShortDescription(Bundle.tsPeriodSelectorUI_lastDesc_desc());
     edesc.setRefreshMode(EnhancedPropertyDescriptor.Refresh.All);
     edesc.setReadOnly(ro_);
     return edesc;
   } catch (IntrospectionException ex) {
     return null;
   }
 }
 @NbBundle.Messages({
   "tsPeriodSelectorUI.endDesc.name=End",
   "tsPeriodSelectorUI.endDesc.desc=End of the time span. Only complete periods will be taken into account"
 })
 private EnhancedPropertyDescriptor endDesc() {
   PeriodSelectorType type = core_.getType();
   if (type != PeriodSelectorType.Between && type != PeriodSelectorType.To) {
     return null;
   }
   try {
     PropertyDescriptor desc = new PropertyDescriptor("end", this.getClass());
     EnhancedPropertyDescriptor edesc = new EnhancedPropertyDescriptor(desc, TYPE_ID);
     edesc.setRefreshMode(EnhancedPropertyDescriptor.Refresh.All);
     desc.setDisplayName(Bundle.tsPeriodSelectorUI_endDesc_name());
     desc.setShortDescription(Bundle.tsPeriodSelectorUI_endDesc_desc());
     edesc.setReadOnly(ro_);
     return edesc;
   } catch (IntrospectionException ex) {
     return null;
   }
 }
  /*
   * see java.beans.FeatureDescriptor#FeatureDescriptor(FeatureDescriptor)
   */
  public static void copyNonMethodProperties(PropertyDescriptor source, PropertyDescriptor target)
      throws IntrospectionException {

    target.setExpert(source.isExpert());
    target.setHidden(source.isHidden());
    target.setPreferred(source.isPreferred());
    target.setName(source.getName());
    target.setShortDescription(source.getShortDescription());
    target.setDisplayName(source.getDisplayName());

    // copy all attributes (emulating behavior of private FeatureDescriptor#addTable)
    Enumeration<String> keys = source.attributeNames();
    while (keys.hasMoreElements()) {
      String key = keys.nextElement();
      target.setValue(key, source.getValue(key));
    }

    // see java.beans.PropertyDescriptor#PropertyDescriptor(PropertyDescriptor)
    target.setPropertyEditorClass(source.getPropertyEditorClass());
    target.setBound(source.isBound());
    target.setConstrained(source.isConstrained());
  }
  // Static initializer.
  static {
    try {
      // Events.
      EventSetDescriptor event1 =
          new EventSetDescriptor(
              beanClass_, "propertyChange", PropertyChangeListener.class, "propertyChange");
      event1.setDisplayName(rbl_.getText("EVT_NAME_PROPERTY_CHANGE"));
      event1.setShortDescription(rbl_.getText("EVT_DESC_PROPERTY_CHANGE"));

      EventSetDescriptor event2 =
          new EventSetDescriptor(
              beanClass_, "actionCompleted", ActionCompletedListener.class, "actionCompleted");
      event2.setDisplayName(rbl_.getText("EVT_NAME_ACTION_COMPLETED"));
      event2.setShortDescription(rbl_.getText("EVT_DESC_ACTION_COMPLETED"));

      EventSetDescriptor event3 =
          new EventSetDescriptor(
              beanClass_, "propertyChange", VetoableChangeListener.class, "vetoableChange");
      event3.setDisplayName(rbl_.getText("EVT_NAME_PROPERTY_VETO"));
      event3.setShortDescription(rbl_.getText("EVT_DESC_PROPERTY_VETO"));

      events_ = new EventSetDescriptor[] {event1, event2, event3};

      // Properties.
      PropertyDescriptor classPath =
          new PropertyDescriptor("classPath", beanClass_, "getClassPath", "setClassPath");
      classPath.setBound(true);
      classPath.setConstrained(true);
      classPath.setDisplayName(rbl_.getText("PROP_NAME_JAC_CLASSPATH"));
      classPath.setShortDescription(rbl_.getText("PROP_DESC_JAC_CLASSPATH"));

      PropertyDescriptor classPathSecurityChkLvl =
          new PropertyDescriptor(
              "securityCheckLevel", beanClass_, "getSecurityCheckLevel", "setSecurityCheckLevel");
      classPathSecurityChkLvl.setBound(true);
      classPathSecurityChkLvl.setConstrained(true);
      classPathSecurityChkLvl.setDisplayName(rbl_.getText("PROP_NAME_JAC_SECCHKLVL"));
      classPathSecurityChkLvl.setShortDescription(rbl_.getText("PROP_DESC_JAC_SECCHKLVL"));

      PropertyDescriptor garbageCollectInitialSize =
          new PropertyDescriptor(
              "garbageCollectionInitialSize",
              beanClass_,
              "getGarbageCollectionInitialSize",
              "setGarbageCollectionInitialSize");
      garbageCollectInitialSize.setBound(true);
      garbageCollectInitialSize.setConstrained(true);
      garbageCollectInitialSize.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCINIT"));
      garbageCollectInitialSize.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCINIT"));

      PropertyDescriptor garbageCollectMaximumSize =
          new PropertyDescriptor(
              "garbageCollectionMaximumSize",
              beanClass_,
              "getGarbageCollectionMaximumSize",
              "setGarbageCollectionMaximumSize");
      garbageCollectMaximumSize.setBound(true);
      garbageCollectMaximumSize.setConstrained(true);
      garbageCollectMaximumSize.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCMAX"));
      garbageCollectMaximumSize.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCMAX"));

      PropertyDescriptor garbageCollectionFrequency =
          new PropertyDescriptor(
              "garbageCollectionFrequency",
              beanClass_,
              "getGarbageCollectionFrequency",
              "setGarbageCollectionFrequency");
      garbageCollectionFrequency.setBound(true);
      garbageCollectionFrequency.setConstrained(true);
      garbageCollectionFrequency.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCFREQ"));
      garbageCollectionFrequency.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCFREQ"));

      PropertyDescriptor garbageCollectionPriority =
          new PropertyDescriptor(
              "garbageCollectionPriority",
              beanClass_,
              "getGarbageCollectionPriority",
              "setGarbageCollectionPriority");
      garbageCollectionPriority.setBound(true);
      garbageCollectionPriority.setConstrained(true);
      garbageCollectionPriority.setDisplayName(rbl_.getText("PROP_NAME_JAC_GCPRIORITY"));
      garbageCollectionPriority.setShortDescription(rbl_.getText("PROP_DESC_JAC_GCPRIORITY"));

      PropertyDescriptor interpret =
          new PropertyDescriptor("interpret", beanClass_, "getInterpret", "setInterpret");
      interpret.setBound(true);
      interpret.setConstrained(true);
      interpret.setDisplayName(rbl_.getText("PROP_NAME_JAC_INTERPRET"));
      interpret.setShortDescription(rbl_.getText("PROP_DESC_JAC_INTERPRET"));

      PropertyDescriptor javaApplication =
          new PropertyDescriptor(
              "javaApplication", beanClass_, "getJavaApplication", "setJavaApplication");
      javaApplication.setBound(true);
      javaApplication.setConstrained(true);
      javaApplication.setDisplayName(rbl_.getText("PROP_NAME_JAC_JAVAAPP"));
      javaApplication.setShortDescription(rbl_.getText("PROP_DESC_JAC_JAVAAPP"));

      PropertyDescriptor optimization =
          new PropertyDescriptor("optimization", beanClass_, "getOptimization", "setOptimization");
      optimization.setBound(true);
      optimization.setConstrained(true);
      optimization.setDisplayName(rbl_.getText("PROP_NAME_JAC_OPTIMIZE"));
      optimization.setShortDescription(rbl_.getText("PROP_DESC_JAC_OPTIMIZE"));

      PropertyDescriptor option =
          new PropertyDescriptor("option", beanClass_, "getOptions", "setOptions");
      option.setBound(true);
      option.setConstrained(true);
      option.setDisplayName(rbl_.getText("PROP_NAME_JAC_OPTION"));
      option.setShortDescription(rbl_.getText("PROP_DESC_JAC_OPTION"));

      PropertyDescriptor parameters =
          new PropertyDescriptor("parameters", beanClass_, "getParameters", "setParameters");
      parameters.setBound(true);
      parameters.setConstrained(true);
      parameters.setDisplayName(rbl_.getText("PROP_NAME_JAC_PARAMETERS"));
      parameters.setShortDescription(rbl_.getText("PROP_DESC_JAC_PARAMETERS"));

      PropertyDescriptor portSearch =
          new PropertyDescriptor("findPort", beanClass_, "isFindPort", "setFindPort");
      portSearch.setBound(true);
      portSearch.setConstrained(true);
      portSearch.setDisplayName(rbl_.getText("PROP_NAME_JAC_PORTSEARCH"));
      portSearch.setShortDescription(rbl_.getText("PROP_DESC_JAC_PORTSEARCH"));

      properties_ =
          new PropertyDescriptor[] {
            classPath,
            classPathSecurityChkLvl,
            garbageCollectInitialSize,
            garbageCollectMaximumSize,
            garbageCollectionFrequency,
            garbageCollectionPriority,
            interpret,
            javaApplication,
            parameters,
            optimization,
            option,
            portSearch,
          };
    } catch (IntrospectionException e) {
      throw new Error(e.toString());
    }
  }
  static {
    try {
      EventSetDescriptor changed =
          new EventSetDescriptor(
              beanClass,
              "propertyChange",
              java.beans.PropertyChangeListener.class,
              "propertyChange");
      changed.setDisplayName(loader_.getText("EVT_NAME_PROPERTY_CHANGE"));
      changed.setShortDescription(loader_.getText("EVT_DESC_PROPERTY_CHANGE"));

      EventSetDescriptor veto =
          new EventSetDescriptor(
              beanClass,
              "propertyChange",
              java.beans.VetoableChangeListener.class,
              "vetoableChange");
      veto.setDisplayName(loader_.getText("EVT_NAME_PROPERTY_VETO"));
      veto.setShortDescription(loader_.getText("EVT_DESC_PROPERTY_VETO"));

      EventSetDescriptor[] events = {changed, veto};

      events_ = events;

      // ***** PROPERTIES
      PropertyDescriptor alignment =
          new PropertyDescriptor("alignment", beanClass, "getAlignment", "setAlignment");
      alignment.setBound(true);
      alignment.setConstrained(true);
      alignment.setDisplayName(loader_.getText("PROP_NAME_ALIGNMENT"));
      alignment.setShortDescription(loader_.getText("PROP_HTBL_DESC_ALIGNMENT"));

      PropertyDescriptor borderWidth =
          new PropertyDescriptor("borderWidth", beanClass, "getBorderWidth", "setBorderWidth");
      borderWidth.setBound(true);
      borderWidth.setConstrained(true);
      borderWidth.setDisplayName(loader_.getText("PROP_NAME_BORDERWIDTH"));
      borderWidth.setShortDescription(loader_.getText("PROP_DESC_BORDERWIDTH"));

      // PropertyDescriptor caption = new PropertyDescriptor("caption", beanClass,
      //                                "getCaption", "setCaption");
      Class[] parameterList = {HTMLTableCaption.class};
      PropertyDescriptor caption =
          new PropertyDescriptor(
              "caption",
              beanClass.getMethod("getCaption", (java.lang.Class[]) null),
              beanClass.getMethod("setCaption", parameterList)); // @pdc cast for jdk1.5

      caption.setBound(true);
      caption.setConstrained(true);
      caption.setDisplayName(loader_.getText("PROP_NAME_CAPTION"));
      caption.setShortDescription(loader_.getText("PROP_DESC_CAPTION"));

      PropertyDescriptor cellPadding =
          new PropertyDescriptor("cellPadding", beanClass, "getCellPadding", "setCellPadding");
      cellPadding.setBound(true);
      cellPadding.setConstrained(true);
      cellPadding.setDisplayName(loader_.getText("PROP_NAME_CELLPADDING"));
      cellPadding.setShortDescription(loader_.getText("PROP_DESC_CELLPADDING"));

      PropertyDescriptor cellSpacing =
          new PropertyDescriptor("cellSpacing", beanClass, "getCellSpacing", "setCellSpacing");
      cellSpacing.setBound(true);
      cellSpacing.setConstrained(true);
      cellSpacing.setDisplayName(loader_.getText("PROP_NAME_CELLSPACING"));
      cellSpacing.setShortDescription(loader_.getText("PROP_DESC_CELLSPACING"));

      PropertyDescriptor header =
          new PropertyDescriptor("header", beanClass, "getHeader", "setHeader");
      header.setBound(true);
      header.setConstrained(true);
      header.setDisplayName(loader_.getText("PROP_NAME_HEADER"));
      header.setShortDescription(loader_.getText("PROP_DESC_HEADER"));

      PropertyDescriptor useHeader =
          new PropertyDescriptor("headerInUse", beanClass, "isHeaderInUse", "setHeaderInUse");
      useHeader.setBound(true);
      useHeader.setConstrained(true);
      useHeader.setDisplayName(loader_.getText("PROP_NAME_HEADERINUSE"));
      useHeader.setShortDescription(loader_.getText("PROP_DESC_HEADERINUSE"));

      PropertyDescriptor width = new PropertyDescriptor("width", beanClass, "getWidth", "setWidth");
      width.setBound(true);
      width.setConstrained(true);
      width.setDisplayName(loader_.getText("PROP_NAME_WIDTH"));
      width.setShortDescription(loader_.getText("PROP_HTBL_DESC_WIDTH"));

      PropertyDescriptor widthInPercent =
          new PropertyDescriptor(
              "widthInPercent", beanClass, "isWidthInPercent", "setWidthInPercent");
      widthInPercent.setBound(true);
      widthInPercent.setConstrained(true);
      widthInPercent.setDisplayName(loader_.getText("PROP_NAME_WPERCENT"));
      widthInPercent.setShortDescription(loader_.getText("PROP_HTBL_DESC_WPERCENT"));

      PropertyDescriptor lang =
          new PropertyDescriptor("lang", beanClass, "getLanguage", "setLanguage"); // $B1A
      lang.setBound(true); // $B1A
      lang.setConstrained(true); // $B1A
      lang.setDisplayName(loader_.getText("PROP_NAME_LANGUAGE")); // $B1A
      lang.setShortDescription(loader_.getText("PROP_DESC_LANGUAGE")); // $B1A

      PropertyDescriptor dir =
          new PropertyDescriptor("dir", beanClass, "getDirection", "setDirection"); // $B1A
      dir.setBound(true); // $B1A
      dir.setConstrained(true); // $B1A
      dir.setDisplayName(loader_.getText("PROP_NAME_DIRECTION")); // $B1A
      dir.setShortDescription(loader_.getText("PROP_DESC_DIRECTION")); // $B1A

      PropertyDescriptor useFO =
          new PropertyDescriptor("useFO", beanClass, "isUseFO", "setUseFO"); // @C1A
      useFO.setBound(true); // @C1A
      useFO.setConstrained(false); // @C1A
      useFO.setDisplayName(loader_.getText("PROP_NAME_FORMATTING_OBJECT")); // @C1A
      useFO.setShortDescription(loader_.getText("PROP_DESC_FORMATTING_OBJECT")); // @C1A

      properties_ =
          new PropertyDescriptor[] {
            alignment,
            borderWidth,
            caption,
            cellPadding,
            cellSpacing,
            header,
            useHeader,
            width,
            widthInPercent,
            lang,
            dir,
            useFO
          }; // $B1C     //@C1A
    } catch (Exception e) {
      throw new Error(e.toString());
    }
  }
  public PropertyDescriptor[] getPropertyDescriptors() {
    try {
      PropertyDescriptor _toolTipText =
          new PropertyDescriptor("toolTipText", beanClass, "getToolTipText", "setToolTipText");
      _toolTipText.setDisplayName("toolTipText");
      _toolTipText.setShortDescription("toolTipText");
      PropertyDescriptor _fillColor =
          new PropertyDescriptor("fillColor", beanClass, "getFillColor", "setFillColor");
      _fillColor.setDisplayName("fillColor");
      _fillColor.setShortDescription("fillColor");
      _fillColor.setPropertyEditorClass(GeColorEditor.class);
      PropertyDescriptor _borderColor =
          new PropertyDescriptor("borderColor", beanClass, "getBorderColor", "setBorderColor");
      _borderColor.setDisplayName("borderColor");
      _borderColor.setShortDescription("borderColor");
      _borderColor.setPropertyEditorClass(GeColorEditor.class);
      PropertyDescriptor _colorTone =
          new PropertyDescriptor("colorTone", beanClass, "getColorTone", "setColorTone");
      _colorTone.setDisplayName("colorTone");
      _colorTone.setShortDescription("colorTone");
      _colorTone.setPropertyEditorClass(GeColorToneEditor.class);
      PropertyDescriptor _colorShift =
          new PropertyDescriptor("colorShift", beanClass, "getColorShift", "setColorShift");
      _colorShift.setDisplayName("colorShift");
      _colorShift.setShortDescription("colorShift");
      _colorShift.setPropertyEditorClass(GeColorShiftEditor.class);
      PropertyDescriptor _colorBrightness =
          new PropertyDescriptor(
              "colorBrightness", beanClass, "getColorBrightness", "setColorBrightness");
      _colorBrightness.setDisplayName("colorBrightness");
      _colorBrightness.setShortDescription("colorBrightness");
      _colorBrightness.setPropertyEditorClass(GeColorBrightnessEditor.class);
      PropertyDescriptor _colorIntensity =
          new PropertyDescriptor(
              "colorIntensity", beanClass, "getColorIntensity", "setColorIntensity");
      _colorIntensity.setDisplayName("colorIntensity");
      _colorIntensity.setShortDescription("colorIntensity");
      _colorIntensity.setPropertyEditorClass(GeColorIntensityEditor.class);
      PropertyDescriptor _rotate =
          new PropertyDescriptor("rotate", beanClass, "getRotate", "setRotate");
      _rotate.setDisplayName("rotate");
      _rotate.setShortDescription("rotate");
      PropertyDescriptor _clickAction =
          new PropertyDescriptor("clickAction", beanClass, "getClickAction", "setClickAction");
      _clickAction.setDisplayName("clickAction");
      _clickAction.setShortDescription("clickAction");
      _clickAction.setPropertyEditorClass(ClickActionEditor.class);
      PropertyDescriptor _command =
          new PropertyDescriptor("command", beanClass, "getCommand", "setCommand");
      _command.setDisplayName("command");
      _command.setShortDescription("command");
      PropertyDescriptor _lowTone =
          new PropertyDescriptor("lowTone", beanClass, "getLowTone", "setLowTone");
      _lowTone.setDisplayName("lowTone");
      _lowTone.setShortDescription("lowTone");
      _lowTone.setPropertyEditorClass(GeColorToneEditor.class);
      PropertyDescriptor _pwrAttribute =
          new PropertyDescriptor("pwrAttribute", beanClass, "getPwrAttribute", "setPwrAttribute");
      _pwrAttribute.setDisplayName("pwrAttribute");
      _pwrAttribute.setShortDescription("pwrAttribute");
      PropertyDescriptor _pwrAttrColor =
          new PropertyDescriptor("pwrAttrColor", beanClass, "getPwrAttrColor", "setPwrAttrColor");
      _pwrAttrColor.setDisplayName("pwrAttrColor");
      _pwrAttrColor.setShortDescription("pwrAttColor");
      PropertyDescriptor _pwrAttrText =
          new PropertyDescriptor("pwrAttrText", beanClass, "getPwrAttrText", "setPwrAttrText");
      _pwrAttrText.setDisplayName("pwrAttrText");
      _pwrAttrText.setShortDescription("pwrAttText");
      PropertyDescriptor _textLow =
          new PropertyDescriptor("textLow", beanClass, "getTextLow", "setTextLow");
      _textLow.setDisplayName("textLow");
      _textLow.setShortDescription("textLow");
      PropertyDescriptor _textHigh =
          new PropertyDescriptor("textHigh", beanClass, "getTextHigh", "setTextHigh");
      _textHigh.setDisplayName("textHigh");
      _textHigh.setShortDescription("textHigh");
      PropertyDescriptor _access =
          new PropertyDescriptor("access", beanClass, "getAccess", "setAccess");
      _access.setDisplayName("access");
      _access.setShortDescription("access");
      PropertyDescriptor _confirm =
          new PropertyDescriptor("confirm", beanClass, "getConfirm", "setConfirm");
      _confirm.setDisplayName("confirm");
      _confirm.setShortDescription("confirm");
      PropertyDescriptor _confirmText =
          new PropertyDescriptor("confirmText", beanClass, "getConfirmText", "setConfirmText");
      _confirmText.setDisplayName("confirmText");
      _confirmText.setShortDescription("confirmText");
      PropertyDescriptor _annot1 =
          new PropertyDescriptor("annot1", beanClass, "getAnnot1", "setAnnot1");
      _annot1.setDisplayName("annot1");
      _annot1.setShortDescription("annot1");
      PropertyDescriptor _annot1Font =
          new PropertyDescriptor("annot1Font", beanClass, "getAnnot1Font", "setAnnot1Font");
      _annot1Font.setDisplayName("annot1Font");
      _annot1Font.setShortDescription("annot1Font");
      PropertyDescriptor[] pds =
          new PropertyDescriptor[] {
            _toolTipText,
            _fillColor,
            _borderColor,
            _colorTone,
            _colorShift,
            _colorBrightness,
            _colorIntensity,
            _rotate,
            _clickAction,
            _command,
            _lowTone,
            _pwrAttribute,
            _pwrAttrColor,
            _pwrAttrText,
            _textLow,
            _textHigh,
            _access,
            _confirm,
            _confirmText,
            _annot1,
            _annot1Font
          };
      return pds;

    } catch (IntrospectionException ex) {
      ex.printStackTrace();
      return null;
    }
  }