You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by influence160 <ti...@gmail.com> on 2013/03/28 13:59:20 UTC
Re: Cell selection in TableView
This is a custom TableView for Apache Pivot that allow cells selection
https://github.com/influence160/fazet-pivot
<http://apache-pivot-users.399431.n3.nabble.com/file/n4022540/anDx3ra.png>
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Cell-selection-in-TableView-tp3339330p4022540.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Cell selection in TableView
Posted by Roger and Beth Whitcomb <Ro...@rbwhitcomb.com>.
Replace the "setText(null)" with "setText("")"
~Roger
On 2/24/14 9:47 PM, Ripgiblet wrote:
> Actually could not get it to work, maybe not compatible with current pivot...
> Maybe there has been a change to the setText class, so it throws an error on
> a null value...
>
> java.lang.IllegalArgumentException
> at org.apache.pivot.wtk.Label.setText(Label.java:127)
> at
> com.ott.fazet.wtk.content.TableViewCellRenderer.render(TableViewCellRenderer.java:61)
> at
> com.ott.fazet.wtk.skin.terra.TerraFazetTableViewSkin.calculateFixedRowHeight(TerraFazetTableViewSkin.java:311)
> at
> com.ott.fazet.wtk.skin.terra.TerraFazetTableViewSkin.layout(TerraFazetTableViewSkin.java:275)
> at org.apache.pivot.wtk.Component.layout(Component.java:1992)
> at org.apache.pivot.wtk.Component.validate(Component.java:1983)
> at org.apache.pivot.wtk.Container.layout(Container.java:355)
> at org.apache.pivot.wtk.Component.validate(Component.java:1983)
> at org.apache.pivot.wtk.Container.layout(Container.java:355)
> at org.apache.pivot.wtk.Component.validate(Component.java:1983)
> at org.apache.pivot.wtk.Component.setVisible(Component.java:1592)
> at org.apache.pivot.wtk.Container.setVisible(Container.java:346)
> at
> org.apache.pivot.wtk.skin.CardPaneSkin.selectedIndexChanged(CardPaneSkin.java:787)
> at
> org.apache.pivot.wtk.CardPane$CardPaneListenerList.selectedIndexChanged(CardPane.java:52)
> at org.apache.pivot.wtk.CardPane.setSelectedIndex(CardPane.java:90)
> at
> org.apache.pivot.wtk.skin.CardPaneSkin.componentInserted(CardPaneSkin.java:659)
> at
> org.apache.pivot.wtk.Container$ContainerListenerList.componentInserted(Container.java:41)
> at org.apache.pivot.wtk.Container.insert(Container.java:167)
> at org.apache.pivot.wtk.CardPane.insert(CardPane.java:111)
> at org.apache.pivot.wtk.Container.add(Container.java:138)
> at org.apache.pivot.wtk.Container.add(Container.java:34)
> at
> org.apache.pivot.beans.BXMLSerializer.processEndElement(BXMLSerializer.java:1206)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:448)
> at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:910)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:634)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:589)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:550)
> at mrc.phoenix.TRN.TRNGUIPivot.<init>(TRNGUIPivot.java:85)
>
> I will have a look at the code, and see if I can see why it is trying to
> setText...
>
> regards,
>
>
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Cell-selection-in-TableView-tp3339330p4022889.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>
>
Re: Cell selection in TableView
Posted by Ripgiblet <ma...@mrchambers.org>.
Actually could not get it to work, maybe not compatible with current pivot...
Maybe there has been a change to the setText class, so it throws an error on
a null value...
java.lang.IllegalArgumentException
at org.apache.pivot.wtk.Label.setText(Label.java:127)
at
com.ott.fazet.wtk.content.TableViewCellRenderer.render(TableViewCellRenderer.java:61)
at
com.ott.fazet.wtk.skin.terra.TerraFazetTableViewSkin.calculateFixedRowHeight(TerraFazetTableViewSkin.java:311)
at
com.ott.fazet.wtk.skin.terra.TerraFazetTableViewSkin.layout(TerraFazetTableViewSkin.java:275)
at org.apache.pivot.wtk.Component.layout(Component.java:1992)
at org.apache.pivot.wtk.Component.validate(Component.java:1983)
at org.apache.pivot.wtk.Container.layout(Container.java:355)
at org.apache.pivot.wtk.Component.validate(Component.java:1983)
at org.apache.pivot.wtk.Container.layout(Container.java:355)
at org.apache.pivot.wtk.Component.validate(Component.java:1983)
at org.apache.pivot.wtk.Component.setVisible(Component.java:1592)
at org.apache.pivot.wtk.Container.setVisible(Container.java:346)
at
org.apache.pivot.wtk.skin.CardPaneSkin.selectedIndexChanged(CardPaneSkin.java:787)
at
org.apache.pivot.wtk.CardPane$CardPaneListenerList.selectedIndexChanged(CardPane.java:52)
at org.apache.pivot.wtk.CardPane.setSelectedIndex(CardPane.java:90)
at
org.apache.pivot.wtk.skin.CardPaneSkin.componentInserted(CardPaneSkin.java:659)
at
org.apache.pivot.wtk.Container$ContainerListenerList.componentInserted(Container.java:41)
at org.apache.pivot.wtk.Container.insert(Container.java:167)
at org.apache.pivot.wtk.CardPane.insert(CardPane.java:111)
at org.apache.pivot.wtk.Container.add(Container.java:138)
at org.apache.pivot.wtk.Container.add(Container.java:34)
at
org.apache.pivot.beans.BXMLSerializer.processEndElement(BXMLSerializer.java:1206)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:448)
at
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:910)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:634)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:589)
at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:550)
at mrc.phoenix.TRN.TRNGUIPivot.<init>(TRNGUIPivot.java:85)
I will have a look at the code, and see if I can see why it is trying to
setText...
regards,
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Cell-selection-in-TableView-tp3339330p4022889.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: Cell selection in TableView
Posted by Ripgiblet <ma...@mrchambers.org>.
I got to the bottom of this page feeling a bit depressed that this does not
exist and found your Tableview with cell selection and went Yippeee!!!
Thanks good work;]
regards,
Mark.
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Cell-selection-in-TableView-tp3339330p4022888.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.