com.tensegrity.gui.document.persistence
Class DocumentInformationCheck

java.lang.Object
  extended bycom.tensegrity.gui.document.persistence.DocumentInformationCheck
Direct Known Subclasses:
SwingDocumentInformationCheck, SwtDocumentInformationCheck

public abstract class DocumentInformationCheck
extends java.lang.Object

DocumentInformationCheck

Author:
BurkhardWick

Constructor Summary
protected DocumentInformationCheck()
          Constructor
 
Method Summary
 boolean checkForLostInformation(GraphDocument gDoc)
          Checks the graphdocument for information that will be lost if the document will be written using the current include options given through the document settings.
protected abstract  LayoutController getDefaultLayoutController()
          Returns the default layout controller
protected abstract  RuleRegistry getDefaultRuleRegistry()
          Returns the default rule registry
protected abstract  Preferences getPreferences()
          Returns the Preferences
protected abstract  boolean showDialog(AttributeSet lost)
          Shows a dialog to the user informing him of elements that will not be stored and will probably get lost with the current include settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentInformationCheck

protected DocumentInformationCheck()
Constructor

Method Detail

checkForLostInformation

public boolean checkForLostInformation(GraphDocument gDoc)
Checks the graphdocument for information that will be lost if the document will be written using the current include options given through the document settings.

Parameters:
gDoc - The graphdocument to check
Returns:
true, if it is ok to save the document and false, if the user wants to change the include options

showDialog

protected abstract boolean showDialog(AttributeSet lost)
Shows a dialog to the user informing him of elements that will not be stored and will probably get lost with the current include settings.

Parameters:
lost - An AttributeSet containing all lost information
Returns:
true if the user accepts the loss false if the operation should be canceled

getPreferences

protected abstract Preferences getPreferences()
Returns the Preferences

Returns:
the Preferences

getDefaultLayoutController

protected abstract LayoutController getDefaultLayoutController()
Returns the default layout controller

Returns:
the default layout controller

getDefaultRuleRegistry

protected abstract RuleRegistry getDefaultRuleRegistry()
Returns the default rule registry

Returns:
the default rule registry


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.