public final class UserChoice
extends org.eclipse.birt.report.model.metadata.Choice
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISPLAY_NAME_PROP
Name of the display name property.
|
protected java.lang.String |
displayName
The choice's display name.
|
protected java.lang.Object |
value
The user choice's value, it is required.
|
static java.lang.String |
VALUE_PROP
Name of the choice value property.
|
Constructor and Description |
---|
UserChoice(java.lang.String name,
java.lang.String id)
Constructs a new User Choice by the given name and id.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Returns the property value of "displayName" for the choice.
|
java.lang.Object |
getValue()
Gets the value of the user choice.
|
void |
setDisplayName(java.lang.String name)
Returns the display name for the choice.
|
void |
setValue(java.lang.Object theValue)
Sets the value of the user choice.
|
public static final java.lang.String VALUE_PROP
public static final java.lang.String DISPLAY_NAME_PROP
protected java.lang.String displayName
protected java.lang.Object value
public UserChoice(java.lang.String name, java.lang.String id)
name
- the choice nameid
- the message ID for the display namepublic java.lang.String getDisplayName()
getDisplayName
in interface IChoice
getDisplayName
in class org.eclipse.birt.report.model.metadata.Choice
public void setDisplayName(java.lang.String name)
name
- the display namepublic void setValue(java.lang.Object theValue)
theValue
- the value of the user choice to setCopyright © 2008 Actuate Corp. All rights reserved.