Exemple #1
0
 /** Creates new form AttributeProp */
 public AttributeProp(AttributeDraft atrd, ImporterUI importerUI) {
   this.attr = atrd;
   this.importerUI = importerUI;
   initComponents();
   setType(atrd.getJavaType());
   setRole(atrd.getRole().toString());
   setAttrName(atrd.getName());
 }
Exemple #2
0
 private void cbRoleItemStateChanged(
     java.awt.event.ItemEvent evt) { // GEN-FIRST:event_cbRoleItemStateChanged
   if (evt.getStateChange() == ItemEvent.SELECTED) {
     String strRole = (String) cbRole.getSelectedItem();
     AttributeRole role = BasicAttrRole.valueOf(strRole.toUpperCase());
     if (attr.getRole() != role) {
       attr.setRole(role);
       LOG.info("attr {} role changed to {}", attr.getName(), role.toString());
       importerUI.fireImporterChanged();
     }
   }
 } // GEN-LAST:event_cbRoleItemStateChanged