|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.DesignElementHandle
org.eclipse.birt.report.model.api.ReportElementHandle
org.eclipse.birt.report.model.api.ReportItemHandle
org.eclipse.birt.report.model.api.DataItemHandle
public class DataItemHandle
Represents a data item element. A data item has an action, value expression and help text.
DataItem
Field Summary |
---|
Fields inherited from class org.eclipse.birt.report.model.api.ReportItemHandle |
---|
DATABINDING_TYPE_DATA, DATABINDING_TYPE_NONE, DATABINDING_TYPE_REPORT_ITEM_REF |
Fields inherited from class org.eclipse.birt.report.model.api.ReportElementHandle |
---|
element |
Fields inherited from class org.eclipse.birt.report.model.api.DesignElementHandle |
---|
module |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IDataItemModel |
---|
ACTION_PROP, HELP_TEXT_KEY_PROP, HELP_TEXT_PROP, RESULT_SET_COLUMN_PROP, VALUE_EXPR_PROP |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IReportItemModel |
---|
ACL_EXPRESSION_PROP, ALLOW_EXPORT_PROP, BOOKMARK_PROP, BOUND_DATA_COLUMNS_PROP, CASCADE_ACL_PROP, CUBE_PROP, DATA_BINDING_REF_PROP, DATA_SET_PROP, HEIGHT_PROP, MULTI_VIEWS_PROP, ON_CREATE_METHOD, ON_PAGE_BREAK_METHOD, ON_PREPARE_METHOD, ON_RENDER_METHOD, PARAM_BINDINGS_PROP, TOC_PROP, VISIBILITY_PROP, WIDTH_PROP, X_PROP, Y_PROP, Z_INDEX_PROP |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IStyledElementModel |
---|
STYLE_PROP |
Fields inherited from interface org.eclipse.birt.report.model.api.elements.IReportItemMethodContext |
---|
ON_CREATE_CONTEXT, ON_PREPARE_CONTEXT, ON_RENDER_CONTEXT |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel |
---|
COMMENTS_PROP, CUSTOM_XML_PROP, DISPLAY_NAME_ID_PROP, DISPLAY_NAME_PROP, EVENT_HANDLER_CLASS_PROP, EXTENDS_PROP, FULL_LABEL, ID_SUFFIX, NAME_PROP, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP |
Constructor Summary | |
---|---|
DataItemHandle(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Constructs a handle of the data item with the given design and a data item. |
Method Summary | |
---|---|
ActionHandle |
getActionHandle()
Returns a handle to work with the action property, action is a structure that defines a hyperlink. |
java.lang.String |
getDistinct()
Deprecated. by the drop function of Cell element. |
java.lang.String |
getDistinctReset()
Deprecated. by the drop function of Cell element. |
java.lang.String |
getHelpText()
Returns the help text of this data item. |
java.lang.String |
getHelpTextKey()
Returns the help text resource key of this data item. |
java.lang.String |
getResultSetColumn()
Gets the value of the result set column name property on this data item. |
java.lang.String |
getResultSetExpression()
Looks the column name from the data binding element that is nearest to this data item. |
java.lang.String |
getValueExpr()
Deprecated. As of BIRT version 2.1.0, replaced by getResultSetColumn( ) |
ActionHandle |
setAction(Action action)
Set an action on the image. |
void |
setDistinct(java.lang.String distinct)
Deprecated. by the drop function of Cell element. |
void |
setDistinctReset(java.lang.String value)
Deprecated. by the drop function of Cell element. |
void |
setHelpText(java.lang.String value)
Sets the help text of this data item. |
void |
setHelpTextKey(java.lang.String value)
Sets the resource key of the help text of this data item. |
void |
setResultSetColumn(java.lang.String columnName)
Sets the value of the column name property. |
void |
setValueExpr(java.lang.String expr)
Deprecated. As of BIRT version 2.1.0, replaced by setResultSetColumn(String columnName) |
Methods inherited from class org.eclipse.birt.report.model.api.ReportElementHandle |
---|
getComments, getCustomXml, getDisplayName, getDisplayNameKey, getElement, getPropertyMask, isValidLayoutForCompoundElement, isValidReferenceForCompoundElement, propertyMaskIterator, setComments, setCustomXml, setDisplayName, setDisplayNameKey, setPropertyMask |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataItemHandle(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
module
- the moduleelement
- the model representation of the elementMethod Detail |
---|
public ActionHandle getActionHandle()
null
if
the action has not been set on the data item.ActionHandle
public ActionHandle setAction(Action action) throws SemanticException
action
- new action to be set on the image, it represents a bookmark
link, hyperlink, and drill through etc.
null
if
the action has not been set on the image.
SemanticException
- if member of the action is not valid.public java.lang.String getDistinct()
public void setDistinct(java.lang.String distinct) throws SemanticException
DesignChoiceConstants
and is one of these:
distinct
- the distinct value as a string
SemanticException
- If the property is locked or the value is not one of the
above.public java.lang.String getDistinctReset()
public void setDistinctReset(java.lang.String value) throws SemanticException
value
- the distinct-set value as a string
SemanticException
- If the property is locked.public java.lang.String getValueExpr()
#getResultSetExpression()} for the shortcut function to get
the value expression
public void setValueExpr(java.lang.String expr) throws SemanticException
expr
- the expression to set
SemanticException
- If the property is locked.
SemanticException
public java.lang.String getHelpText()
public void setHelpText(java.lang.String value) throws SemanticException
value
- the help text
SemanticException
- if the property is locked.public java.lang.String getHelpTextKey()
public void setHelpTextKey(java.lang.String value) throws SemanticException
value
- the resource key of the help text
SemanticException
- if the property is locked.public java.lang.String getResultSetExpression()
SemanticException
public java.lang.String getResultSetColumn()
public void setResultSetColumn(java.lang.String columnName) throws SemanticException
columnName
- the value to set.
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |