Class HomePane
Defined in: HomePane.js.
Constructor Attributes | Constructor Name and Description |
---|---|
HomePane(home, preferences, controller, controller)
Creates home view associated with its controller.
|
Method Attributes | Method Name and Description |
---|---|
createAlignOrDistributeMenu(builder)
Builds align or distribute menu.
|
|
createFurnitureDisplayPropertyMenu(home, builder)
Builds furniture display property menu.
|
|
createFurnitureSortMenu(home, builder)
Builds furniture sort menu.
|
|
dispose()
Removes components added to this pane and their listeners.
|
|
Returns the actions map registered with this component.
|
|
Returns the list of selectable items that are currently in clipboard
or
null if clipboard doesn't contain any selectable item. |
|
Returns the HTML element used to view this component at screen.
|
|
Returns
true if clipboard doesn't contain data that
components are able to handle. |
|
setActionEnabled(actionType, enabled)
Enables or disables the action matching
actionType . |
|
setEnabled(actionType, enabled)
Enables or disables the action matching
actionType . |
|
setTransferEnabled(enabled)
Enables or disables transfer between components.
|
|
setUndoRedoName(undoText, redoText)
Sets the
NAME and SHORT_DESCRIPTION properties value
of undo and redo actions. |
|
Displays an about dialog.
|
|
Displays a dialog showing the list of cameras stored in home
and returns
null to delete selected cameras asynchronously. |
Class Detail
HomePane(home, preferences, controller, controller)
Creates home view associated with its controller.
Author: Emmanuel Puybaret, Renaud Pawlak, Louis Grignon.
Author: Emmanuel Puybaret, Renaud Pawlak, Louis Grignon.
- Parameters:
- {Home} home
- {UserPreferences} preferences
- {HomeController} controller
- controller
Method Detail
createAlignOrDistributeMenu(builder)
Builds align or distribute menu.
- Parameters:
- builder
createFurnitureDisplayPropertyMenu(home, builder)
Builds furniture display property menu.
- Parameters:
- home
- builder
createFurnitureSortMenu(home, builder)
Builds furniture sort menu.
- Parameters:
- home
- builder
dispose()
Removes components added to this pane and their listeners.
getActionMap()
Returns the actions map registered with this component.
{Object[]}
getClipboardItems()
Returns the list of selectable items that are currently in clipboard
or
null
if clipboard doesn't contain any selectable item.
- Returns:
- {Object[]}
getHTMLElement()
Returns the HTML element used to view this component at screen.
{boolean}
isClipboardEmpty()
Returns
true
if clipboard doesn't contain data that
components are able to handle.
- Returns:
- {boolean}
setActionEnabled(actionType, enabled)
Enables or disables the action matching
actionType
.
- Parameters:
- {String} actionType
- {boolean} enabled
setEnabled(actionType, enabled)
Enables or disables the action matching
actionType
.
- Parameters:
- {HomeView.ActionType} actionType
- {boolean} enabled
setTransferEnabled(enabled)
Enables or disables transfer between components.
- Parameters:
- {boolean} enabled
setUndoRedoName(undoText, redoText)
Sets the
NAME
and SHORT_DESCRIPTION
properties value
of undo and redo actions. If a parameter is null,
the properties will be reset to their initial values.
- Parameters:
- {string} undoText
- {string} redoText
showAboutDialog()
Displays an about dialog.
showDeletedCamerasDialog()
Displays a dialog showing the list of cameras stored in home
and returns
null
to delete selected cameras asynchronously.