|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.FurnitureCatalog
com.eteks.sweethome3d.io.DefaultFurnitureCatalog
public class DefaultFurnitureCatalog
Furniture default catalog read from resources localized in .properties
files.
Nested Class Summary | |
---|---|
static class |
DefaultFurnitureCatalog.PropertyKey
The keys of the properties values read in .properties files. |
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_FURNITURE_CATALOG_FAMILY
The name of .properties family files in plugin furniture catalog files. |
Constructor Summary | |
---|---|
DefaultFurnitureCatalog()
Creates a default furniture catalog read from resources in the package of this class. |
|
DefaultFurnitureCatalog(java.io.File furniturePluginFolder)
Creates a default furniture catalog read from resources and furniture plugin folder if furniturePluginFolder isn't null . |
|
DefaultFurnitureCatalog(java.net.URL[] pluginFurnitureCatalogUrls)
Creates a default furniture catalog read only from resources in the given URLs. |
|
DefaultFurnitureCatalog(java.net.URL[] pluginFurnitureCatalogUrls,
java.net.URL furnitureResourcesUrlBase)
Creates a default furniture catalog read only from resources in the given URLs or in the classpath if the security manager doesn't allow to create class loaders. |
|
DefaultFurnitureCatalog(UserPreferences preferences,
java.io.File furniturePluginFolder)
Creates a default furniture catalog read from resources and furniture plugin folder if furniturePluginFolder isn't null . |
|
DefaultFurnitureCatalog(UserPreferences preferences,
java.io.File[] furniturePluginFolders)
Creates a default furniture catalog read from resources and furniture plugin folders if furniturePluginFolders isn't null . |
Method Summary | |
---|---|
protected FurnitureCategory |
readFurnitureCategory(java.util.ResourceBundle resource,
int index)
Returns the furniture category of a piece at the given index of a
localized resource bundle. |
protected CatalogPieceOfFurniture |
readPieceOfFurniture(java.util.ResourceBundle resource,
int index,
java.net.URL furnitureCatalogUrl,
java.net.URL furnitureResourcesUrlBase)
Returns the piece of furniture at the given index of a
localized resource bundle. |
Methods inherited from class com.eteks.sweethome3d.model.FurnitureCatalog |
---|
add, addFurnitureListener, delete, getCategories, getCategoriesCount, getCategory, removeFurnitureListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_FURNITURE_CATALOG_FAMILY
.properties
family files in plugin furniture catalog files.
Constructor Detail |
---|
public DefaultFurnitureCatalog()
public DefaultFurnitureCatalog(java.io.File furniturePluginFolder)
furniturePluginFolder
isn't null
.
public DefaultFurnitureCatalog(UserPreferences preferences, java.io.File furniturePluginFolder)
furniturePluginFolder
isn't null
.
public DefaultFurnitureCatalog(UserPreferences preferences, java.io.File[] furniturePluginFolders)
furniturePluginFolders
isn't null
.
public DefaultFurnitureCatalog(java.net.URL[] pluginFurnitureCatalogUrls)
public DefaultFurnitureCatalog(java.net.URL[] pluginFurnitureCatalogUrls, java.net.URL furnitureResourcesUrlBase)
furnitureResourcesUrlBase
if it isn't null
.
Method Detail |
---|
protected CatalogPieceOfFurniture readPieceOfFurniture(java.util.ResourceBundle resource, int index, java.net.URL furnitureCatalogUrl, java.net.URL furnitureResourcesUrlBase)
index
of a
localized resource
bundle.
resource
- a resource bundleindex
- the index of the read piecefurnitureCatalogUrl
- the URL from which piece resources will be loaded
or null
if it's read from current classpath.furnitureResourcesUrlBase
- the URL used as a base to build the URL to piece resources
or null
if it's read from current classpath or furnitureCatalogUrl
null
if the piece at the given index doesn't exist.
java.util.MissingResourceException
- if mandatory keys are not defined.protected FurnitureCategory readFurnitureCategory(java.util.ResourceBundle resource, int index)
index
of a
localized resource
bundle.
java.util.MissingResourceException
- if mandatory keys are not defined.
|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |