/**
 * Generated by Apache Royale Compiler from org\apache\royale\jewel\beads\layouts\ResponsiveVisibility.as
 * org.apache.royale.jewel.beads.layouts.ResponsiveVisibility
 *
 * @fileoverview
 *
 * @suppress {checkTypes|accessControls}
 */

goog.provide('org.apache.royale.jewel.beads.layouts.ResponsiveVisibility');

goog.require('org.apache.royale.core.IStrand');
goog.require('org.apache.royale.core.StyledUIBase');
goog.require('org.apache.royale.core.IBead');
goog.require('org.apache.royale.utils.Language');



/**
 *  constructor.
 *
 *  @langversion 3.0
 *  @playerversion Flash 10.2
 *  @playerversion AIR 2.6
 *  @productversion Royale 0.9.4
 * @constructor
 * @implements {org.apache.royale.core.IBead}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility = function() {
};


/**
 * Prevent renaming of class. Needed for reflection.
 */
goog.exportSymbol('org.apache.royale.jewel.beads.layouts.ResponsiveVisibility', org.apache.royale.jewel.beads.layouts.ResponsiveVisibility);


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__phoneVisible;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__tabletVisible;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__desktopVisible;


/**
 * @private
 * @type {boolean}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__wideScreenVisible;


/**
 * @private
 * @type {org.apache.royale.core.IStrand}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand;


/**
 * @private
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility_showOrHideHost = function() {
  var /** @type {org.apache.royale.core.StyledUIBase} */ host = org.apache.royale.utils.Language.as(this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand, org.apache.royale.core.StyledUIBase);
  if (host) {
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__phoneVisible != null) {
      if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__phoneVisible) {
        if (host.containsClass("hidden-phone"))
          host.removeClass("hidden-phone");
        host.addClass("visible-phone");
      } else {
        if (host.containsClass("visible-phone"))
          host.removeClass("visible-phone");
        host.addClass("hidden-phone");
      }
    }
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__tabletVisible != null) {
      if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__tabletVisible) {
        if (host.containsClass("hidden-tablet"))
          host.removeClass("hidden-tablet");
        host.addClass("visible-tablet");
      } else {
        if (host.containsClass("visible-tablet"))
          host.removeClass("visible-tablet");
        host.addClass("hidden-tablet");
      }
    }
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__desktopVisible != null) {
      if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__desktopVisible) {
        if (host.containsClass("hidden-desktop"))
          host.removeClass("hidden-desktop");
        host.addClass("visible-desktop");
      } else {
        if (host.containsClass("visible-desktop"))
          host.removeClass("visible-desktop");
        host.addClass("hidden-desktop");
      }
    }
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__wideScreenVisible != null) {
      if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__wideScreenVisible) {
        if (host.containsClass("hidden-widescreen"))
          host.removeClass("hidden-widescreen");
        host.addClass("visible-widescreen");
      } else {
        if (host.containsClass("visible-widescreen"))
          host.removeClass("visible-widescreen");
        host.addClass("hidden-widescreen");
      }
    }
  }
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__phoneVisible = function() {
  return this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__phoneVisible;
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__phoneVisible = function(value) {
  if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__phoneVisible != value) {
    this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__phoneVisible = value;
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand)
      this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility_showOrHideHost();
  }
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__tabletVisible = function() {
  return this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__tabletVisible;
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__tabletVisible = function(value) {
  if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__tabletVisible != value) {
    this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__tabletVisible = value;
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand)
      this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility_showOrHideHost();
  }
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__desktopVisible = function() {
  return this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__desktopVisible;
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__desktopVisible = function(value) {
  if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__desktopVisible != value) {
    this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__desktopVisible = value;
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand)
      this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility_showOrHideHost();
  }
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__wideScreenVisible = function() {
  return this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__wideScreenVisible;
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__wideScreenVisible = function(value) {
  if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__wideScreenVisible != value) {
    this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__wideScreenVisible = value;
    if (this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand)
      this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility_showOrHideHost();
  }
};


org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__strand = function(value) {
  this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility__strand = value;
  this.org_apache_royale_jewel_beads_layouts_ResponsiveVisibility_showOrHideHost();
};


Object.defineProperties(org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype, /** @lends {org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype} */ {
/**
  * @export
  * @type {boolean} */
phoneVisible: {
get: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__phoneVisible,
set: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__phoneVisible},
/**
  * @export
  * @type {boolean} */
tabletVisible: {
get: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__tabletVisible,
set: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__tabletVisible},
/**
  * @export
  * @type {boolean} */
desktopVisible: {
get: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__desktopVisible,
set: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__desktopVisible},
/**
  * @export
  * @type {boolean} */
wideScreenVisible: {
get: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.get__wideScreenVisible,
set: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__wideScreenVisible},
/**
  * @export
  * @type {org.apache.royale.core.IStrand} */
strand: {
set: org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.set__strand}}
);


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



/**
 * Reflection
 *
 * @return {Object.<string, Function>}
 */
org.apache.royale.jewel.beads.layouts.ResponsiveVisibility.prototype.ROYALE_REFLECTION_INFO = function () {
  return {
    variables: function () {return {};},
    accessors: function () {
      return {
        'phoneVisible': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.layouts.ResponsiveVisibility'},
        'tabletVisible': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.layouts.ResponsiveVisibility'},
        'desktopVisible': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.layouts.ResponsiveVisibility'},
        'wideScreenVisible': { type: 'Boolean', access: 'readwrite', declaredBy: 'org.apache.royale.jewel.beads.layouts.ResponsiveVisibility'},
        'strand': { type: 'org.apache.royale.core.IStrand', access: 'writeonly', declaredBy: 'org.apache.royale.jewel.beads.layouts.ResponsiveVisibility'}
      };
    },
    methods: function () {
      return {
        'ResponsiveVisibility': { type: '', declaredBy: 'org.apache.royale.jewel.beads.layouts.ResponsiveVisibility'}
      };
    }
  };
};