You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2007/10/23 16:23:51 UTC

[JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
-----------------------------------------------------------------------------

                 Key: CAY-900
                 URL: https://issues.apache.org/cayenne/browse/CAY-900
             Project: Cayenne
          Issue Type: Task
          Components: CayenneModeler GUI
    Affects Versions: 3.0
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.0


This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:

ObjEntity:

   two new tabs "Callbacks" and "Listeners"

DataMap: 

   place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"


"Listeners" tab would consist of a JTable with the following columns:


* "Class Name" - a listener class
* "Method" - a callback method name
* "Callback Type" (a dropdown with types of callbacks)



"Callbacks" tab would consist of a JTable with the following columns:


* "Method" - a callback method name
* "Callback Type" (a dropdown with types of callbacks)


Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)

Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Tore Halset <ha...@pvv.ntnu.no>.
On Oct 24, 2007, at 11:52 , Aristedes Maniatis wrote:

>
> On 24/10/2007, at 7:19 PM, Tore Halset wrote:
>
>> Nice. Would it be possible for the merge-stuff that I am working  
>> on to determine the key for the comment value that should be  
>> merged to the database?
>
> Sorry, not 100% sure about the scope of what you are working on.  
> I've looked at it briefly a week ago, but that's all. I'm working  
> on the idea of a tag like this:
>
> <info name="keyname" value="sjdhfksdjhfksjhdf"  
> isRuntimeVisible="true" />
>
> which could be nested inside <obj-attribute> <obj-relationship> or  
> <obj-entity>, etc.

For db-* as well as obj-*?

> The keyname might be 'javadoc' or anything else really, so there  
> could be some reserved keys for various specific jobs. Is that what  
> you meant?

Yes. Some agreed keys like "db-comment", "javadoc" or whatever would  
work.

> I'm also thinking that maybe the value needs to be a CDATA to  
> accommodate multiline comments which end up (say) as javadocs.

Sounds like a good idea.

  - Tore.

Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 24/10/2007, at 7:19 PM, Tore Halset wrote:

> Nice. Would it be possible for the merge-stuff that I am working on  
> to determine the key for the comment value that should be merged to  
> the database?

Sorry, not 100% sure about the scope of what you are working on. I've  
looked at it briefly a week ago, but that's all. I'm working on the  
idea of a tag like this:

<info name="keyname" value="sjdhfksdjhfksjhdf"  
isRuntimeVisible="true" />

which could be nested inside <obj-attribute> <obj-relationship> or  
<obj-entity>, etc. The keyname might be 'javadoc' or anything else  
really, so there could be some reserved keys for various specific  
jobs. Is that what you meant?

I'm also thinking that maybe the value needs to be a CDATA to  
accommodate multiline comments which end up (say) as javadocs.


Ari Maniatis



-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8



Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Tore Halset <ha...@pvv.ntnu.no>.
On Oct 24, 2007, at 9:34 , Aristedes Maniatis wrote:

> Yes. In fact just last night I started on CAY-659 (adding arbitrary  
> key values to entities, attributes and relations). This could be  
> used for documentation, userinfo style keys, javadocs, etc.

Nice. Would it be possible for the merge-stuff that I am working on  
to determine the key for the comment value that should be merged to  
the database?

Regards,
  - Tore.


Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Andrus Adamchik <an...@objectstyle.org>.
On Oct 24, 2007, at 12:57 PM, Aristedes Maniatis wrote:

>
> On 24/10/2007, at 6:25 PM, Andrus Adamchik wrote:
>
>>> In fact just last night I started on CAY-659 (adding arbitrary  
>>> key values to entities, attributes and relations).
>>
>> Nice. Should we formally assign this issue to you in Jira?
>
> Yeah, I guess... I wasn't going to say anything till I knew that I  
> had the time to finish this sooner rather than later (I'm pretty  
> busy and expecting another child any minute now).

Wow, congrats! I guess CayenneModeler will be the last thing on your  
mind soon :-)


> But I guess this will keep me motivated. Actually I was just doing  
> it as an experiment into seeing how to tweak the modeler for the  
> much more difficult task of inheritance.

I just reassigned the issue.

