/**
 * <License>
 */
package edu.colorado.csdms.wmt.client.data;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;

/**
 * A GWT JavaScript overlay (JSO) type that describes the JSON returned on a
 * HTTP GET call to <a
 * href="http://csdms.colorado.edu/wmt/api/tag/list">tag/list</a>. Declares
 * JSNI methods to access attributes.
 * <p>
 * Note that an instance of LabelJSO can represent a single label or a JsArray
 * of labels.
 * 
 * @see <a
 *      href="http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsOverlay.html">http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsOverlay.html</a>
 * @author Mark Piper (mark.piper@colorado.edu)
 */
public class LabelJSO extends JavaScriptObject {
  
  // Overlay types always have protected, zero-arg constructors.
  protected LabelJSO() {
  }

  /**
   * Gets the owner of a label, a String. This is a JSNI method.
   */
  public final native String getOwner() /*-{
		return this.owner;
  }-*/;

  /**
   * Gets the text of the label, a String. This is a JSNI method.
   */
  public final native String getLabel() /*-{
		return this.tag;
  }-*/;

  /**
   * Sets the text of the label, a String. This is a JSNI method.
   */
  public final native void setLabel(String label) /*-{
		this.tag = label;
  }-*/;

  /**
   * A JSNI method to get the id of the label, an int. 
   */
  public final native int getId() /*-{
		return this.id;
  }-*/;    
  
  /**
   * Gets a JsArray of labels. This is a JSNI method.
   */
  public final native JsArray<LabelJSO> getLabels() /*-{
		return this;
  }-*/;
  
  /**
   * Returns the state of the label button; true = selected. This is a JSNI
   * method.
   */
  public final native boolean isSelected() /*-{
    return (typeof this.selected != 'undefined') ? this.selected : false;
  }-*/;
  
  /**
   * Stores the state of the label button. This is a JSNI method. (It actually
   * adds a "selected" object to the JSON.)
   * 
   * @param selected a value of true indicates button is selected
   */
  public final native void isSelected(Boolean selected) /*-{
    this.selected = selected;
  }-*/;
}

@@ -2079,17 +2079,17 @@
 elected(
-B
+b
 oolean s

Change type from Boolean object to boolean primitive