Merged gcj-eclipse branch to trunk.

From-SVN: r120621
This commit is contained in:
Tom Tromey 2007-01-09 19:58:05 +00:00
parent c648dedbde
commit 97b8365caf
17478 changed files with 606493 additions and 100744 deletions

View file

@ -72,10 +72,10 @@ public class Option
*/
public Option(AttributeSet attr)
{
attributes = attr;
// Protect the attribute set.
attributes = attr.copyAttributes();
label = null;
selected = false;
// FIXME: Probably initialize something using the attributes.
selected = attr.getAttribute(HTML.Attribute.SELECTED) != null;
}
/**
@ -151,7 +151,9 @@ public class Option
*/
public String getValue()
{
// FIXME: Return some attribute here if specified.
return label;
String value = (String) attributes.getAttribute(HTML.Attribute.VALUE);
if (value == null)
value = label;
return value;
}
}