1 package org.oddjob.monitor.view; 2 3 import java.awt.Dimension ; 4 import java.util.Observable ; 5 import java.util.Observer ; 6 7 import javax.swing.JTabbedPane ; 8 9 import org.oddjob.monitor.model.DetailModel; 10 11 16 17 public class DetailView extends JTabbedPane implements Observer { 18 private static final long serialVersionUID = 0; 19 20 21 private final StatePanel statePanel; 22 23 24 private final LogTextPanel consolePanel; 25 26 27 private final LogTextPanel logPanel; 28 29 30 private PropertyPanel propertyPanel; 31 32 36 37 public DetailView(DetailModel model) { 38 39 statePanel = new StatePanel(); 41 model.getStateModel().addObserver(statePanel); 42 43 this.consolePanel = new LogTextPanel(model.getConsoleModel()); 44 this.logPanel = new LogTextPanel(model.getLogModel()); 45 46 propertyPanel = new PropertyPanel( 47 model.getPropertyModel()); 48 49 setPreferredSize(new Dimension (400, 350)); 50 51 add("State", statePanel); 52 add("Console", consolePanel); 53 add("Log", logPanel); 54 add("Properties", propertyPanel); 55 } 56 57 60 public void update(Observable o, Object arg) { 61 } 62 } 63 | Popular Tags |