You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2009/09/22 09:56:17 UTC
[jira] Created: (PIVOT-305) Renderers should be passed index/path
Renderers should be passed index/path
-------------------------------------
Key: PIVOT-305
URL: https://issues.apache.org/jira/browse/PIVOT-305
Project: Pivot
Issue Type: Improvement
Components: wtk
Reporter: Sandro Martini
Priority: Minor
ListView and TableView renderers would be passed the item/row index, and TreeView's renderer would be passed the row index as well as the node's path.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Resolved: (PIVOT-305) Renderers should be passed
index/path
Posted by Sandro Martini <sa...@gmail.com>.
Hi Todd,
sorry, a last question on this subject :-) :
> Yep - just check (node instanceof List<?>).
suppose I'd have a big Tree, where data is loaded on-demand (the user
clicks on a tree node).
In this case, probably for any node of the current level i know the
type (leaf or not), but without clicking it (or better, expanding it)
forcing a data load, I'll have its children elements null.
The suggested approach, could work also in this case ?
Thanks,
Sandro
Re: [jira] Resolved: (PIVOT-305) Renderers should be passed
index/path
Posted by Sandro Martini <sa...@gmail.com>.
Great !
Thanks,
Sandro
Re: [jira] Resolved: (PIVOT-305) Renderers should be passed
index/path
Posted by Todd Volkert <tv...@gmail.com>.
Yep - just check (node instanceof List<?>).
-T
On Tue, Oct 6, 2009 at 5:19 AM, Sandro Martini <sa...@gmail.com>wrote:
> Hi Todd,
> thanks for this feature.
>
> With this will it be possible to know the node (passed to the
> renderer) if it's a Leaf or not ?
> With this info I could handle it in a different way, like coloring
> rows depending if they are leaf or not, and the node level (taken from
> the path i suppose).
>
> Thanks again,
> Sandro
>
Re: [jira] Resolved: (PIVOT-305) Renderers should be passed
index/path
Posted by Sandro Martini <sa...@gmail.com>.
Hi Todd,
thanks for this feature.
With this will it be possible to know the node (passed to the
renderer) if it's a Leaf or not ?
With this info I could handle it in a different way, like coloring
rows depending if they are leaf or not, and the node level (taken from
the path i suppose).
Thanks again,
Sandro
[jira] Resolved: (PIVOT-305) Renderers should be passed index/path
Posted by "Todd Volkert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Volkert resolved PIVOT-305.
--------------------------------
Resolution: Fixed
> Renderers should be passed index/path
> -------------------------------------
>
> Key: PIVOT-305
> URL: https://issues.apache.org/jira/browse/PIVOT-305
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Reporter: Sandro Martini
> Assignee: Todd Volkert
> Priority: Minor
> Fix For: 1.4
>
>
> ListView and TableView renderers would be passed the item/row index, and TreeView's renderer would be passed the row index as well as the node's path.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-305) Renderers should be passed index/path
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-305:
-----------------------------
Fix Version/s: 1.4
> Renderers should be passed index/path
> -------------------------------------
>
> Key: PIVOT-305
> URL: https://issues.apache.org/jira/browse/PIVOT-305
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Reporter: Sandro Martini
> Priority: Minor
> Fix For: 1.4
>
>
> ListView and TableView renderers would be passed the item/row index, and TreeView's renderer would be passed the row index as well as the node's path.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (PIVOT-305) Renderers should be passed index/path
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown reassigned PIVOT-305:
--------------------------------
Assignee: Todd Volkert
ListView.ItemRenderer and TableView.CellRenderer have been updated. Re-assigning to Todd for TreeView.NodeRenderer.
> Renderers should be passed index/path
> -------------------------------------
>
> Key: PIVOT-305
> URL: https://issues.apache.org/jira/browse/PIVOT-305
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Reporter: Sandro Martini
> Assignee: Todd Volkert
> Priority: Minor
> Fix For: 1.4
>
>
> ListView and TableView renderers would be passed the item/row index, and TreeView's renderer would be passed the row index as well as the node's path.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-305) Renderers should be passed index/path
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759209#action_12759209 ]
Greg Brown commented on PIVOT-305:
----------------------------------
TableView renderers should also be passed the column index.
> Renderers should be passed index/path
> -------------------------------------
>
> Key: PIVOT-305
> URL: https://issues.apache.org/jira/browse/PIVOT-305
> Project: Pivot
> Issue Type: Improvement
> Components: wtk
> Reporter: Sandro Martini
> Priority: Minor
> Fix For: 1.4
>
>
> ListView and TableView renderers would be passed the item/row index, and TreeView's renderer would be passed the row index as well as the node's path.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.