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

goog.provide('org.apache.royale.css2.Cursors');
goog.provide('org.apache.royale.css2.Cursors.CursorData');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.IUIBase');
goog.require('org.apache.royale.core.IBead');



/**
 *  Constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @constructor
 */
org.apache.royale.css2.Cursors = function() {
  ;
};


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


/**
 * @export
 * @const
 * @type {string}
 */
org.apache.royale.css2.Cursors.AUTO = "auto";


/**
 * @export
 * @const
 * @type {string}
 */
org.apache.royale.css2.Cursors.DEFAULT = "default";


/**
 * @export
 * @const
 * @type {string}
 */
org.apache.royale.css2.Cursors.POINTER = "pointer";


/**
 * @export
 * @const
 * @type {string}
 */
org.apache.royale.css2.Cursors.MOVE = "move";


/**
 * @export
 * @const
 * @type {string}
 */
org.apache.royale.css2.Cursors.TEXT = "text";


/**
 *  The name of the cursor
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.0
 * @export
 * @param {org.apache.royale.core.IUIBase} obj
 * @return {string}
 */
org.apache.royale.css2.Cursors.getCursor = function(obj) {
  
  return obj.element.style.cursor;
};


/**
 *  @asprivate
 * @export
 * @param {org.apache.royale.core.IUIBase} obj
 * @param {string} cursor
 */
org.apache.royale.css2.Cursors.setCursor = function(obj, cursor) {
  
  obj.element.style.cursor = cursor;
};


/**
 * Metadata
 *
 * @type {Object.<string, Array.<Object>>}
 */
org.apache.royale.css2.Cursors.prototype.ROYALE_CLASS_INFO = { names: [{ name: 'Cursors', qName: 'org.apache.royale.css2.Cursors', kind: 'class' }] };



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.css2.Cursors.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {return {};},
    methods: function () {
      return {
        'Cursors': { type: '', declaredBy: 'org.apache.royale.css2.Cursors'},
        '|getCursor': { type: 'String', declaredBy: 'org.apache.royale.css2.Cursors', parameters: function () { return [  { index: 1, type: 'org.apache.royale.core.IUIBase', optional: false } ]; }},
        '|setCursor': { type: 'void', declaredBy: 'org.apache.royale.css2.Cursors', parameters: function () { return [  { index: 1, type: 'org.apache.royale.core.IUIBase', optional: false },{ index: 2, type: 'String', optional: false } ]; }}
      };
    }
  };
};



/**
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.css2.Cursors.CursorData = function() {
};


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.css2.Cursors.CursorData', org.apache.royale.css2.Cursors.CursorData);


/**
 * @export
 * @type {string}
 */
org.apache.royale.css2.Cursors.CursorData.prototype.cursor;


org.apache.royale.css2.Cursors.CursorData.prototype.set__strand = function(value) {
};


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


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



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