/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

  1. package org.jsdoctoolkit.view;
  2. import java.awt.LayoutManager;
  3. import javax.swing.JPanel;
  4. import org.jsdoctoolkit.model.AbstractModel;
  5. public abstract class AbstractView extends JPanel {
  6. private AbstractModel model = null;
  7. public AbstractView(LayoutManager layout, boolean isDoubleBuffered) {
  8. super(layout, isDoubleBuffered);
  9. // TODO Auto-generated constructor stub
  10. }
  11. public AbstractView(LayoutManager layout) {
  12. super(layout);
  13. // TODO Auto-generated constructor stub
  14. }
  15. public AbstractView(boolean isDoubleBuffered) {
  16. super(isDoubleBuffered);
  17. // TODO Auto-generated constructor stub
  18. }
  19. public AbstractView(AbstractModel model) {
  20. super();
  21. setModel(model);
  22. }
  23. public abstract void refresh();
  24. /**
  25. * @return the model
  26. */
  27. public AbstractModel getModel() {
  28. return model;
  29. }
  30. /**
  31. * @param model the model to set
  32. */
  33. public void setModel(AbstractModel model) {
  34. this.model = model;
  35. }
  36. }