1 19 20 package org.netbeans.modules.websvc.api.client; 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 WsCompileClientEditorSupport { 34 35 37 public static final String PROP_FEATURES_CHANGED = "featuresChanged"; public static final String PROP_OPTIONS_CHANGED = "optionsChanged"; 40 public WsCompileClientEditorSupport.Panel getWsCompileSupport(); 41 42 public interface Panel { 43 44 46 public JPanel getComponent(); 47 48 50 public void initValues(List settings); 51 52 54 public void validatePanel() throws WizardValidationException; 55 } 56 57 public final class ServiceSettings { 58 private String name; 59 private ClientStubDescriptor stubType; 60 private List availableFeatures; 61 private List importantFeatures; 62 private String currentFeatures; 63 private String newFeatures; 64 private boolean[] options; 65 66 public ServiceSettings(String sn, ClientStubDescriptor st, boolean[] options, String c, List a, List i) { 67 name = sn; 68 stubType = st; 69 this.options=options; 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 ClientStubDescriptor getClientStubDescriptor() { 80 return stubType; 81 } 82 83 public String getCurrentFeatures() { 84 return currentFeatures; 85 } 86 87 public boolean[] getOptions() { 88 return options; 89 } 90 91 public void setOptions(boolean[] options) { 92 this.options=options; 93 } 94 95 public String getNewFeatures() { 96 return newFeatures; 97 } 98 99 public List getAvailableFeatures() { 100 return availableFeatures; 101 } 102 103 public List getImportantFeatures() { 104 return importantFeatures; 105 } 106 107 public String toString() { 108 return getServiceName(); 109 } 110 111 public void setNewFeatures(String nf) { 112 newFeatures = nf; 113 } 114 } 115 116 public final class FeatureDescriptor { 117 118 private String serviceName; 119 private String features; 120 121 public FeatureDescriptor(String serviceName, String features) { 122 this.serviceName = serviceName; 123 this.features = features; 124 } 125 126 public String getServiceName() { 127 return serviceName; 128 } 129 130 public String getFeatures() { 131 return features; 132 } 133 } 134 135 public final class OptionDescriptor { 136 private String serviceName; 137 private boolean[] options; 138 139 public OptionDescriptor(String serviceName, boolean[] options) { 140 this.serviceName = serviceName; 141 this.options = options; 142 } 143 144 public String getServiceName() { 145 return serviceName; 146 } 147 148 public boolean[] getOptions() { 149 return options; 150 } 151 } 152 } 153 | Popular Tags |