1 4 package org.oddjob.monitor.model; 5 6 import java.util.Observable ; 7 8 9 16 abstract public class JobOption extends Observable { 17 18 24 abstract public String getName(); 25 26 32 public final void optionSelect(Object component, ExplorerContext explorerContext) { 33 if (component == null) { 34 deSelect(); 35 } else { 36 select(component, explorerContext); 37 } 38 setChanged(); 39 notifyObservers(); 40 } 41 42 50 abstract protected void select(Object component, ExplorerContext eContext); 51 52 56 abstract protected void deSelect(); 57 58 63 abstract public boolean enabled(); 64 65 70 abstract public void process(JobOptionProcessor processor); 71 } 72 | Popular Tags |