Thanks
Andrus


Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 24/10/2007, at 6:25 PM, Andrus Adamchik wrote:

>> In fact just last night I started on CAY-659 (adding arbitrary key  
>> values to entities, attributes and relations).
>
> Nice. Should we formally assign this issue to you in Jira?

Yeah, I guess... I wasn't going to say anything till I knew that I  
had the time to finish this sooner rather than later (I'm pretty busy  
and expecting another child any minute now). But I guess this will  
keep me motivated. Actually I was just doing it as an experiment into  
seeing how to tweak the modeler for the much more difficult task of  
inheritance.


Ari



-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8



Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Andrus Adamchik <an...@objectstyle.org>.
On Oct 24, 2007, at 10:34 AM, Aristedes Maniatis wrote:

> In fact just last night I started on CAY-659 (adding arbitrary key  
> values to entities, attributes and relations).

Nice. Should we formally assign this issue to you in Jira?

Andrus


Re: [JIRA] Created: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 24/10/2007, at 12:23 AM, Andrus Adamchik (JIRA) wrote:

> This builds on CAY-879. We need a UI support for editing callbacks  
> and lifecycle listeners. The UI I am suggesting (although I am open  
> to other suggestions) is this:
>
> ObjEntity:
>
>    two new tabs "Callbacks" and "Listeners"

Yes. In fact just last night I started on CAY-659 (adding arbitrary  
key values to entities, attributes and relations). This could be used  
for documentation, userinfo style keys, javadocs, etc. At the entity  
level I was thinking of a new tab for that with a similar jtable  
list. So that might work together well with what you are doing. In my  
case I wasn't quite sure what to do with long values (eg. multi-line  
javadocs), but that isn't a problem for what you are doing.


> Since the order of callbacks is significant, we need a reordering  
> capability (via drag and drop? or in the worst case using up and  
> down arrows on the toolbar like the stored procedure parameters  
> table does)

Absolutely the drag and drop. From what I remember JDK1.5 is much  
better at that, so limiting to a 1.5 target might be easier there.


Ari



-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8



[JIRA] Updated: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by "Vasil Tarasevich (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasil Tarasevich updated CAY-900:
---------------------------------

    Attachment: CAY-900_modeler_4.patch

Added the following features:
1. Possible to add several callback methods in a row (untitled1....untitledN)
2. Callback type dropdown displays callback methods counter.

> Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
> -----------------------------------------------------------------------------
>
>                 Key: CAY-900
>                 URL: https://issues.apache.org/cayenne/browse/CAY-900
>             Project: Cayenne
>          Issue Type: Task
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>         Attachments: CAY-900_core.patch, CAY-900_images.zip, CAY-900_images_2.zip, CAY-900_modeler.patch, CAY-900_modeler_2.patch, CAY-900_modeler_3.patch, CAY-900_modeler_4.patch
>
>
> This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:
> ObjEntity:
>    two new tabs "Callbacks" and "Listeners"
> DataMap: 
>    place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"
> "Listeners" tab would consist of a JTable with the following columns:
> * "Class Name" - a listener class
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> "Callbacks" tab would consist of a JTable with the following columns:
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)
> Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[JIRA] Updated: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by "Vasil Tarasevich (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasil Tarasevich updated CAY-900:
---------------------------------

    Attachment: CAY-900_core.patch

small modification: new utility methods added to CallbackDescriptor and CallbackMap

> Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
> -----------------------------------------------------------------------------
>
>                 Key: CAY-900
>                 URL: https://issues.apache.org/cayenne/browse/CAY-900
>             Project: Cayenne
>          Issue Type: Task
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>         Attachments: CAY-900_core.patch
>
>
> This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:
> ObjEntity:
>    two new tabs "Callbacks" and "Listeners"
> DataMap: 
>    place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"
> "Listeners" tab would consist of a JTable with the following columns:
> * "Class Name" - a listener class
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> "Callbacks" tab would consist of a JTable with the following columns:
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)
> Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[JIRA] Updated: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by "Vasil Tarasevich (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasil Tarasevich updated CAY-900:
---------------------------------

    Attachment: CAY-900_modeler_2.patch
                CAY-900_images_2.zip

