RPTools.net

Discussion and Support

Skip to content

It is currently Thu Jan 18, 2018 3:03 pm 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 1 post ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Wed May 06, 2009 12:35 pm
Posts: 93
 Post subject: Need Abeille help...
PostPosted: Sat May 16, 2009 7:56 pm 
I'm adding a tab to the token editing dialog in the UI because I want to support properties I'm adding to tokens in the java code.

The property I want to add is analogous to ownership -- i.e. has a setting similar to "owned by all" (All Players) plus several checkboxes to make more specific assignments if necessary.


By mimicking ownership, I got it to mostly work... though I couldn't seem to get the automatic assignment to set up an interface with my variable, the way it does with the @ownedByAll component. So that's my first question: how do I connect my new boolean variable to be automatically coordinated with my new field the way @ownedByAll is connected?


After getting things that far, I realized there were several such sets of variables I might eventually want to add. So, rather than adding yet more tabs to the UI, I decided to put them all on the single new tab, one after another in a table. I haven't added the new functionality yet -- only my one set of variables is yet implemented code-side -- but I redesigned the form to have space for the others.

Now it's not working at all.

My code is unable to find the "dummy" field (analogous to the ownershipList field in the existing ownership pane) to replace with the new component generated by the code (new CheckBoxListWithSelectable()). Instead, I'm now getting a Unable to find compName error.


From what little documentation I've found on Abeille, I'm guessing this may be a nesting problem. After all, no longer is the form I'm hunting for a unit within the sole container on the tab of the tabbed pane object (the way the ownershipList element is a field on the ownershipPanel gridView which is the sole content of that tab)... rather it is a field in one of three such gridViews, which are in turn contained together in the single gridView which is the content of the new tab.

But I cannot, after many frustrating hours, figure out how to get the right parameters in the code (EditTokenDialog.java) to make the call to replaceComponent to replace the dummy field with the one I create on the fly (the way ownershipList is replaced by the ownerList in the initOwnershipPanel() call).


So there's my second question: given that my new tab contains a grid object which in turn contains 3 grid objects, each of which in turn has a component I will want to replace... how do I do that?!


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 1 post ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman