priorityLabel.setEnabled(enabled);
prtSpinner.setEnabled(enabled);
if (firstUse) {
if (attrs.containsKey(JobPriority.class)) {
JobPriority value = (JobPriority) (attrs.get(JobPriority.class));
prtSpinner.setValue(new Integer(value.getValue()));
} else {
if (enabled) {
JobPriority defaul = (JobPriority) (
myService.getDefaultAttributeValue(JobPriority.class));
prtSpinner.setValue (defaul == null
? new Integer(1)
: new Integer(defaul.getValue()));
} else {
prtSpinner.setValue(new Integer(1));
}
}
}