dundas.controls.CanvasSelectableViewModel Class

 

Inheritance Hierarchy

 
Class
   dundas.EventDisposable
      dundas.controls.NotifiedViewModel
         dundas.controls.CanvasSelectableViewModel
            dundas.controls.CanvasVertexSelectableViewModel
            dundas.controls.CanvasViewModel
            dundas.controls.DesignObjectViewModel
            dundas.controls.LayerViewModel
            dundas.controls.MultiSelectionViewModel
            dundas.controls.TemplateCellViewModel
 

Constructors

 
  Name Description
init Creates a ViewModel for a selectable object used within the canvas
 
 

Properties

 
  Name Description
bottomNeighbour
businessObject
canvas
canvasService
container
designObjectCreated
designTimeInteractable The content to add to the selection frame so that it is interact-able during design time
guidelines Gets the guidelines of this view model.
hasVertices Gets whether or not the business object has vertices.
isDisposed Gets a value indicating whether this instance has been disposed. Inherited from dundas.EventDisposable.
isDisposing
isInTemplate Gets the value indicating whether or not this view model is part of the template or not.
isSelectable Gets the select-ability of this view model.
knockoutViewModel Gets the knockout view model to be bound to the views.
leftNeighbour
rightNeighbour
selected
selectedSubElement Gets or sets the selected sub-element context.
topNeighbour
uiCache Gets the UI cache table Inherited from dundas.EventDisposable.
 
 

Methods

 
  Name Description
bind Bind an event handler. Inherited from dundas.EventDisposable.
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.
destroy Destroy the business object on the canvas, to be implemented by inheriting class. Inherited from dundas.controls.NotifiedViewModel.
dispose Disposes this view model. 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.
getContextualCommands Gets the contextual toolbar commands.
getControlProperties Called to get the object with the list of properties on the root control, or any sub-element of the control.
getTemplateCell Get the template cell that this belongs to.
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.
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.
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.
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.