PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/branches/jsdoc_tk_gui/src/org/jsdoctoolkit/view/AbstractView.java

http://jsdoc-toolkit.googlecode.com/
Java | 49 lines | 27 code | 13 blank | 9 comment | 0 complexity | a10faaff2bb2b88c1ccf6449f0ef9fb8 MD5 | raw file
 1package org.jsdoctoolkit.view;
 2
 3import java.awt.LayoutManager;
 4
 5import javax.swing.JPanel;
 6
 7import org.jsdoctoolkit.model.AbstractModel;
 8
 9public abstract class AbstractView extends JPanel {
10	
11	private AbstractModel model = null;
12
13    public AbstractView(LayoutManager layout, boolean isDoubleBuffered) {
14        super(layout, isDoubleBuffered);
15        // TODO Auto-generated constructor stub
16    }
17
18    public AbstractView(LayoutManager layout) {
19        super(layout);
20        // TODO Auto-generated constructor stub
21    }
22
23    public AbstractView(boolean isDoubleBuffered) {
24        super(isDoubleBuffered);
25        // TODO Auto-generated constructor stub
26    }
27
28    public AbstractView(AbstractModel model) {
29        super();
30        setModel(model);
31    }
32
33    public abstract void refresh();
34
35	/**
36	 * @return the model
37	 */
38	public AbstractModel getModel() {
39		return model;
40	}
41
42	/**
43	 * @param model the model to set
44	 */
45	public void setModel(AbstractModel model) {
46		this.model = model;
47	}
48
49}