Class TimeIntervalHandle
java.lang.Object
org.eclipse.birt.report.model.api.ElementDetailHandle
org.eclipse.birt.report.model.api.ValueHandle
org.eclipse.birt.report.model.api.StructureHandle
org.eclipse.birt.report.model.api.TimeIntervalHandle
The structure handle of time interval.
-
Field Summary
Fields inherited from class org.eclipse.birt.report.model.api.StructureHandle
structContextFields inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle
elementHandle -
Constructor Summary
ConstructorsConstructorDescriptionTimeIntervalHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.StructureContext context) Constructs the handle of time interval. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the measure value.getUnit()Returns the unit of the time interval.voidsetMeasure(int measure) Sets the measure value.voidSets the unit of the time interval.Methods inherited from class org.eclipse.birt.report.model.api.StructureHandle
drop, getContext, getDefn, getExpressionProperty, getExternalizedValue, getExternalizedValue, getIntProperty, getMember, getProperty, getPropertyDefn, getStringProperty, getStructure, isDesignTime, isLocal, iterator, setDesignTime, setExpressionProperty, setProperty, setPropertySilentlyMethods inherited from class org.eclipse.birt.report.model.api.ValueHandle
getReferenceMethods inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle
getDesign, getElement, getElementHandle, getModule
-
Constructor Details
-
TimeIntervalHandle
public TimeIntervalHandle(DesignElementHandle element, org.eclipse.birt.report.model.core.StructureContext context) Constructs the handle of time interval.- Parameters:
element- the handle of the element which defines the structurecontext- the context of this structure
-
-
Method Details
-
setMeasure
Sets the measure value.- Parameters:
measure- the measure value to set- Throws:
SemanticException
-
getMeasure
public int getMeasure()Returns the measure value.- Returns:
- the measure value
-
setUnit
Sets the unit of the time interval. The value can one of the following value defined inDesignChoiceConstants:INTERVAL_SECONDINTERVAL_MINUTEINTERVAL_HOUR
- Parameters:
unit- the unit to set- Throws:
SemanticException
-
getUnit
Returns the unit of the time interval. The value can be one of the following value defined inDesignChoiceConstants:INTERVAL_SECONDINTERVAL_MINUTEINTERVAL_HOUR
- Returns:
- the unit
-