public class TimeIntervalHandle extends StructureHandle
structContext
elementHandle
Constructor and Description |
---|
TimeIntervalHandle(DesignElementHandle element,
org.eclipse.birt.report.model.core.StructureContext context)
Constructs the handle of time interval.
|
Modifier and Type | Method and Description |
---|---|
int |
getMeasure()
Returns the measure value.
|
java.lang.String |
getUnit()
Returns the unit of the time interval.
|
void |
setMeasure(int measure)
Sets the measure value.
|
void |
setUnit(java.lang.String unit)
Sets the unit of the time interval.
|
drop, getContext, getDefn, getExpressionProperty, getExternalizedValue, getExternalizedValue, getIntProperty, getMember, getProperty, getPropertyDefn, getStringProperty, getStructure, isDesignTime, isLocal, iterator, setDesignTime, setExpressionProperty, setProperty, setPropertySilently
getReference
getDesign, getElement, getElementHandle, getModule
public TimeIntervalHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.StructureContext context)
element
- the handle of the element which defines the structurecontext
- the context of this structurepublic void setMeasure(int measure) throws SemanticException
measure
- the measure value to setSemanticException
public int getMeasure()
public void setUnit(java.lang.String unit) throws SemanticException
DesignChoiceConstants
:
INTERVAL_SECOND
INTERVAL_MINUTE
INTERVAL_HOUR
unit
- the unit to setSemanticException
public java.lang.String getUnit()
DesignChoiceConstants
:
INTERVAL_SECOND
INTERVAL_MINUTE
INTERVAL_HOUR
Copyright © 2008 Actuate Corp. All rights reserved.