pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh R <tripano...@gmail.com>
Subject Re: How to block UI input to a disabled/busy TreeNode
Date Thu, 09 Aug 2012 00:27:44 GMT
On Wed, Aug 8, 2012 at 8:12 PM, Roger L. Whitcomb
<Roger.Whitcomb@actian.com> wrote:
> Okay, I think the thing to do is this:
>
> myApp.startup(...) {
> ...
>         Theme.getTheme().set(TreeView.class, MyTreeSkin.class);
> ...
>
> Then you don't need a MyTreeview class at all, and when you instantiate a TreeView it
will automatically get the MyTreeSkin as its skin....
>
> See if that works.

Nope.

java.lang.IllegalArgumentException: java.lang.InstantiationException:
com.foobar.proto.main_proto$MyTreeSkin
	at org.apache.pivot.wtk.Component.installSkin(Component.java:834)
	at org.apache.pivot.wtk.TreeView.<init>(TreeView.java:924)
	at org.apache.pivot.wtk.TreeView.<init>(TreeView.java:908)
	at com.foobar.proto.main_proto.create_hosts_tree(main_proto.java:665)
	at com.foobar.proto.main_proto.startup(main_proto.java:837)


>
> ~Roger

thanks

Mime
View raw message