|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.UserPreferences
com.eteks.sweethome3d.applet.AppletUserPreferences
public class AppletUserPreferences
Applet user preferences.
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL[] pluginTexturesCatalogURLs)
public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL[] pluginTexturesCatalogURLs, URL writePreferencesURL, URL readPreferencesURL)
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.
public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL[] pluginTexturesCatalogURLs, URL writePreferencesURL, URL readPreferencesURL, String userLanguage)
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.
public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL furnitureResourcesUrlBase, URL[] pluginTexturesCatalogURLs, URL texturesResourcesUrlBase, URL writePreferencesURL, URL readPreferencesURL, String userLanguage)
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.
public AppletUserPreferences(URL[] pluginFurnitureCatalogURLs, URL furnitureResourcesUrlBase, URL[] pluginTexturesCatalogURLs, URL texturesResourcesUrlBase, URL writePreferencesURL, URL readPreferencesURL, Executor updater, String userLanguage)
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 |
---|
public void write() throws RecorderException
writePreferencesURL
given at the creation a XML content describing preferences in a parameter named preferences.
write
in class UserPreferences
RecorderException
- if user preferences couldn'y be saved.public void setActionTipIgnored(String actionKey)
setActionTipIgnored
in class UserPreferences
public boolean isActionTipIgnored(String actionKey)
isActionTipIgnored
in class UserPreferences
public void resetIgnoredActionTips()
resetIgnoredActionTips
in class UserPreferences
public void addLanguageLibrary(String location) throws RecorderException
addLanguageLibrary
in class UserPreferences
location
- the location where the library can be found.
RecorderException
public boolean languageLibraryExists(String location) throws RecorderException
languageLibraryExists
in class UserPreferences
location
- the name of the resource to check
RecorderException
public boolean furnitureLibraryExists(String location) throws RecorderException
true
if the furniture library at the given location
exists.
furnitureLibraryExists
in class UserPreferences
location
- the name of the resource to check
RecorderException
public void addFurnitureLibrary(String location) throws RecorderException
addFurnitureLibrary
in class UserPreferences
location
- the location where the library can be found.
RecorderException
public boolean texturesLibraryExists(String location) throws RecorderException
true
if the textures library at the given location
exists.
texturesLibraryExists
in class UserPreferences
location
- the name of the resource to check
RecorderException
public void addTexturesLibrary(String location) throws RecorderException
addTexturesLibrary
in class UserPreferences
location
- the location where the library can be found.
RecorderException
public List<Library> getLibraries()
getLibraries
in class UserPreferences
|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |