예제 #1
0
  /** Adds property descriptors to the panel */
  protected void addDescriptors(List<Property> propDescriptors) {
    if (propertyInputPanels == null) {
      propertyInputPanels = new Vector<PropertyInputPanel>(propDescriptors.size());
    }

    MutableAttributeSet properties = myConfigManager.getProperties();

    for (Property property : propDescriptors) {

      PropertyInputPanel inputPanel = property.getInputPanel();
      myPropertyPanel.add(inputPanel.getJPanel());

      /*
       * Try to get the configurer's current value and apply it to the
       * input panels
       */
      Object currentValue = properties.getAttribute(inputPanel.getName());
      if (currentValue != null) {
        inputPanel.setValue(currentValue);
      }

      propertyInputPanels.add(inputPanel);
    }

    checkPropreties();
    updateBounds();
  }
예제 #2
0
 private ConfigResult createConfigResult() {
   return new ConfigResult(myConfigManager.getProperties());
 }