blob: 9721efa3ffca0dc7430b74660ec8e6f0f2d29cf8 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN">
<html>
<head>
<title>Extended item Element (Eclipse BIRT ROM Documentation)</title>
<link rel="stylesheet" href="../style/style.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p class="title">Eclipse BIRT Report Object Model (ROM)</p>
<p class="subtitle">ExtendedItem Element</p>
<h1>Element Overview</h1>
<div class="section-text">
Represents an extended item, provide BIRT extenion capability.</div>
<h3>Details</h3>
<table class="detail-table">
<tr><td>Display Name:</td>
<td>Extended item</td></tr>
<tr><td>Since:</td>
<td>1.0</td></tr>
<tr><td>XML Element:</td>
<td><code>extended-item</code></td></tr>
<tr><td>Extends:</td>
<td><a href="ReportItem.html">ReportItem</a></td></tr>
<tr><td>Extendable:</td>
<td>Yes</td></tr>
<tr><td>Abstract:</td>
<td>No</td></tr>
<tr><td>Name Space:</td>
<td>Report Items</td></tr>
<tr><td>Name Requirement:</td>
<td>Optional</td></tr>
<tr><td>Allows User Properties:</td>
<td>Yes</td></tr>
<tr><td>Has Style:</td>
<td>Yes</td></tr>
<tr><td>Default Style:</td>
<td><a href="../styles.html#extended-item">extended-item</a></td></tr>
</table>
<h3>Property Summary</h3>
<dl class="section-text">
<dt><a href="#Property-altText">altText</a></dt>
<dd></dd>
<dt><a href="#Property-altTextID">altTextID</a></dt>
<dd></dd>
<dt><a href="#Property-extensionName">extensionName</a></dt>
<dd>A unique extension name to identify the extension</dd>
<dt><a href="#Property-filter">filter</a></dt>
<dd>A list of filter conditions that can be applied to the extended item</dd>
</dl>
<h3>Method Summary</h3>
<dl class="section-text">
<dt><a href="#Method-onCreate">onCreate</a></dt>
<dd>Script executed when the element is created in the Factory.</dd>
<dt><a href="#Method-onPageBreak">onPageBreak</a></dt>
<dd></dd>
<dt><a href="#Method-onPrepare">onPrepare</a></dt>
<dd>It is for a script startup phase. No data binding yet. The design of an element can be changed here.</dd>
<dt><a href="#Method-onRender">onRender</a></dt>
<dd>Script executed when the element is prepared for rendering in the Presentation engine.</dd>
</dl>
<h3>Inherited Properties</h3>
<p class="section-text">
<a href="ReportItem.html#Property-bookmark">bookmark</a>,
<a href="ReportItem.html#Property-boundDataColumns">boundDataColumns</a>,
<a href="ReportElement.html#Property-comments">comments</a>,
<a href="ReportItem.html#Property-cube">cube</a>,
<a href="DesignElement.html#Property-customXml">customXml</a>,
<a href="ReportItem.html#Property-dataBindingRef">dataBindingRef</a>,
<a href="ReportItem.html#Property-dataSet">dataSet</a>,
<a href="ReportElement.html#Property-displayName">displayName</a>,
<a href="ReportElement.html#Property-displayNameID">displayNameID</a>,
<a href="ReportElement.html#Property-eventHandlerClass">eventHandlerClass</a>,
<a href="ReportElement.html#Property-extends">extends</a>,
<a href="ReportItem.html#Property-height">height</a>,
<a href="ReportElement.html#Property-name">name</a>,
<a href="ReportItem.html#Property-paramBindings">paramBindings</a>,
<a href="DesignElement.html#Property-propertyMasks">propertyMasks</a>,
<a href="ReportItem.html#Property-refTemplateParameter">refTemplateParameter</a>,
<a href="ReportItem.html#Property-style">style</a>,
<a href="ReportItem.html#Property-toc">toc</a>,
<a href="DesignElement.html#Property-userProperties">userProperties</a>,
<a href="ReportElement.html#Property-viewAction">viewAction</a>,
<a href="ReportItem.html#Property-visibility">visibility</a>,
<a href="ReportItem.html#Property-width">width</a>,
<a href="ReportItem.html#Property-x">x</a>,
<a href="ReportItem.html#Property-y">y</a>,
<a href="ReportItem.html#Property-zIndex">zIndex</a>
</p>
<h3>Style Properties</h3>
<p class="section-text">
<a href="Style.html#Property-backgroundAttachment">backgroundAttachment</a>,
<a href="Style.html#Property-backgroundColor">backgroundColor</a>,
<a href="Style.html#Property-backgroundImage">backgroundImage</a>,
<a href="Style.html#Property-backgroundPositionX">backgroundPositionX</a>,
<a href="Style.html#Property-backgroundPositionY">backgroundPositionY</a>,
<a href="Style.html#Property-backgroundRepeat">backgroundRepeat</a>,
<a href="Style.html#Property-borderBottomColor">borderBottomColor</a>,
<a href="Style.html#Property-borderBottomStyle">borderBottomStyle</a>,
<a href="Style.html#Property-borderBottomWidth">borderBottomWidth</a>,
<a href="Style.html#Property-borderLeftColor">borderLeftColor</a>,
<a href="Style.html#Property-borderLeftStyle">borderLeftStyle</a>,
<a href="Style.html#Property-borderLeftWidth">borderLeftWidth</a>,
<a href="Style.html#Property-borderRightColor">borderRightColor</a>,
<a href="Style.html#Property-borderRightStyle">borderRightStyle</a>,
<a href="Style.html#Property-borderRightWidth">borderRightWidth</a>,
<a href="Style.html#Property-borderTopColor">borderTopColor</a>,
<a href="Style.html#Property-borderTopStyle">borderTopStyle</a>,
<a href="Style.html#Property-borderTopWidth">borderTopWidth</a>,
<a href="Style.html#Property-canShrink">canShrink</a>,
<a href="Style.html#Property-color">color</a>,
<a href="Style.html#Property-dateFormat">dateFormat</a>,
<a href="Style.html#Property-dateTimeFormat">dateTimeFormat</a>,
<a href="Style.html#Property-display">display</a>,
<a href="Style.html#Property-fontFamily">fontFamily</a>,
<a href="Style.html#Property-fontSize">fontSize</a>,
<a href="Style.html#Property-fontStyle">fontStyle</a>,
<a href="Style.html#Property-fontVariant">fontVariant</a>,
<a href="Style.html#Property-fontWeight">fontWeight</a>,
<a href="Style.html#Property-highlightRules">highlightRules</a>,
<a href="Style.html#Property-letterSpacing">letterSpacing</a>,
<a href="Style.html#Property-lineHeight">lineHeight</a>,
<a href="Style.html#Property-mapRules">mapRules</a>,
<a href="Style.html#Property-marginBottom">marginBottom</a>,
<a href="Style.html#Property-marginLeft">marginLeft</a>,
<a href="Style.html#Property-marginRight">marginRight</a>,
<a href="Style.html#Property-marginTop">marginTop</a>,
<a href="Style.html#Property-masterPage">masterPage</a>,
<a href="Style.html#Property-numberAlign">numberAlign</a>,
<a href="Style.html#Property-numberFormat">numberFormat</a>,
<a href="Style.html#Property-orphans">orphans</a>,
<a href="Style.html#Property-paddingBottom">paddingBottom</a>,
<a href="Style.html#Property-paddingLeft">paddingLeft</a>,
<a href="Style.html#Property-paddingRight">paddingRight</a>,
<a href="Style.html#Property-paddingTop">paddingTop</a>,
<a href="Style.html#Property-pageBreakAfter">pageBreakAfter</a>,
<a href="Style.html#Property-pageBreakBefore">pageBreakBefore</a>,
<a href="Style.html#Property-pageBreakInside">pageBreakInside</a>,
<a href="Style.html#Property-showIfBlank">showIfBlank</a>,
<a href="Style.html#Property-stringFormat">stringFormat</a>,
<a href="Style.html#Property-textAlign">textAlign</a>,
<a href="Style.html#Property-textIndent">textIndent</a>,
<a href="Style.html#Property-textLineThrough">textLineThrough</a>,
<a href="Style.html#Property-textOverline">textOverline</a>,
<a href="Style.html#Property-textTransform">textTransform</a>,
<a href="Style.html#Property-textUnderline">textUnderline</a>,
<a href="Style.html#Property-timeFormat">timeFormat</a>,
<a href="Style.html#Property-verticalAlign">verticalAlign</a>,
<a href="Style.html#Property-whiteSpace">whiteSpace</a>,
<a href="Style.html#Property-widows">widows</a>,
<a href="Style.html#Property-wordSpacing">wordSpacing</a>
</p>
<h3>Description</h3>
<div class="section-text">
Represents an extended item element. The extended report item
allows third-party developers to create report items that work within BIRT
virtually identically to BIRT-defined items.
<p>Extended items can use the user-properties discussed above to define properties.
Extended items are defined in a Java plug-in that contributes behavior to the Eclipse
Report Developer, to the Factory and to the Presentation Engine.
<p>The extended item can fully participate with the other BIRT extension facilities,
meaning that report developers can add properties and scripts to an extended item,
providing a very powerful way to create application-specific functionality.
An extended item is defined by a plug-in. The plug-in is specific to BIRT,
and is different from an Eclipse plug-in. Each item plug-in has four parts:
<ul>
<li>Design: handles the model that describes the report item.
<li>User Interface: the UI displayed for the item. This is in the form of an
Eclipse plug-in.
<li>Factory: how to gather the data for the extended item, and compute its
default size in the Factory.
<li>Presentation: how to render the extended item when rendering the report
to HTML, PDF or other formats.
</ul></div>
<h1>Property Detail</h1>
<h2><a name="Property-altText">altText Property</a></h2>
<p class="section-text"></p>
<h3>Details</h3>
<table class="detail-table">
<tr><td>Type:</td>
<td><a href="../types.html#string">string</a></td></tr>
<tr><td>Since:</td>
<td>2.1</td></tr>
<tr><td>Required:</td>
<td>No</td></tr>
<tr><td>Display Name:</td>
<td>Alternative text</td></tr>
<tr><td>JavaScript Type:</td>
<td></td></tr>
<tr><td>Default Value:</td>
<td>None</td></tr>
<tr><td>Inherited:</td>
<td>Yes</td></tr>
<tr><td>Runtime Settable:</td>
<td>No</td></tr>
<tr><td>Property Sheet Visibility:</td>
<td>Visible</td></tr>
<tr><td>Property Sheet Group:</td>
<td>Top</td></tr>
</table>
<hr>
<h2><a name="Property-altTextID">altTextID Property</a></h2>
<p class="section-text"></p>
<h3>Details</h3>
<table class="detail-table">
<tr><td>Type:</td>
<td><a href="../types.html#resourceKey">resourceKey</a></td></tr>
<tr><td>Since:</td>
<td>2.1</td></tr>
<tr><td>Required:</td>
<td>No</td></tr>
<tr><td>Display Name:</td>
<td>Alternative text key</td></tr>
<tr><td>JavaScript Type:</td>
<td></td></tr>
<tr><td>Default Value:</td>
<td>None</td></tr>
<tr><td>Inherited:</td>
<td>Yes</td></tr>
<tr><td>Runtime Settable:</td>
<td>Yes</td></tr>
<tr><td>Property Sheet Visibility:</td>
<td>Visible</td></tr>
<tr><td>Property Sheet Group:</td>
<td>Top</td></tr>
</table>
<hr>
<h2><a name="Property-extensionName">extensionName Property</a></h2>
<p class="section-text">A unique extension name to identify the extension</p>
<h3>Details</h3>
<table class="detail-table">
<tr><td>Type:</td>
<td><a href="../types.html#string">string</a></td></tr>
<tr><td>Since:</td>
<td>1.0</td></tr>
<tr><td>Required:</td>
<td>No</td></tr>
<tr><td>Display Name:</td>
<td>Extension name</td></tr>
<tr><td>JavaScript Type:</td>
<td></td></tr>
<tr><td>Default Value:</td>
<td>None</td></tr>
<tr><td>Inherited:</td>
<td>Yes</td></tr>
<tr><td>Runtime Settable:</td>
<td>Yes</td></tr>
<tr><td>Property Sheet Visibility:</td>
<td>Hidden</td></tr>
<tr><td>Property Sheet Group:</td>
<td>Top</td></tr>
</table>
<h3>Description</h3>
<div class="section-text">
<p>Indicates which extension this extended item is extended from.
<p>Using this name, BIRT can get the
extension definition. The name is an internal name for an implementation of extension.</p></div>
<hr>
<h2><a name="Property-filter">filter Property</a></h2>
<p class="section-text">A list of filter conditions that can be applied to the extended item</p>
<h3>Details</h3>
<table class="detail-table">
<tr><td>Type:</td>
<td>List of <a href="../structs/FilterCondition.html">FilterCondition</a> Structures</td></tr>
<tr><td>Since:</td>
<td>2.0</td></tr>
<tr><td>Required:</td>
<td>No</td></tr>
<tr><td>Display Name:</td>
<td>Filter</td></tr>
<tr><td>JavaScript Type:</td>
<td></td></tr>
<tr><td>Default Value:</td>
<td>None</td></tr>
<tr><td>Inherited:</td>
<td>Yes</td></tr>
<tr><td>Runtime Settable:</td>
<td>No</td></tr>
<tr><td>Property Sheet Visibility:</td>
<td>Hidden</td></tr>
<tr><td>Property Sheet Group:</td>
<td>Top</td></tr>
</table>
<h3>Description</h3>
<div class="section-text">
<p>A list of filter conditions that can be applied to the extended item</p></div>
<h1>Method Detail</h1>
<h2><a name="Method-onCreate">onCreate Method</a></h2>
<p class="section-text">Script executed when the element is created in the Factory.</p>
<h3>Synopsis
</h3>
<p class="section-text"><code>None&nbsp;obj.onCreate(&nbsp;)</code></p>
<h3>Details
</h3>
<table class="detail-table">
<tr><td>Since:</td>
<td>1.0</td></tr>
<tr><td>Context:</td>
<td>factory</td></tr>
<tr><td>Arguments:</td>
<td>None</td></tr>
<tr><td>Return Type:</td>
<td>None</td></tr>
</table>
<h3>Description</h3>
<div class="section-text">
<p>Executed when the element is created in the Factory. Called after the item is created, but before
the item is saved to the report document file. See the scripting spec for additional information
about this script. Applications should perform visual customization in the on-render script instead.</p></div>
<hr>
<h2><a name="Method-onPageBreak">onPageBreak Method</a></h2>
<p class="section-text"></p>
<h3>Synopsis
</h3>
<p class="section-text"><code>None&nbsp;obj.onPageBreak(&nbsp;)</code></p>
<h3>Details
</h3>
<table class="detail-table">
<tr><td>Since:</td>
<td>2.1</td></tr>
<tr><td>Context:</td>
<td>presentation</td></tr>
<tr><td>Arguments:</td>
<td>None</td></tr>
<tr><td>Return Type:</td>
<td>None</td></tr>
</table>
<hr>
<h2><a name="Method-onPrepare">onPrepare Method</a></h2>
<p class="section-text">It is for a script startup phase. No data binding yet. The design of an element can be changed here.</p>
<h3>Synopsis
</h3>
<p class="section-text"><code>None&nbsp;obj.onPrepare(&nbsp;)</code></p>
<h3>Details
</h3>
<table class="detail-table">
<tr><td>Since:</td>
<td>2.0</td></tr>
<tr><td>Context:</td>
<td>startup</td></tr>
<tr><td>Arguments:</td>
<td>None</td></tr>
<tr><td>Return Type:</td>
<td>None</td></tr>
</table>
<h3>Description</h3>
<div class="section-text">
<p>It is for a script startup phase. No data binding yet. The design of an element can be changed here.</p></div>
<hr>
<h2><a name="Method-onRender">onRender Method</a></h2>
<p class="section-text">Script executed when the element is prepared for rendering in the Presentation engine.</p>
<h3>Synopsis
</h3>
<p class="section-text"><code>None&nbsp;obj.onRender(&nbsp;)</code></p>
<h3>Details
</h3>
<table class="detail-table">
<tr><td>Since:</td>
<td>1.0</td></tr>
<tr><td>Context:</td>
<td>presentation</td></tr>
<tr><td>Arguments:</td>
<td>None</td></tr>
<tr><td>Return Type:</td>
<td>None</td></tr>
</table>
<h3>Description</h3>
<div class="section-text">
<p>Executed when the element is prepared for rendering in the Presentation engine. Changes made to the
element are written to the target output format, but not saved to the report document file. This is the
preferred place for visual customizations.</p></div>
</body>
</html>