Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue