Support for actions in GUI builder? [message #23082] |
Fri, 05 March 2004 06:14  |
Eclipse User |
|
|
|
Originally posted by: jens.ohlsson.sverige.nu
Are there any plans for supporting actions, as a complement/replacement
for implement actionPerformed, in the GUI-editor?
|
|
|
|
|
Re: Support for actions in GUI builder? [message #23519 is a reply to message #23245] |
Mon, 08 March 2004 16:37  |
Eclipse User |
|
|
|
Originally posted by: lee.leemeador.com
Some thoughts, perhaps duplicating prior ones.
How about selecting an existing class by name and generating a 'new' one
with or without an anonymous inner subclass.
Or let the user pop up the 'new class' box from there with some limits on
the allowable parent classes. Then it could generate a top-level class or
inner class to handle the Action responsibilites.
Joe Winchester wrote:
> Jenson,
> > Are there any plans for supporting actions, as a complement/replacement
> > for implement actionPerformed, in the GUI-editor?
> Question - how would you like to see this done ?
> Is this acceptable:
> select the action property - the cell editor has a ... button that opens a
> dialog
> The dialog shows you all compatible classes in the class path, i.e.
> implementors of javax.swing.Action. The list would be filtered to exclude
> abstract classes or those without a null constructor. You could choose
> one and then we'd do all the magic to add a variable, new it up, and set
> the property value.
> We could do something with the JavaBeans tree viewer as well to show that
> there was an action associated with the JButton.
> Or...
> do you want instead us to code generate something for you when the events >
> actionPerformed menu is chosen such as an implementation of an Action inner
> class that is added as a property (instead of the anonymous ActionListener
> we currently create).
> As Gili said nothing is in plan, but I'm keen to hear your design ideas so
> once we have a buzailla feature request we can size up what kind of
> solution you're looking for.
> Best regards,
> Joe
|
|
|
|
Re: Support for actions in GUI builder? [message #583599 is a reply to message #23082] |
Fri, 05 March 2004 18:53  |
Eclipse User |
|
|
|
Jenson,
> Are there any plans for supporting actions, as a complement/replacement
> for implement actionPerformed, in the GUI-editor?
Question - how would you like to see this done ?
Is this acceptable:
select the action property - the cell editor has a ... button that opens a
dialog
The dialog shows you all compatible classes in the class path, i.e.
implementors of javax.swing.Action. The list would be filtered to exclude
abstract classes or those without a null constructor. You could choose
one and then we'd do all the magic to add a variable, new it up, and set
the property value.
We could do something with the JavaBeans tree viewer as well to show that
there was an action associated with the JButton.
Or...
do you want instead us to code generate something for you when the events >
actionPerformed menu is chosen such as an implementation of an Action inner
class that is added as a property (instead of the anonymous ActionListener
we currently create).
As Gili said nothing is in plan, but I'm keen to hear your design ideas so
once we have a buzailla feature request we can size up what kind of
solution you're looking for.
Best regards,
Joe
|
|
|
Re: Support for actions in GUI builder? [message #583778 is a reply to message #23245] |
Mon, 08 March 2004 16:37  |
Eclipse User |
|
|
|
Originally posted by: lee.leemeador.com
Some thoughts, perhaps duplicating prior ones.
How about selecting an existing class by name and generating a 'new' one
with or without an anonymous inner subclass.
Or let the user pop up the 'new class' box from there with some limits on
the allowable parent classes. Then it could generate a top-level class or
inner class to handle the Action responsibilites.
Joe Winchester wrote:
> Jenson,
> > Are there any plans for supporting actions, as a complement/replacement
> > for implement actionPerformed, in the GUI-editor?
> Question - how would you like to see this done ?
> Is this acceptable:
> select the action property - the cell editor has a ... button that opens a
> dialog
> The dialog shows you all compatible classes in the class path, i.e.
> implementors of javax.swing.Action. The list would be filtered to exclude
> abstract classes or those without a null constructor. You could choose
> one and then we'd do all the magic to add a variable, new it up, and set
> the property value.
> We could do something with the JavaBeans tree viewer as well to show that
> there was an action associated with the JButton.
> Or...
> do you want instead us to code generate something for you when the events >
> actionPerformed menu is chosen such as an implementation of an Action inner
> class that is added as a property (instead of the anonymous ActionListener
> we currently create).
> As Gili said nothing is in plan, but I'm keen to hear your design ideas so
> once we have a buzailla feature request we can size up what kind of
> solution you're looking for.
> Best regards,
> Joe
|
|
|
Powered by
FUDForum. Page generated in 0.04044 seconds