Class FurnitureCatalogController
Defined in: SweetHome3D.js.
Constructor Attributes | Constructor Name and Description |
---|---|
FurnitureCatalogController(catalog, preferences, viewFactory, contentManager)
Creates a controller of the furniture catalog view.
|
Method Attributes | Method Name and Description |
---|---|
addSelectionListener(listener)
Adds the selection
listener in parameter to this controller. |
|
Deletes selected catalog furniture.
|
|
dropFiles(importableModels)
Adds dropped files to catalog.
|
|
Returns a list of the selected furniture in catalog.
|
|
getView()
Returns the view associated with this controller.
|
|
Displays the wizard that helps to change the selected piece of furniture.
|
|
removeSelectionListener(listener)
Removes the selection
listener in parameter from this controller. |
|
setSelectedFurniture(selectedFurniture)
Updates the selected furniture in catalog and notifies listeners selection change.
|
Class Detail
FurnitureCatalogController(catalog, preferences, viewFactory, contentManager)
Creates a controller of the furniture catalog view.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {FurnitureCatalog} catalog
- the furniture catalog of the application
- {UserPreferences} preferences
- application user preferences
- {Object} viewFactory
- a factory able to create the furniture view managed by this controller
- {Object} contentManager
- content manager for furniture import
Method Detail
addSelectionListener(listener)
Adds the selection
listener
in parameter to this controller.
- Parameters:
- {Object} listener
deleteSelection()
Deletes selected catalog furniture.
dropFiles(importableModels)
Adds dropped files to catalog.
- Parameters:
- {string[]} importableModels
{CatalogPieceOfFurniture[]}
getSelectedFurniture()
Returns a list of the selected furniture in catalog.
- Returns:
- {CatalogPieceOfFurniture[]}
{Object}
getView()
Returns the view associated with this controller.
- Returns:
- {Object}
modifySelectedFurniture()
Displays the wizard that helps to change the selected piece of furniture.
removeSelectionListener(listener)
Removes the selection
listener
in parameter from this controller.
- Parameters:
- {Object} listener
setSelectedFurniture(selectedFurniture)
Updates the selected furniture in catalog and notifies listeners selection change.
- Parameters:
- {CatalogPieceOfFurniture[]} selectedFurniture