1 19 20 package org.netbeans.progress.module; 21 22 import javax.swing.JComponent ; 23 import javax.swing.JLabel ; 24 import javax.swing.JPanel ; 25 import org.netbeans.progress.spi.ExtractedProgressUIWorker; 26 import org.netbeans.progress.spi.ProgressEvent; 27 import org.netbeans.progress.spi.ProgressUIWorkerProvider; 28 import org.netbeans.progress.spi.ProgressUIWorkerWithModel; 29 import org.netbeans.progress.spi.TaskModel; 30 31 37 public class TrivialProgressUIWorkerProvider implements ProgressUIWorkerProvider, ProgressUIWorkerWithModel, ExtractedProgressUIWorker { 38 39 public TrivialProgressUIWorkerProvider() {} 40 41 public ProgressUIWorkerWithModel getDefaultWorker() { 42 return this; 43 } 44 45 public ExtractedProgressUIWorker getExtractedComponentWorker() { 46 return this; 47 } 48 49 public void setModel(TaskModel model) {} 50 51 public void showPopup() {} 52 53 public void processProgressEvent(ProgressEvent event) {} 54 55 public void processSelectedProgressEvent(ProgressEvent event) {} 56 57 public JComponent getProgressComponent() { 58 return new JPanel (); 59 } 60 61 public JLabel getMainLabelComponent() { 62 return new JLabel (); 63 } 64 65 public JLabel getDetailLabelComponent() { 66 return new JLabel (); 67 } 68 69 } 70 | Popular Tags |