|
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.FurnitureCatalog
public class FurnitureCatalog
Furniture catalog.
Constructor Summary | |
---|---|
FurnitureCatalog()
|
Method Summary | |
---|---|
void |
add(FurnitureCategory category,
CatalogPieceOfFurniture piece)
Adds piece of a given category to this catalog. |
void |
addFurnitureListener(CollectionListener<CatalogPieceOfFurniture> listener)
Adds the furniture listener in parameter to this catalog. |
void |
delete(CatalogPieceOfFurniture piece)
Deletes the piece from this catalog. |
List<FurnitureCategory> |
getCategories()
Returns the categories list sorted by name. |
int |
getCategoriesCount()
Returns the count of categories in this catalog. |
FurnitureCategory |
getCategory(int index)
Returns the category at a given index . |
void |
removeFurnitureListener(CollectionListener<CatalogPieceOfFurniture> listener)
Removes the furniture listener in parameter from this catalog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FurnitureCatalog()
Method Detail |
---|
public List<FurnitureCategory> getCategories()
public int getCategoriesCount()
public FurnitureCategory getCategory(int index)
index
.
public void addFurnitureListener(CollectionListener<CatalogPieceOfFurniture> listener)
listener
in parameter to this catalog.
public void removeFurnitureListener(CollectionListener<CatalogPieceOfFurniture> listener)
listener
in parameter from this catalog.
public void add(FurnitureCategory category, CatalogPieceOfFurniture piece)
piece
of a given category
to this catalog.
Once the piece
is added, furniture listeners added to this catalog will receive a
collectionChanged
notification.
category
- the category of the piece.piece
- a piece of furniture.public void delete(CatalogPieceOfFurniture piece)
piece
from this catalog.
If then piece category is empty, it will be removed from the categories of this catalog.
Once the piece
is deleted, furniture listeners added to this catalog will receive a
collectionChanged
notification.
piece
- a piece of furniture in that category.
|
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 |