org.bs.mdi
Class RootData

java.lang.Object
  extended byorg.bs.mdi.Data
      extended byorg.bs.mdi.RootData
All Implemented Interfaces:
ActionObservable, ActionObserver, ActionProcessor

public abstract class RootData
extends Data

Represents the information contained in a document.


Constructor Summary
RootData()
           
 
Method Summary
abstract  Printer getPrinter()
          Gets the Printer interface for this document.
 
Methods inherited from class org.bs.mdi.Data
actionPerformed, actionUndone, addChild, addObserver, applyAction, coalesceAction, countChildren, countObservers, getChild, getDocument, getParentData, isObserver, notifyObservers, removeChild, removeObserver, setDocument, undoAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootData

public RootData()
Method Detail

getPrinter

public abstract Printer getPrinter()
Gets the Printer interface for this document. If this method returns a working implementation of the Printer interface, printing functionality is enabled and the user may perform operations such as showing a print preview or starting a print job.

Returns:
the printer interface, or null if this document cannot be printed