1 19 20 package org.netbeans.modules.websvc.api.webservices; 21 22 import java.util.List ; 23 import java.util.Collections ; 24 25 import javax.swing.JPanel ; 26 27 import org.openide.WizardValidationException; 28 29 33 public interface WsCompileEditorSupport { 34 35 37 public static final String PROP_FEATURES_CHANGED = "featuresChanged"; 38 public static final String PROP_DEBUG_CHANGED = "debugChanged"; 39 public static final String PROP_OPTIMIZE_CHANGED = "optimizeChanged"; 40 public static final String PROP_VERBOSE_CHANGED = "verboseChanged"; 41 42 public WsCompileEditorSupport.Panel getWsCompileSupport(); 43 44 public interface Panel { 45 46 48 public JPanel getComponent(); 49 50 52 public void initValues(List settings); 53 54 56 public void validatePanel() throws WizardValidationException; 57 } 58 59 public final class ServiceSettings { 60 private String name; 61 private StubDescriptor stubType; 62 private List availableFeatures; 63 private List importantFeatures; 64 private String currentFeatures; 65 private String newFeatures; 66 67 public ServiceSettings(String sn, StubDescriptor st, String c, List a, List i) { 68 name = sn; 69 stubType = st; 70 currentFeatures = newFeatures = c; 71 availableFeatures = Collections.unmodifiableList(a); 72 importantFeatures = Collections.unmodifiableList(i); 73 } 74 75 public String getServiceName() { 76 return name; 77 } 78 79 public StubDescriptor getStubDescriptor() { 80 return stubType; 81 } 82 83 public String getCurrentFeatures() { 84 return currentFeatures; 85 } 86 87 public String getNewFeatures() { 88 return newFeatures; 89 } 90 91 public List getAvailableFeatures() { 92 return availableFeatures; 93 } 94 95 public List getImportantFeatures() { 96 return importantFeatures; 97 } 98 99 public String toString() { 100 return getServiceName(); 101 } 102 103 public void setNewFeatures(String nf) { 104 newFeatures = nf; 105 } 106 } 107 108 public final class FeatureDescriptor { 109 110 private String serviceName; 111 private String features; 112 113 public FeatureDescriptor(String serviceName, String features) { 114 this.serviceName = serviceName; 115 this.features = features; 116 } 117 118 public String getServiceName() { 119 return serviceName; 120 } 121 122 public String getFeatures() { 123 return features; 124 } 125 } 126 } 127 | Popular Tags |