Beispiel #1
0
 /**
  * Gets the single instance of LicensePopup.
  *
  * @return single instance of LicensePopup
  */
 public static synchronized LicensePopup getInstance() {
   if (instance == null) {
     instance = new LicensePopup();
   }
   id = null;
   notesField.setValue(Model.BLANK);
   fromtodateField.setTovalue(null);
   return instance;
 }
Beispiel #2
0
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#setValue(java.lang.Object)
  */
 public void setValue(License license) {
   Log.debug("setValue " + license);
   if (license != null) {
     setResetting(true);
     onStateChange(license.getState());
     id = license.getId();
     downstreamidField.setValue(license.getDownstreamid());
     productField.setValue(license.getProductid());
     typeField.setValue(license.getType());
     waitField.setValue(license.getWait());
     fromtodateField.setValue(license.getFromdate());
     fromtodateField.setTovalue(license.getTodate());
     subscriptionField.setValue(license.getSubscription());
     transactionField.setValue(license.getTransaction());
     upstreamField.setValue(license.getUpstream());
     downstreamField.setValue(license.getDownstream());
     notesField.setValue(license.getNotes());
     center();
     setResetting(false);
   }
 }