Package com.dubture.composer.ui.converter

Examples of com.dubture.composer.ui.converter.License2StringConverter


        decoration.setDescriptionText(indicator.getDescription() + "(Ctrl+Space)");
        decoration.setShowOnlyOnFocus(true);
   
    new AutoCompleteField(licenseEntry.getText(), new LicenseContentAdapter(), ComposerConstants.LICENSES);
   
    final License2StringConverter converter = new License2StringConverter();
    licenseEntry.setValue(converter.convert(composerPackage.getLicense()), true);
   
    licenseEntry.addFormEntryListener(new FormEntryAdapter() {
      String2LicenseConverter converter;
      public void focusGained(FormEntry entry) {
        converter = new String2LicenseConverter(composerPackage);
      }
     
      public void focusLost(FormEntry entry) {
        converter.convert(entry.getValue());     
      }
    });
    composerPackage.addPropertyChangeListener(new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent e) {
        if (e.getPropertyName().startsWith("license")) {
          licenseEntry.setValue(converter.convert(composerPackage.getLicense()), true);
        }
      }
    });
  }
View Full Code Here

TOP

Related Classes of com.dubture.composer.ui.converter.License2StringConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.