1 /**
  2  * @fileoverview Class implements an output control.
  3  */
  4 
  5 goog.provide('xrx.output');
  6 
  7 
  8 
  9 goog.require('goog.dom');
 10 goog.require('xrx.view');
 11 
 12 
 13 
 14 xrx.output = function(element) {
 15 
 16 
 17 
 18   goog.base(this, element);
 19 };
 20 goog.inherits(xrx.output, xrx.view);
 21 
 22 
 23 
 24 xrx.output.prototype.createDom = function() {};
 25 
 26 
 27 
 28 xrx.output.prototype.eventBeforeChange = function() {};
 29 
 30 
 31 
 32 xrx.output.prototype.eventFocus = function() {};
 33 
 34 
 35 
 36 xrx.output.prototype.getValue = function() {};
 37 
 38 
 39 
 40 xrx.output.prototype.setFocus = function() {};
 41 
 42 
 43 
 44 xrx.output.prototype.setValue = function(value) {
 45 
 46   goog.dom.setTextContent(this.getElement(), value);
 47 };
 48 
 49 
 50 
 51 xrx.output.prototype.refresh = function() {
 52   var value = this.getNode().stringValue();
 53 
 54   this.setValue(value);
 55 };
 56