pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Avoid "double click signal" when expanding and collapsing a branch in a TreeViewer
Date Wed, 15 Jun 2011 16:02:53 GMT
On 15 June 2011 22:50, Edvin Syse <edvin@sysedata.no> wrote:

>                    TerraTreeViewSkin skin = (TerraTreeViewSkin) getSkin();
>                    int baseNodeX = path.getLength() * (skin.getIndent() +
> skin.getSpacing());

If all you need are the 'indent' and 'spacing', they are properties of the
skin, and therefore available as styles via the TreeView.  You can avoid
casting the skin to TerraTreeViewSkin and accessing its properies directly.


In reality that doesn't really help much though, as you are still relying on
those styles being there, and also relying on the fact that they behave
exactly as they do in TerraTreeViewSkin.


View raw message