Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel
Interface ProcessedFileViewer  view ProcessedFileViewer download ProcessedFileViewer.java

All Known Implementing Classes:
ChiselPane

public interface ProcessedFileViewer

interface for ProcessedFile viewers of any persuasion (Swing or AWT)


Method Summary
 void dump()
          dump the current document to the console
 void empty()
          remove the current document from the viewer and display an empty document
 void fileDone(ProcessedFile data)
          the file has been read
 void fileUpdated(ProcessedFile data)
          update the display if the object belongs to this viewer or is null
 java.awt.Component getComponent()
          get the component embodying this viewer
 ProcessedFile getProcessedFile()
          get the ProcessedFile being viewed
 void save()
          save the current document.
 void setProcessedFile(ProcessedFile data)
          set the ProcessedFile being viewed.
 

Method Detail

fileUpdated

public void fileUpdated(ProcessedFile data)
update the display if the object belongs to this viewer or is null


fileDone

public void fileDone(ProcessedFile data)
the file has been read


save

public void save()
save the current document. Prompts for filename if the document was not loaded from disk or previously saved.


empty

public void empty()
remove the current document from the viewer and display an empty document


getProcessedFile

public ProcessedFile getProcessedFile()
get the ProcessedFile being viewed


setProcessedFile

public void setProcessedFile(ProcessedFile data)
set the ProcessedFile being viewed. This should be done automatically by the done method; setProcessedFile should only be called when an object needs its ProcessedFile object before the done method is executed.


getComponent

public java.awt.Component getComponent()
get the component embodying this viewer


dump

public void dump()
dump the current document to the console