com.tensegrity.gui.swing.document.persistence
Class SwingDocumentInformationCheck

java.lang.Object
  extended bycom.tensegrity.gui.document.persistence.DocumentInformationCheck
      extended bycom.tensegrity.gui.swing.document.persistence.SwingDocumentInformationCheck

public class SwingDocumentInformationCheck
extends DocumentInformationCheck

SwingDocumentInformationCheck

Author:
BurkhardWick

Constructor Summary
SwingDocumentInformationCheck(Preferences prefs, UIManager uiManager, RuleRegistry rr, LayoutController lc, java.awt.Frame dlgParent)
          Constructor
 
Method Summary
protected  LayoutController getDefaultLayoutController()
          Returns the default layout controller
protected  RuleRegistry getDefaultRuleRegistry()
          Returns the default rule registry
protected  Preferences getPreferences()
          Returns the Preferences
protected  boolean showDialog(AttributeSet setLost)
          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 com.tensegrity.gui.document.persistence.DocumentInformationCheck
checkForLostInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingDocumentInformationCheck

public SwingDocumentInformationCheck(Preferences prefs,
                                     UIManager uiManager,
                                     RuleRegistry rr,
                                     LayoutController lc,
                                     java.awt.Frame dlgParent)
Constructor

Parameters:
prefs - The preferences of the application
uiManager - The UIManager of the application
rr - The default rule registry
lc - The default layout controller
dlgParent - The parent dialog or null if there is none
Method Detail

showDialog

protected boolean showDialog(AttributeSet setLost)
Description copied from class: DocumentInformationCheck
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.

Specified by:
showDialog in class DocumentInformationCheck
Parameters:
setLost - An AttributeSet containing all lost information
Returns:
true if the user accepts the loss false if the operation should be canceled

getPreferences

protected Preferences getPreferences()
Description copied from class: DocumentInformationCheck
Returns the Preferences

Specified by:
getPreferences in class DocumentInformationCheck
Returns:
the Preferences

getDefaultLayoutController

protected LayoutController getDefaultLayoutController()
Description copied from class: DocumentInformationCheck
Returns the default layout controller

Specified by:
getDefaultLayoutController in class DocumentInformationCheck
Returns:
the default layout controller

getDefaultRuleRegistry

protected RuleRegistry getDefaultRuleRegistry()
Description copied from class: DocumentInformationCheck
Returns the default rule registry

Specified by:
getDefaultRuleRegistry in class DocumentInformationCheck
Returns:
the default rule registry


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