public class MemberHandle extends SimpleValueHandle
StructureHandle
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.birt.report.model.core.StructureContext |
memberContext
The context to the member itself.
|
elementHandle
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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, setStringValue
getReference
getDesign, getElement, getElementHandle, getModule
protected 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()
SimpleValueHandle
getDefn
in class SimpleValueHandle
protected java.lang.Object getRawValue()
SimpleValueHandle
getRawValue
in class SimpleValueHandle
public void setValue(java.lang.Object value) throws SemanticException
SimpleValueHandle
null
, then the value is cleared.setValue
in class SimpleValueHandle
value
- 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
SimpleValueHandle
removeItem
in class SimpleValueHandle
posn
- 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
SimpleValueHandle
addItem
in class SimpleValueHandle
item
- 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()
ValueHandle
getPropertyDefn
in class ValueHandle
public org.eclipse.birt.report.model.core.StructureContext getContext()
ValueHandle
getContext
in class ValueHandle
public boolean isReadOnly()
SimpleValueHandle
isReadOnly
in class SimpleValueHandle
true
if it is read-only. Otherwise
false
.public boolean isVisible()
SimpleValueHandle
isVisible
in class SimpleValueHandle
true
if it is visible. Otherwise false
.Copyright © 2008 Actuate Corp. All rights reserved.