00001 00058 package com.arcle.rmt.j2se.framework; 00059 00060 import java.util.Observable; 00061 00067 public class Document extends Observable { 00068 00069 //----------------------------------------------------------------------- 00070 public boolean canClose() { 00071 return true; 00072 } 00073 00074 public boolean close() { 00075 return true; 00076 } 00077 00078 public boolean commit() { 00079 return true; 00080 } 00081 00082 public boolean revert() { 00083 return true; 00084 } 00085 00086 //----------------------------------------------------------------------- 00087 // Accessor Methods 00088 00093 public String getTitle() { 00094 return _title; 00095 } 00096 00101 public void setTitle(String t) { 00102 _title = t; 00103 } 00104 00109 public Document getParentDoc() { 00110 return _parent; 00111 } 00112 00113 00118 protected void setParentDoc(Document p) { 00119 _parent = p; 00120 } 00121 00122 00123 //----------------------------------------------------------------------- 00124 // Member Variables 00125 00129 private String _title = ""; 00130 00134 private Document _parent = null; 00135 }