Class Index | File Index

Classes


Class FurnitureCatalogController


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
FurnitureCatalogController(catalog, preferences, viewFactory, contentManager)
Creates a controller of the furniture catalog view.
Method Summary
Method Attributes Method Name and Description
 
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.
 
Returns the view associated with this controller.
 
Displays the wizard that helps to change the selected piece of furniture.
 
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.
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

© Copyright 2021 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Mar 02 2021 19:55:52 GMT+0100 (CET)