/**
 * Generated by Apache Royale Compiler from org\apache\royale\html\supportClasses\VDividedContainerGripper.as
 * org.apache.royale.html.supportClasses.VDividedContainerGripper
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.html.supportClasses.VDividedContainerGripper');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.UIBase');
goog.require('org.apache.royale.events.Event');
goog.require('org.apache.royale.events.IEventDispatcher');
goog.require('org.apache.royale.graphics.SolidColorStroke');
goog.require('org.apache.royale.svg.Path');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.html.supportClasses.IDividedContainerGripper');
goog.require('org.apache.royale.utils.Language');



/**
 * Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 * @implements {org.apache.royale.html.supportClasses.IDividedContainerGripper}
 */
org.apache.royale.html.supportClasses.VDividedContainerGripper = function() {
};


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.html.supportClasses.VDividedContainerGripper', org.apache.royale.html.supportClasses.VDividedContainerGripper);


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand;


/**
 * @private
 * @type {org.apache.royale.svg.Path}
 */
org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.org_apache_royale_html_supportClasses_VDividedContainerGripper_path;


/**
 * @asprivate
 * @private
 * @param {org.apache.royale.events.Event} event
 */
org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.org_apache_royale_html_supportClasses_VDividedContainerGripper_handleResize = function(event) {
  var /** @type {number} */ useWidth = org.apache.royale.utils.Language.as(this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand, org.apache.royale.core.UIBase).width;
  var /** @type {number} */ useHeight = org.apache.royale.utils.Language.as(this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand, org.apache.royale.core.UIBase).height;
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.width = 30;
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.height = 8;
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.x = (useWidth - this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.width) / 2;
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.y = (useHeight - this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.height) / 2;
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.draw();
};


org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.set__strand = function(value) {
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand = value;
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand, org.apache.royale.core.UIBase).element.style.cursor = 'row-resize';
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand, org.apache.royale.events.IEventDispatcher).addEventListener("widthChanged", org.apache.royale.utils.Language.closure(this.org_apache_royale_html_supportClasses_VDividedContainerGripper_handleResize, this, 'handleResize'));
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand, org.apache.royale.events.IEventDispatcher).addEventListener("heightChanged", org.apache.royale.utils.Language.closure(this.org_apache_royale_html_supportClasses_VDividedContainerGripper_handleResize, this, 'handleResize'));
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path = new org.apache.royale.svg.Path();
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.stroke = new org.apache.royale.graphics.SolidColorStroke(0x555555, 1);
  this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path.data = "M 0 1 L 30 1 M 0 4 L 30 4 M 0 7 L 30 7";
  org.apache.royale.utils.Language.as(this.org_apache_royale_html_supportClasses_VDividedContainerGripper__strand, org.apache.royale.core.UIBase).addElement(this.org_apache_royale_html_supportClasses_VDividedContainerGripper_path);
};


Object.defineProperties(org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype, /** @lends {org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype} */ {
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.set__strand}}
);


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'VDividedContainerGripper', qName: 'org.apache.royale.html.supportClasses.VDividedContainerGripper', kind: 'class' }], interfaces: [org.apache.royale.core.IBead, org.apache.royale.html.supportClasses.IDividedContainerGripper] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.html.supportClasses.VDividedContainerGripper.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.html.supportClasses.VDividedContainerGripper'}
      };
    },
    methods: function () {
      return {
        'VDividedContainerGripper': { type: '', declaredBy: 'org.apache.royale.html.supportClasses.VDividedContainerGripper'}
      };
    }
  };
};