Sweet Home 3D 4.0

com.eteks.sweethome3d.applet
Class AppletUserPreferences

java.lang.Object
  extended by com.eteks.sweethome3d.model.UserPreferences
      extended by com.eteks.sweethome3d.applet.AppletUserPreferences

public class AppletUserPreferences
extends UserPreferences

Applet user preferences.

Author:
Emmanuel Puybaret

Nested Class Summary
 
Nested classes/interfaces inherited from class com.eteks.sweethome3d.model.UserPreferences
UserPreferences.Property
 
Field Summary
 
Fields inherited from class com.eteks.sweethome3d.model.UserPreferences
FURNITURE_LIBRARY_TYPE, LANGUAGE_LIBRARY_TYPE, TEXTURES_LIBRARY_TYPE
 
Constructor Summary
AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL[] pluginTexturesCatalogURLs)
          Creates default user preferences read from resource files and catalogs urls given in parameter.
AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL[] pluginTexturesCatalogURLs, URL writePreferencesURL, URL readPreferencesURL)
          Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty.
AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL[] pluginTexturesCatalogURLs, URL writePreferencesURL, URL readPreferencesURL, String userLanguage)
          Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty.
AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL furnitureResourcesUrlBase, URL[] pluginTexturesCatalogURLs, URL texturesResourcesUrlBase, URL writePreferencesURL, URL readPreferencesURL, Executor updater, String userLanguage)
          Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty.
AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL furnitureResourcesUrlBase, URL[] pluginTexturesCatalogURLs, URL texturesResourcesUrlBase, URL writePreferencesURL, URL readPreferencesURL, String userLanguage)
          Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty.
 
Method Summary
 void addFurnitureLibrary(String location)
          Throws an exception because applet user preferences can't manage additional furniture libraries.
 void addLanguageLibrary(String location)
          Throws an exception because applet user preferences can't manage language libraries.
 void addTexturesLibrary(String location)
          Throws an exception because applet user preferences can't manage additional textures libraries.
 boolean furnitureLibraryExists(String location)
          Returns true if the furniture library at the given location exists.
 List<Library> getLibraries()
          Throws an exception because applet user preferences don't manage additional libraries.
 boolean isActionTipIgnored(String actionKey)
          Returns whether an action tip should be ignored or not.
 boolean languageLibraryExists(String location)
          Throws an exception because applet user preferences can't manage additional language libraries.
 void resetIgnoredActionTips()
          Resets the display flag of action tips.
 void setActionTipIgnored(String actionKey)
          Sets which action tip should be ignored.
 boolean texturesLibraryExists(String location)
          Returns true if the textures library at the given location exists.
 void write()
          Writes user preferences.
 
Methods inherited from class com.eteks.sweethome3d.model.UserPreferences
addAutoCompletionString, addPropertyChangeListener, getAutoCompletedProperties, getAutoCompletionStrings, getAutoSaveDelayForRecovery, getCurrency, getDefaultSupportedLanguages, getDefaultTextStyle, getFurnitureCatalog, getLanguage, getLengthUnit, getLocalizedString, getLocalizedString, getNewFloorThickness, getNewWallHeight, getNewWallPattern, getNewWallThickness, getPatternsCatalog, getRecentColors, getRecentHomes, getRecentHomesMaxCount, getResourceClassLoaders, getSupportedLanguages, getTexturesCatalog, getUpdatesMinimumDate, getWallPattern, isAerialViewCenteredOnSelectionEnabled, isCheckUpdatesEnabled, isFurnitureCatalogViewedInTree, isFurnitureViewedFromTop, isGridVisible, isLanguageEditable, isMagnetismEnabled, isNavigationPanelVisible, isRoomFloorColoredOrTextured, isRulersVisible, removePropertyChangeListener, setAerialViewCenteredOnSelectionEnabled, setAutoCompletionStrings, setAutoSaveDelayForRecovery, setCheckUpdatesEnabled, setCurrency, setFloorColoredOrTextured, setFurnitureCatalog, setFurnitureCatalogViewedInTree, setFurnitureViewedFromTop, setGridVisible, setLanguage, setMagnetismEnabled, setNavigationPanelVisible, setNewFloorThickness, setNewWallHeight, setNewWallPattern, setNewWallThickness, setPatternsCatalog, setRecentColors, setRecentHomes, setRulersVisible, setSupportedLanguages, setTexturesCatalog, setUnit, setUpdatesMinimumDate, setWallPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletUserPreferences

public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs,
                             URL[] pluginTexturesCatalogURLs)
Creates default user preferences read from resource files and catalogs urls given in parameter.


AppletUserPreferences

