se.kmr.scam.editor.tree
Class DocumentNode

java.lang.Object
  extended byse.kmr.scam.editor.tree.DocumentNode
All Implemented Interfaces:
EventListener, PropertyChangeListener
Direct Known Subclasses:
ManifestNode

public class DocumentNode
extends Object
implements PropertyChangeListener


Constructor Summary
DocumentNode(Document doc, DocumentFactory fac)
           
 
Method Summary
 void contentSaved()
           
 void documentSaved()
           
 void forceRefresh()
          Forced refresh refreshes the document as well as updates this node and it's content.
 Document getContent()
           
 Document getDocument()
           
 DocumentFactory getDocumentFactory()
           
 String getName()
           
 void propertyChange(PropertyChangeEvent pce)
           
 void refresh()
          Refresh updates this node if needed, i.e. if somebody marked the node as refreshNeeded == true.
protected  void refreshImpl(boolean force)
           
 void removeFromModel()
           
protected  void retrieveContentDocument()
           
 void setContent(Document doc)
           
 void setContext(DocumentNode c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentNode

public DocumentNode(Document doc,
                    DocumentFactory fac)
Method Detail

setContext

public void setContext(DocumentNode c)

getDocument

public Document getDocument()

getDocumentFactory

public DocumentFactory getDocumentFactory()

getContent

public Document getContent()

setContent

public void setContent(Document doc)

getName

public String getName()

retrieveContentDocument

protected void retrieveContentDocument()

forceRefresh

public void forceRefresh()
Forced refresh refreshes the document as well as updates this node and it's content.


refresh

public void refresh()
Refresh updates this node if needed, i.e. if somebody marked the node as refreshNeeded == true. It doesn't call the documents refresh, i.e. it doesn't reload anything from disk or database.


refreshImpl

protected void refreshImpl(boolean force)

contentSaved

public void contentSaved()

documentSaved

public void documentSaved()

removeFromModel

public void removeFromModel()

propertyChange

public void propertyChange(PropertyChangeEvent pce)
Specified by:
propertyChange in interface PropertyChangeListener


Copyright © 2003 SCAM. All Rights Reserved.