New patch according to the email comments dated 11/3/2007

> Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
> -----------------------------------------------------------------------------
>
>                 Key: CAY-900
>                 URL: https://issues.apache.org/cayenne/browse/CAY-900
>             Project: Cayenne
>          Issue Type: Task
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>         Attachments: CAY-900_core.patch, CAY-900_images.zip, CAY-900_images_2.zip, CAY-900_modeler.patch, CAY-900_modeler_2.patch
>
>
> This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:
> ObjEntity:
>    two new tabs "Callbacks" and "Listeners"
> DataMap: 
>    place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"
> "Listeners" tab would consist of a JTable with the following columns:
> * "Class Name" - a listener class
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> "Callbacks" tab would consist of a JTable with the following columns:
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)
> Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[JIRA] Updated: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by "Vasil Tarasevich (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasil Tarasevich updated CAY-900:
---------------------------------

    Attachment: CAY-900_modeler_3.patch

incremental patch for applying after "CAY-900_modeler.patch" was applied

> Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
> -----------------------------------------------------------------------------
>
>                 Key: CAY-900
>                 URL: https://issues.apache.org/cayenne/browse/CAY-900
>             Project: Cayenne
>          Issue Type: Task
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>         Attachments: CAY-900_core.patch, CAY-900_images.zip, CAY-900_images_2.zip, CAY-900_modeler.patch, CAY-900_modeler_2.patch, CAY-900_modeler_3.patch
>
>
> This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:
> ObjEntity:
>    two new tabs "Callbacks" and "Listeners"
> DataMap: 
>    place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"
> "Listeners" tab would consist of a JTable with the following columns:
> * "Class Name" - a listener class
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> "Callbacks" tab would consist of a JTable with the following columns:
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)
> Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[JIRA] Closed: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-900.
-------------------------------

    Resolution: Fixed

> Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
> -----------------------------------------------------------------------------
>
>                 Key: CAY-900
>                 URL: https://issues.apache.org/cayenne/browse/CAY-900
>             Project: Cayenne
>          Issue Type: Task
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>         Attachments: CAY-900_core.patch, CAY-900_images.zip, CAY-900_images_2.zip, CAY-900_modeler.patch, CAY-900_modeler_2.patch, CAY-900_modeler_3.patch, CAY-900_modeler_4.patch
>
>
> This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:
> ObjEntity:
>    two new tabs "Callbacks" and "Listeners"
> DataMap: 
>    place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"
> "Listeners" tab would consist of a JTable with the following columns:
> * "Class Name" - a listener class
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> "Callbacks" tab would consist of a JTable with the following columns:
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)
> Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[JIRA] Updated: (CAY-900) Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners

Posted by "Vasil Tarasevich (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasil Tarasevich updated CAY-900:
---------------------------------

    Attachment: CAY-900_images.zip
                CAY-900_modeler.patch

patch for modeler and placeholder images

> Create CayenneModeler Swing UI for managing callbacks and lifecycle listeners
> -----------------------------------------------------------------------------
>
>                 Key: CAY-900
>                 URL: https://issues.apache.org/cayenne/browse/CAY-900
>             Project: Cayenne
>          Issue Type: Task
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>         Attachments: CAY-900_core.patch, CAY-900_images.zip, CAY-900_modeler.patch
>
>
> This builds on CAY-879. We need a UI support for editing callbacks and lifecycle listeners. The UI I am suggesting (although I am open to other suggestions) is this:
> ObjEntity:
>    two new tabs "Callbacks" and "Listeners"
> DataMap: 
>    place the main editor in a tabbed panel, with two tabs: "DataMap" and "Listeners"
> "Listeners" tab would consist of a JTable with the following columns:
> * "Class Name" - a listener class
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> "Callbacks" tab would consist of a JTable with the following columns:
> * "Method" - a callback method name
> * "Callback Type" (a dropdown with types of callbacks)
> Each tab would have a toolbar (similar to what we have for entities now) with buttons to add/delete callbacks/listeners (button will be created, may use placeholders for now)
> Since the order of callbacks is significant, we need a reordering capability (via drag and drop? or in the worst case using up and down arrows on the toolbar like the stored procedure parameters table does) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.