Class StandardItemProperty
- java.lang.Object
-
- net.sf.jasperreports.components.items.StandardItemProperty
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ItemProperty
,JRChangeEventsSupport
,JRCloneable
public class StandardItemProperty extends Object implements ItemProperty, JRChangeEventsSupport, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_NAME
static String
PROPERTY_VALUE
static String
PROPERTY_VALUE_EXPRESSION
-
Constructor Summary
Constructors Constructor Description StandardItemProperty()
StandardItemProperty(String name, String value, JRExpression valueExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.String
getName()
Returns the name of the item property (required).String
getValue()
Returns thevalue
attribute of the item property.JRExpression
getValueExpression()
Returns aJRExpression
representing the value object for the item property.void
setName(String name)
void
setValue(String value)
void
setValueExpression(JRExpression valueExpression)
-
-
-
Field Detail
-
PROPERTY_NAME
public static final String PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_VALUE
public static final String PROPERTY_VALUE
- See Also:
- Constant Field Values
-
PROPERTY_VALUE_EXPRESSION
public static final String PROPERTY_VALUE_EXPRESSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardItemProperty
public StandardItemProperty()
-
StandardItemProperty
public StandardItemProperty(String name, String value, JRExpression valueExpression)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ItemProperty
Returns the name of the item property (required).- Specified by:
getName
in interfaceItemProperty
- Returns:
- the property name
-
setName
public void setName(String name)
-
getValue
public String getValue()
Description copied from interface:ItemProperty
Returns thevalue
attribute of the item property. Onlyjava.lang.String
values are allowed for this attribute.- Specified by:
getValue
in interfaceItemProperty
- Returns:
- the
value
attribute
-
setValue
public void setValue(String value)
-
getValueExpression
public JRExpression getValueExpression()
Description copied from interface:ItemProperty
Returns aJRExpression
representing the value object for the item property. If present, it overrides the value given by thevalue
attribute.- Specified by:
getValueExpression
in interfaceItemProperty
- Returns:
- the value expression
-
setValueExpression
public void setValueExpression(JRExpression valueExpression)
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-