public class FurnitureCatalogController extends java.lang.Object implements Controller
| Constructor and Description |
|---|
FurnitureCatalogController(FurnitureCatalog catalog,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller of the furniture catalog view.
|
FurnitureCatalogController(FurnitureCatalog catalog,
ViewFactory viewFactory)
Creates a controller of the furniture catalog view.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(SelectionListener listener)
Adds the selection
listener in parameter to this controller. |
void |
deleteSelection()
Deletes selected catalog furniture.
|
void |
dropFiles(java.util.List<java.lang.String> importableModels)
Adds dropped files to catalog.
|
java.util.List<CatalogPieceOfFurniture> |
getSelectedFurniture()
Returns an unmodifiable list of the selected furniture in catalog.
|
View |
getView()
Returns the view associated with this controller.
|
void |
importFurniture()
Displays the wizard that helps to import furniture to catalog.
|
void |
modifySelectedFurniture()
Displays the wizard that helps to change the selected piece of furniture.
|
void |
removeSelectionListener(SelectionListener listener)
Removes the selection
listener in parameter from this controller. |
void |
setSelectedFurniture(java.util.List<CatalogPieceOfFurniture> selectedFurniture)
Updates the selected furniture in catalog and notifies listeners selection change.
|
public FurnitureCatalogController(FurnitureCatalog catalog, ViewFactory viewFactory)
catalog - the furniture catalog of the applicationviewFactory - a factory able to create the furniture view managed by this controllerpublic FurnitureCatalogController(FurnitureCatalog catalog, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
catalog - the furniture catalog of the applicationpreferences - application user preferencesviewFactory - a factory able to create the furniture view managed by this controllercontentManager - content manager for furniture importpublic View getView()
getView in interface Controllerpublic void addSelectionListener(SelectionListener listener)
listener in parameter to this controller.public void removeSelectionListener(SelectionListener listener)
listener in parameter from this controller.public java.util.List<CatalogPieceOfFurniture> getSelectedFurniture()
public void setSelectedFurniture(java.util.List<CatalogPieceOfFurniture> selectedFurniture)
public void modifySelectedFurniture()
public void importFurniture()
public void deleteSelection()
public void dropFiles(java.util.List<java.lang.String> importableModels)

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License