Class LevelController
				
				
			
				
				
				
					
Defined in:  SweetHome3D.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| 
								LevelController(home, preferences, viewFactory, undoSupport)
							 Creates the controller of home levels view with undo support. | 
| Method Attributes | Method Name and Description | 
|---|---|
| addPropertyChangeListener(property, listener)
								 Adds the property change  listenerin parameter to this controller. | |
| displayView(parentView)
								 Displays the view controlled by this controller. | |
| Returns the edited elevation. | |
| Returns the edited elevation index. | |
| Returns the edited floor thickness. | |
| Returns the edited height. | |
| Returns a copy of home levels. | |
| getName()
								 Returns the edited name. | |
| Returns the selected level index. | |
| getView()
								 Returns the view associated with this controller. | |
| Returns the edited viewable attribute. | |
| isPropertyEditable(property)
								 Returns  trueif the givenpropertyis editable. | |
| Controls the modification of selected level in the edited home. | |
| removePropertyChangeListener(property, listener)
								 Removes the property change  listenerin parameter from this controller. | |
| setFloorThickness(floorThickness)
								 Sets the edited floor thickness. | |
| setHeight(height)
								 Sets the edited height. | |
| setName(name)
								 Sets the edited name. | |
| setViewable(viewable)
								 Sets the edited viewable attribute. | |
| Updates edited properties from selected level in the home edited by this controller. | 
					Class Detail
				
				
				
						LevelController(home, preferences, viewFactory, undoSupport)
				
				
				
					Creates the controller of home levels view with undo support.
					
Author: Emmanuel Puybaret.
				
				
				
				
					
						Author: Emmanuel Puybaret.
- Parameters:
- {Home} home
- {UserPreferences} preferences
- {Object} viewFactory
- {javax.swing.undo.UndoableEditSupport} undoSupport
					Method Detail
				
				
					 
					
					
					
					addPropertyChangeListener(property, listener)
					
					
					
						Adds the property change 
					
					
					
						
							listener in parameter to this controller.
						
						
					- Parameters:
- {string} property
- {PropertyChangeListener} listener
					
					
					displayView(parentView)
					
					
					
						Displays the view controlled by this controller.
						
						
					
					
					
					
						
							- Parameters:
- {Object} parentView
					
					{number}
					getElevation()
					
					
					
						Returns the edited elevation.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {number}
					
					{number}
					getElevationIndex()
					
					
					
						Returns the edited elevation index.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {number}
					
					{number}
					getFloorThickness()
					
					
					
						Returns the edited floor thickness.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {number}
					
					{number}
					getHeight()
					
					
					
						Returns the edited height.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {number}
					
					{com.eteks.sweethome3d.model.Level[]}
					getLevels()
					
					
					
						Returns a copy of home levels.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {com.eteks.sweethome3d.model.Level[]}
					
					{string}
					getName()
					
					
					
						Returns the edited name.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {string}
					
					{number}
					getSelectedLevelIndex()
					
					
					
						Returns the selected level index.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {number}
					
					{Object}
					getView()
					
					
					
						Returns the view associated with this controller.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {Object}
					
					{boolean}
					getViewable()
					
					
					
						Returns the edited viewable attribute.
						
						
					
					
					
					
						
						
						
						
						
							- Returns:
- {boolean}
					
					{boolean}
					isPropertyEditable(property)
					
					
					
						Returns 
					
					
					
						
							true if the given property is editable.
Depending on whether a property is editable or not, the view associated to this controller
may render it differently.
The implementation of this method always returns true.
						
						
					- Parameters:
- {string} property
- Returns:
- {boolean}
					
					
					modifyLevels()
					
					
					
						Controls the modification of selected level in the edited home.
						
						
					
					
					
					
						
						
						
						
						
						
						
					
					
					
					removePropertyChangeListener(property, listener)
					
					
					
						Removes the property change 
					
					
					
						
							listener in parameter from this controller.
						
						
					- Parameters:
- {string} property
- {PropertyChangeListener} listener
					
					
					setFloorThickness(floorThickness)
					
					
					
						Sets the edited floor thickness.
						
						
					
					
					
					
						
							- Parameters:
- {number} floorThickness
					
					
					setHeight(height)
					
					
					
						Sets the edited height.
						
						
					
					
					
					
						
							- Parameters:
- {number} height
					
					
					setName(name)
					
					
					
						Sets the edited name.
						
						
					
					
					
					
						
							- Parameters:
- {string} name
					
					
					setViewable(viewable)
					
					
					
						Sets the edited viewable attribute.
						
						
					
					
					
					
						
							- Parameters:
- {boolean} viewable
					
					
					updateProperties()
					
					
					
						Updates edited properties from selected level in the home edited by this controller.
						
						
					
					
					
					
						
						
						
						
						
						
						
					
				
			
			
		
			
			
			
