ca.sqlpower.architect
Class PrintUserSettings

java.lang.Object
  extended by ca.sqlpower.architect.PrintUserSettings

public class PrintUserSettings
extends java.lang.Object

The DDLUserSettings class stores project-independent DDL settings.

See Also:
CoreUserSettings, ETLUserSettings, DDLUserSettings, ArchitectSwingUserSettings

Field Summary
static java.lang.String DEFAULT_PRINTER_NAME
           
protected  java.util.Properties props
          A copy of the property list we were constructed with (empty if created from the public no-args constructor).
 
Constructor Summary
PrintUserSettings()
          Creates a user settings instance initialised to the default values.
 
Method Summary
static PrintUserSettings createFromPropList(java.util.Properties props)
           
 java.lang.String getDefaultPrinterName()
           
 void putProperty(java.lang.String name, java.lang.String value)
          This method is only intended for the UserSettings class to deserialize an instance of ETLUserSettings without having to know how to set the properties using their individual setXXX methods.
 void setDefaultPrinterName(java.lang.String v)
           
 java.util.Properties toPropList()
          Creates a Properties list and stores all settings to it in a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PRINTER_NAME

public static final java.lang.String DEFAULT_PRINTER_NAME
See Also:
Constant Field Values

props

protected java.util.Properties props
A copy of the property list we were constructed with (empty if created from the public no-args constructor).

It is necessary to retain the initial list of properties this instance was constructed with because a newer version of the architect may have written additional properties which we don't want to drop when we save back to disk.

Constructor Detail

PrintUserSettings

public PrintUserSettings()
Creates a user settings instance initialised to the default values.

Method Detail

createFromPropList

public static PrintUserSettings createFromPropList(java.util.Properties props)

toPropList

public java.util.Properties toPropList()
Creates a Properties list and stores all settings to it in a string representation. This method is only intended for the UserSettings class to serialize an instance of DDLUserSettings without having to know all the properties and how to convert them. For normal getting/setting of properties, use the getXXX/setXXX methods.


putProperty

public void putProperty(java.lang.String name,
                        java.lang.String value)
This method is only intended for the UserSettings class to deserialize an instance of ETLUserSettings without having to know how to set the properties using their individual setXXX methods.


getDefaultPrinterName

public java.lang.String getDefaultPrinterName()

setDefaultPrinterName

public void setDefaultPrinterName(java.lang.String v)


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca