dundas.controls.LayerViewModel Class

 

Inheritance Hierarchy

 
Class
   dundas.EventDisposable
      dundas.controls.NotifiedViewModel
         dundas.controls.CanvasSelectableViewModel
            dundas.controls.LayerViewModel
 

Constructors

 
  Name Description
init
 
 

Properties

 
  Name Description
background
bottomNeighbour Inherited from dundas.controls.CanvasSelectableViewModel.
businessObject Inherited from dundas.controls.CanvasSelectableViewModel.
canvas Inherited from dundas.controls.CanvasSelectableViewModel.
canvasService Inherited from dundas.controls.CanvasSelectableViewModel.
container Inherited from dundas.controls.CanvasSelectableViewModel.
designObjectCreated Inherited from dundas.controls.CanvasSelectableViewModel.
designTimeInteractable The content to add to the selection frame so that it is interact-able during design time Inherited from dundas.controls.CanvasSelectableViewModel.
friendlyName
gridTemplateAdorner Gets the grid template adorner of this layer.
guidelines Gets the guidelines of this view model. Inherited from dundas.controls.CanvasSelectableViewModel.
hasVertices Gets whether or not the business object has vertices. Inherited from dundas.controls.CanvasSelectableViewModel.
hidden
highestZIndex
id
isContextFocusLayer
isDisposed Gets a value indicating whether this instance has been disposed. Inherited from dundas.EventDisposable.
isDisposing Inherited from dundas.controls.CanvasSelectableViewModel.
isInTemplate Gets the value indicating whether or not this view model is part of the template or not. Inherited from dundas.controls.CanvasSelectableViewModel.
isLayerActivatable Gets a value to indicate whether or not this layer can be activated by the canvas.
isLayerElementExplorerShown Get or set a value indicating whether the layer element explorer is shown.
isSelectable Gets the select-ability of this view model. Inherited from dundas.controls.CanvasSelectableViewModel.
isTemplateLayer Get a value indicating whether or not this layer is a template layer
isTempShow Gets or sets a value indicating whether or not this layer is appearing visible temporarily for rendering purpose.
knockoutViewModel Gets the knockout view model to be bound to the views. Inherited from dundas.controls.CanvasSelectableViewModel.
layerElementExplorer Get the layer element explorer control.
layerSelected Gets a value to indicate whether or not this layer is selected
leftNeighbour Inherited from dundas.controls.CanvasSelectableViewModel.
locked Get a value indicating whether or not this layer is locked.
name
opacity Gets the opacity of this layer.
rightNeighbour Inherited from dundas.controls.CanvasSelectableViewModel.
selected Inherited from dundas.controls.CanvasSelectableViewModel.
selectedSubElement Gets or sets the selected sub-element context. Inherited from dundas.controls.CanvasSelectableViewModel.
templateCells Gets the template cells of this layer.
topNeighbour Inherited from dundas.controls.CanvasSelectableViewModel.
uiCache Gets the UI cache table Inherited from dundas.EventDisposable.
viewPanel Gets or sets the viewpanel of this layer.
 
 

Methods

 
  Name Description
adjustBackground
appendTemplateCell Append a template cell DOM to the end of the template grid.
attachAdapters Attach the DOM of the adapters to this layer.
bind Bind an event handler. Inherited from dundas.EventDisposable.
clearLayer Remove all the design objects from the layer.
commitChanges Apply the changes made and fire the onPropertyChange event. Inherited from dundas.controls.NotifiedViewModel.
create Creates the actual DOM object. Inherited from dundas.controls.NotifiedViewModel.
createLayerElementExplorer Create the layer element explorer.
createPreviewViewPanel Create the layer preview panel.
destroy Destroy the business object on the canvas, to be implemented by inheriting class. Inherited from dundas.controls.NotifiedViewModel.
detachTemplateCell Detach a container template cell of the specified template cell ID.
dispose Inherited from dundas.EventDisposable.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
getBackgroundAbsoluteBound Retrieve a bounding rectangle of this view model. Inherited from dundas.controls.CanvasSelectableViewModel.
getContainerTemplateCell Get the container template cell.
getContextualCommands Gets the contextual toolbar commands. Inherited from dundas.controls.CanvasSelectableViewModel.
getControlProperties Called to get the object with the list of properties on the root control, or any sub-element of the control. Inherited from dundas.controls.CanvasSelectableViewModel.
getDesignObjectContainments Retrieve the DOM element that contains the design objects.
getDesignObjects Retrieve all the design objects of this layer, or within the specific template cell of the layer.
getFloatingElement
getTemplateCell Get the template cell that this belongs to.
getViewModels Retrieve all the viewModels of this layer, or within the specific template cell of the layer.
insertDesignObject Insert a design object into this layer. Will determine to insert above or insert below depending on the zIndex of designObject, whether the canvas is loading, and if the vm is newly created
notifyLayerLayoutChanged
notifyLayerObjectChanged Notify the layer that the some object is visually modified on the layer, including an addition of viewmodels.
notifyObjectsRemoved tell the view panel that the element has been removed
notifySelectionChanged
raiseBindEvent Fire the event specified with eventName, or subscribe a handler. Inherited from dundas.EventDisposable.
raiseCommitted Raise the property changed event. Inherited from dundas.controls.NotifiedViewModel.
reattachTemplateCell Re-attach a container template cell of the specified template cell ID.
refreshStickyCells Refresh all the sticky cells and ensures that they are in the DOM with correct dimensions./
refreshViewModelChange Goes through the view model to add any new changes. Inherited from dundas.controls.NotifiedViewModel.
removePropertiesOldValue Removes all the old value of each properties, so that the viewmodel looks as if it is newly created. Inherited from dundas.controls.NotifiedViewModel.
removePropertyOldValue Removes the old value of a particular property. Inherited from dundas.controls.NotifiedViewModel.
removeTemplateCell Remove a container template cell of the specified template cell ID.
setGridTemplateAdorner Sets the grid template adorner for this layer.
setStickyCell Set the HTML elements for the sticky cell in this layer.
setTemplate Set the template grid. If the new template does not have cell that correspond to adapter, adapter will be removed.
subscribe Subscribe or unsubscribe an event handler for an event. Inherited from dundas.EventDisposable.
subscribeCommitted Subscribe to the committed event. Inherited from dundas.controls.NotifiedViewModel.
subscribeDisposed Subscribe to the disposed event. Inherited from dundas.EventDisposable.
subscribeHiddenChanged
subscribeLockedChanged
subscribeOnce Subscribe a one time event handler for an event. Inherited from dundas.EventDisposable.
subscribePropertiesChanged Subscribe an event handler for the properties changed event. Inherited from dundas.controls.NotifiedViewModel.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
trigger Raise an event. Inherited from dundas.EventDisposable.
unbind Unsubscribe an event. if handler is specified, unsubscribe that handler. if no parameters are specified, unbind everything. Inherited from dundas.EventDisposable.
unbindAll unsubscribe all events. Inherited from dundas.EventDisposable.