blob: 0c1f96025aa4c949416f1f0d6c5e72178d6d7d55 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 1998, 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Goh KONDOH - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.model.dom.html.impl;
import org.w3c.dom.html.HTMLOptGroupElement;
public class SHOptGroupElement extends SHElement implements HTMLOptGroupElement {
protected SHOptGroupElement(String tagName, SHDocument doc) {
super(tagName, doc);
}
public boolean getDisabled() {
String val = getAttribute("disabled");
return val != null && val.length() != 0;
}
public void setDisabled(boolean disabled) {
setAttribute("disabled", disabled ? "disabled" : null);
}
public String getLabel() {
return getAttribute("label");
}
public void setLabel(String label) {
setAttribute("label", label);
}
}