pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger L. Whitcomb" <Roger.Whitc...@actian.com>
Subject RE: How to block UI input to a disabled/busy TreeNode
Date Wed, 08 Aug 2012 23:16:17 GMT
Doh!  Try this instead:
	public MyTree() {
		setTreeData(new ArrayList<Object>());
		setSkin(new MyTreeSkin());
	}

~Roger

-----Original Message-----
From: Josh R [mailto:tripanonyr@gmail.com] 
Sent: Wednesday, August 08, 2012 3:49 PM
To: user@pivot.apache.org
Subject: Re: How to block UI input to a disabled/busy TreeNode

On Wed, Aug 8, 2012 at 6:46 PM, Roger L. Whitcomb <Roger.Whitcomb@actian.com> wrote:
> Try just:
>         public MyTree() {
>                 super();
>                 setSkin(new MyTreeSkin());
>         }
>
> And then you don't need any theme code in your startup method.
>

I tried that earlier and got 'skin is already installed' exception.

java.lang.IllegalStateException: Skin is already installed.
	at org.apache.pivot.wtk.Component.setSkin(Component.java:764)
	at org.apache.pivot.wtk.TreeView.setSkin(TreeView.java:941)
	at com.foobar.proto.main_proto$MyTree.<init>(main_proto.java:89)
	at com.foobar.proto.main_proto.create_hosts_tree(main_proto.java:662)
	at com.foobar.proto.main_proto.startup(main_proto.java:834)


thanks
Mime
View raw message