pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marianciu <marian...@rocketmail.com>
Subject Re: center the text of header columns of tableView
Date Thu, 11 Apr 2013 14:13:22 GMT
Hello Roger

I've used "headerDataRenderer" and obtain similar exception:
An error occurred at line number 89 in file
/E:/esculapus/target/classes/pl/marianciu/esculapus/view/prime/basic.bxml:
org.apache.pivot.serialization.SerializationException: "headerDataRenderer"
is not a valid property of element <TableViewHeader>.
	at
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:792)
	at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
	at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:630)

my fragment bxml file:
<Border>

	<ScrollPane horizontalScrollBarPolicy="fill">
		<TableView bxml:id="tabelePatient">
			<columns>



				<TableView.Column name="name" width="1*"
					headerData="Nazwa">
					<cellRenderer>
						<SimpleColumn xmlns="pl.marianciu.esculapus.helper.table.column" />
					</cellRenderer>
				</TableView.Column>
				<TableView.Column name="pesel" width="1*"
					headerData="PESEL">
					<cellRenderer>
						<SimpleColumn xmlns="pl.marianciu.esculapus.helper.table.column" />
					</cellRenderer>
				</TableView.Column>

			</columns>

			<collections:HashMap name="Marcin Wazniak" pesel="81818101012" />
			<collections:HashMap name="Franek Podlaha" pesel="85121903402" />
			<collections:HashMap name="Jarek Twardy" pesel="81010903587" />

		</TableView>
		<columnHeader>
			<TableViewHeader tableView="$tabelePatient">
				<headerDataRenderer>
					<content:TableViewHeaderDataRenderer
						styles="{horizontalAlignment:'center'}"
xmlns:content="org.apache.pivot.wtk.content" />
				</headerDataRenderer>
			</TableViewHeader>
		</columnHeader>

	</ScrollPane>
</Border>

I've investigated class TableViewHeader, and don't see inside variable
headerDataRenderer, but this variable is in TableView. Maybe this is
problem? Or is structure in my bxml file wrong?

Br
Marcin




--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/center-the-text-of-header-columns-of-tableView-tp1022087p4022566.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message