Class Index | File Index

Classes


Class HomePane


Defined in: HomePane.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
HomePane(home, preferences, controller, controller)
Creates home view associated with its controller.
Method Summary
Method Attributes Method Name and Description
 
Builds align or distribute menu.
 
Builds furniture display property menu.
 
createFurnitureSortMenu(home, builder)
Builds furniture sort menu.
 
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.
 
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.
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.

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 21 2024 17:43:24 GMT+0200 (CEST)