Thank you, thank you, thank you :-)

On Wed, 5 Aug 2009 11:08:26 am Todd Volkert wrote:
> You first load your WTKX file, then you bind the objects loaded by the
> serializer to your object by calling bind.  The process generally goes
> something like this (off the top of my head, but the gist is right):
> public class Foo implements Application {
>     private Window window;
>
>     private @WTKX PushButton button;
>     private @WTKX CardPane cardPane;
>     private @WTKX(id="myTablePane") TablePane tablePane;
>
>     @Override
>     public void startup(Map<String, String> startupProperties) throws
> Exception {
>         WTKXSerializer wtkxSerializer = new WTKXSerializer();
>         Window window = (Window)wtkxSerializer.readObject(this,
> "foo.wtkx"); wtkxSerializer.bind(this, Foo.class);
>
>         // Now I can use the variables annotated with @WTKX
>         ...
>     }
>
>     ...
> }
>
> In that example, you'd expect to see <PushButton wtkx:id="button">,
> <CardPane wtkx:id="cardPane">, and <TablePane wtkx:id="tablePane">
>
> -T
>
> On Tue, Aug 4, 2009 at 8:31 PM, Scott Lanham <[email protected]> wrote:
> > Hi,
> >
> > I have looked at the API docs but am having trouble working out how to
> > call WTKXSerializer.bind.
> >
> > Any help is appreciated.
> >
> > Thanks,
> >
> > Scott.

Reply via email to