3

ClipEditor

Une instance de ClipEditor est une instance de Editor qui a pour option d'afficher la durée d'un clip.

Objective
  • Responder
    • Editor
      • ClipEditor
  1. function ClipEditor(model, view, inspectors, panel = false, timing = false) {
  2.     Editor.call(this, model, view, inspectors, panel);
  3.  
  4.     this._timing = timing;
  5. }
  6.  
  7. ClipEditor.prototype = Object.create(Editor.prototype);
  8.  
  9. Object.defineProperty(ClipEditor.prototype, 'constructor', { value: ClipEditor, enumerable: false, writable: true });
  10.  
  11. ClipEditor.prototype.modelSet = function(sender) {
  12.     Editor.prototype.modelSet.call(this, sender);
  13.  
  14.     if (this._timing)
  15.         this._timing.widget.innerText = this._view.duration;
  16. };
  17.  
  18. ClipEditor.prototype.modelValueChanged = function(sender, prop, val) {
  19.     Editor.prototype.modelValueChanged.call(this, sender, prop, val);
  20.  
  21.     if (this._timing)
  22.         this._timing.widget.innerText = this._view.duration;
  23. };
VOIR AUSSI

Editor, Model, Clip

Commentaires

Votre commentaire :
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip aide 2000

Entrez un maximum de 2000 caractères.
Améliorez la présentation de votre texte avec les balises de formatage suivantes :
[p]paragraphe[/p], [b]gras[/b], [i]italique[/i], [u]souligné[/u], [s]barré[/s], [quote]citation[/quote], [pre]tel quel[/pre], [br]à la ligne,
[url]http://www.izend.org[/url], [url=http://www.izend.org]site[/url], [email]izend@izend.org[/email], [email=izend@izend.org]izend[/email],
[code]commande[/code], [code=langage]code source en c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].