How do I use this?

The wiki isn't really much help here. Once I create a new form, how do I turn it into source code? I typed in a class name to bind the form to a class, but I don't see that it does anything.

Any suggestions?

10 comments
Comment actions Permalink

As of now, when compiling the project byte code is inserted directly into
the compiled class, so you don't see anything. It's supposed to work
automagically :)


0
Comment actions Permalink

I think you might be misunderstanding the way it works: you have to write
the class that it's bound to, it doesn't get generated for you. The idea is
that the .form file describes the layout and the bound class contains the
logic behind the form. You can declare variables in the bound class and have
them automatically populated with references to components in the layout at
construction time so you can retrieve values from fields, dynamically update
the UI, etc. Does that make it clearer for you?

Vil.

David Yazel wrote:

The wiki isn't really much help here. Once I create a new form, how do I turn it into source code? I typed in a class name to bind the form to a class, but I don't see that it does anything.

Any suggestions?


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

David Yazel wrote:

The wiki isn't really much help here. Once I create a new form, how do I turn it into source code? I typed in a class name to bind the form to a class, but I don't see that it does anything.

Any suggestions?


Upcoming build #901 has ability to switch between source code and byte
code instrumentation.

With best regards,
Vladimir Kondratyev
_____________________
JetBrains

0
Comment actions Permalink

Carlos Costa e Silva wrote:

As of now, when compiling the project byte code is inserted directly into
the compiled class, so you don't see anything. It's supposed to work
automagically :)


:(

Sometimes I have to finetune or hand-tune logic created by the GUI tools.
I have some serious questions:

1) Are the controls bound to a variable/object?
2) Is there any kind of licensing constraint if I use the GUI tool? If I
use it for an Open Source project, what would be needed to make the
application run?
3) Does this force me into an InetlliJ only solution?

With common code generators that exist with JBuilder and such, the code is
mine. I don't necessarily have to use Borland libraries to make my application
work. If the tool includes some borland specific classes, I can always swap
them out for something else without breaking the app.

0
Comment actions Permalink

Berin Loritsch wrote:

1) Are the controls bound to a variable/object?


Yes. You specify a class to bind the form to. For components on the form,
you can specify the name of a member variable that gets automatically
initialised with a reference to that component when an instance of the class
is constructed.

2) Is there any kind of licensing constraint if I use the GUI tool? If I
use it for an Open Source project, what would be needed to make the
application run?


The GUI builder itself is proprietary to JetBrains, but they have publicly
committed to open-sourcing the rest: the format of the GUI builders XML
file; the compiler tool that annotates the bound class with the GUI
initialisation code; and the small supporting framework.

3) Does this force me into an InetlliJ only solution?


At the moment, yes; in future, no.

If you want more information, it's worth searching the archives of this
group. These questions have all been covered extensively by previous
discussions.

Hope that helps,
Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

Vilya Harvey wrote:

Berin Loritsch wrote:

>> 2) Is there any kind of licensing constraint if I use the GUI tool? If I
>> use it for an Open Source project, what would be needed to make the
>> application run?


The GUI builder itself is proprietary to JetBrains, but they have
publicly committed to open-sourcing the rest: the format of the GUI
builders XML file; the compiler tool that annotates the bound class with
the GUI initialisation code; and the small supporting framework.



Please, whatever you do, choose something compatible with the ASL (that means
no GPL or derivative).

>> 3) Does this force me into an InetlliJ only solution?


At the moment, yes; in future, no.

If you want more information, it's worth searching the archives of this
group. These questions have all been covered extensively by previous
discussions.


Now I have to figure out my news browser and how to do that....


0
Comment actions Permalink


Berin Loritsch wrote:

Vilya Harvey wrote:

>> If you want more information, it's worth searching the archives of
>> this group. These questions have all been covered extensively by
>> previous discussions.


Now I have to figure out my news browser and how to do that....


You can search them from http://www.intellij.net/forums/

HTH,
Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

Vilya Harvey wrote:


Berin Loritsch wrote:

>> Vilya Harvey wrote:
>>
>>> If you want more information, it's worth searching the archives of
>>> this group. These questions have all been covered extensively by
>>> previous discussions.
>>
>>
>>
>> Now I have to figure out my news browser and how to do that....
>>


You can search them from http://www.intellij.net/forums/


can you give me a subject or something, I am pulling up a lot of cruft
that doesn't answer my license concerns, etc.

0
Comment actions Permalink

I am pulling up a lot of cruft that doesn't answer my license concerns,

etc.

It seems that your problem (and that of many others) is solved: source code
for the ui designed forms will be available with the next eap version of
idea.


0
Comment actions Permalink

Sorry, but in 977 build, it working only with previously "hand-created" class for binding :(

0

Please sign in to leave a comment.