|
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.viewcontroller.FurnitureCatalogController
public class FurnitureCatalogController
A MVC controller for the furniture catalog.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 importMethod Detail |
---|
public View getView()
getView
in interface Controller
public 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)
|
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 |