public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs,
                             URL[] pluginTexturesCatalogURLs,
                             URL writePreferencesURL,
                             URL readPreferencesURL)
Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty. Preferences modifications will be notified to writePreferencesURL with an XML content describing preferences in a parameter named preferences, if URL isn't null or empty. The DTD of XML content is specified at http://java.sun.com/dtd/properties.dtd. Preferences written with this class don't include imported furniture and textures.


AppletUserPreferences

public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs,
                             URL[] pluginTexturesCatalogURLs,
                             URL writePreferencesURL,
                             URL readPreferencesURL,
                             String userLanguage)
Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty. Preferences modifications will be notified to writePreferencesURL with an XML content describing preferences in a parameter named preferences, if URL isn't null or empty. The DTD of XML content is specified at http://java.sun.com/dtd/properties.dtd. Preferences written with this class don't include imported furniture and textures.


AppletUserPreferences

public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs,
                             URL furnitureResourcesUrlBase,
                             URL[] pluginTexturesCatalogURLs,
                             URL texturesResourcesUrlBase,
                             URL writePreferencesURL,
                             URL readPreferencesURL,
                             String userLanguage)
Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty. Preferences modifications will be notified to writePreferencesURL with an XML content describing preferences in a parameter named preferences, if URL isn't null or empty. The DTD of XML content is specified at http://java.sun.com/dtd/properties.dtd. Preferences written with this class don't include imported furniture and textures.


AppletUserPreferences

public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs,
                             URL furnitureResourcesUrlBase,
                             URL[] pluginTexturesCatalogURLs,
                             URL texturesResourcesUrlBase,
                             URL writePreferencesURL,
                             URL readPreferencesURL,
                             Executor updater,
                             String userLanguage)
Creates default user preferences read from resource files and catalogs urls given in parameter, then reads saved user preferences from the XML content returned by readPreferencesURL, if URL isn't null or empty. Preferences modifications will be notified to writePreferencesURL with an XML content describing preferences in a parameter named preferences, if URL isn't null or empty. The DTD of XML content is specified at http://java.sun.com/dtd/properties.dtd. Preferences written with this class don't include imported furniture and textures.

Method Detail

write

public void write()
           throws RecorderException
Writes user preferences. This method sends to the writePreferencesURL given at the creation a XML content describing preferences in a parameter named preferences.

Specified by:
write in class UserPreferences
Throws:
RecorderException - if user preferences couldn'y be saved.

setActionTipIgnored

public void setActionTipIgnored(String actionKey)
Sets which action tip should be ignored.

Overrides:
setActionTipIgnored in class UserPreferences

isActionTipIgnored

public boolean isActionTipIgnored(String actionKey)
Returns whether an action tip should be ignored or not.

Overrides:
isActionTipIgnored in class UserPreferences

resetIgnoredActionTips

public void resetIgnoredActionTips()
Resets the display flag of action tips.

Overrides:
resetIgnoredActionTips in class UserPreferences

addLanguageLibrary

public void addLanguageLibrary(String location)
                        throws RecorderException
Throws an exception because applet user preferences can't manage language libraries.

Specified by:
addLanguageLibrary in class UserPreferences
Parameters:
location - the location where the library can be found.
Throws:
RecorderException

languageLibraryExists

public boolean languageLibraryExists(String location)
                              throws RecorderException
Throws an exception because applet user preferences can't manage additional language libraries.

Specified by:
languageLibraryExists in class UserPreferences
Parameters:
location - the name of the resource to check
Throws:
RecorderException

furnitureLibraryExists

public boolean furnitureLibraryExists(String location)
                               throws RecorderException
Returns true if the furniture library at the given location exists.

Specified by:
furnitureLibraryExists in class UserPreferences
Parameters:
location - the name of the resource to check
Throws:
RecorderException

addFurnitureLibrary

public void addFurnitureLibrary(String location)
                         throws RecorderException
Throws an exception because applet user preferences can't manage additional furniture libraries.

Specified by:
addFurnitureLibrary in class UserPreferences
Parameters:
location - the location where the library can be found.
Throws:
RecorderException

texturesLibraryExists

public boolean texturesLibraryExists(String location)
                              throws RecorderException
Returns true if the textures library at the given location exists.

Specified by:
texturesLibraryExists in class UserPreferences
Parameters:
location - the name of the resource to check
Throws:
RecorderException

addTexturesLibrary

public void addTexturesLibrary(String location)
                        throws RecorderException
Throws an exception because applet user preferences can't manage additional textures libraries.

Specified by:
addTexturesLibrary in class UserPreferences
Parameters:
location - the location where the library can be found.
Throws:
RecorderException

getLibraries

public List<Library> getLibraries()
Throws an exception because applet user preferences don't manage additional libraries.

Specified by:
getLibraries in class UserPreferences

Sweet Home 3D 4.0

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License