public class MemberHandle extends SimpleValueHandle
StructureHandle| 限定符和类型 | 字段和说明 |
|---|---|
protected org.eclipse.birt.report.model.core.StructureContext |
memberContext
The context to the member itself.
|
elementHandle| 构造器和说明 |
|---|
MemberHandle(StructureHandle structHandle,
org.eclipse.birt.report.model.metadata.StructPropertyDefn member)
Constructs a member handle with the given structure handle and the member
property definition.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addItem(java.lang.Object item)
Adds an item to the end of a list property.
|
org.eclipse.birt.report.model.core.StructureContext |
getContext()
Returns the structure context to the value.
|
IPropertyDefn |
getDefn()
Gets the generic property definition.
|
IElementPropertyDefn |
getPropertyDefn()
Gets the property definition.
|
protected java.lang.Object |
getRawValue()
Gets the value stored in the memory directly.
|
boolean |
isReadOnly()
Checks whether a value is read-only in the property sheet.
|
boolean |
isVisible()
Checks whether a value is visible in the property sheet.
|
void |
removeItem(int posn)
Removes an item from a list property or member.
|
void |
setValue(java.lang.Object value)
Sets the value of a property or member to the object given.
|
addItem, clearValue, get, getAt, getChoices, getDefaultUnit, getDisplayValue, getFloatValue, getIntValue, getItems, getListValue, getNumberValue, getStringValue, getTypeCode, getValue, indexOf, insertItem, isList, iterator, moveItem, removeItem, removeItems, replaceItem, setFloatValue, setIntValue, setNumberValue, setStringValuegetReferencegetDesign, getElement, getElementHandle, getModuleprotected org.eclipse.birt.report.model.core.StructureContext memberContext
public MemberHandle(StructureHandle structHandle, org.eclipse.birt.report.model.metadata.StructPropertyDefn member)
StructureIterator class.structHandle - a handle to the structuremember - definition of the member within the structurepublic IPropertyDefn getDefn()
SimpleValueHandlegetDefn 在类中 SimpleValueHandleprotected java.lang.Object getRawValue()
SimpleValueHandlegetRawValue 在类中 SimpleValueHandlepublic void setValue(java.lang.Object value)
throws SemanticException
SimpleValueHandlenull, then the value is cleared.setValue 在类中 SimpleValueHandlevalue - The new value.SemanticException - If the value is not valid for the property or member.SimpleValueHandle.setIntValue(int),
SimpleValueHandle.setStringValue(java.lang.String),
SimpleValueHandle.setFloatValue(double),
SimpleValueHandle.setNumberValue(java.math.BigDecimal),
SimpleValueHandle.clearValue()public void removeItem(int posn)
throws PropertyValueException
SimpleValueHandleremoveItem 在类中 SimpleValueHandleposn - The position of the item to remove.PropertyValueException - If the property is not a list property.public void addItem(java.lang.Object item)
throws SemanticException
SimpleValueHandleaddItem 在类中 SimpleValueHandleitem - The new item to add.SemanticException - If the property is not a list property, or if the the value
of the item is incorrect.public IElementPropertyDefn getPropertyDefn()
ValueHandlegetPropertyDefn 在类中 ValueHandlepublic org.eclipse.birt.report.model.core.StructureContext getContext()
ValueHandlegetContext 在类中 ValueHandlepublic boolean isReadOnly()
SimpleValueHandleisReadOnly 在类中 SimpleValueHandletrue if it is read-only. Otherwise
false.public boolean isVisible()
SimpleValueHandleisVisible 在类中 SimpleValueHandletrue if it is visible. Otherwise false.Copyright © 2008 Actuate Corp. All rights reserved.