You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Thomas Guretzki (JIRA)" <ji...@apache.org> on 2011/09/12 15:15:09 UTC
[jira] [Created] (PIVOT-794) Add BlockingDialog to WTK
Add BlockingDialog to WTK
-------------------------
Key: PIVOT-794
URL: https://issues.apache.org/jira/browse/PIVOT-794
Project: Pivot
Issue Type: New Feature
Components: wtk, wtk-terra
Affects Versions: 2.1
Environment: any
Reporter: Thomas Guretzki
Priority: Minor
I've written an additional BlockingDialog class which can host any Dialog outside of the normal HostFrame.
This way, awt is used to do the {@link #open(Display)} in a blocking way,
i. e. the flow of control doesn't return before the content Dialog is closed.
The content can be set in the constructor or (e. g. via bxml) using {@link #setContent(Dialog)}.
A small change to DesktopApplicationContext is necessary: static class HostDialog has to be given package access.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIVOT-794) Add BlockingDialog to WTK
Posted by "Thomas Guretzki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Guretzki updated PIVOT-794:
----------------------------------
Attachment: patches.zip
2 patches, one for the wtk project, the other for wtk-terra (just for testing/ demonstration)
> Add BlockingDialog to WTK
> -------------------------
>
> Key: PIVOT-794
> URL: https://issues.apache.org/jira/browse/PIVOT-794
> Project: Pivot
> Issue Type: New Feature
> Components: wtk, wtk-terra
> Affects Versions: 2.1
> Environment: any
> Reporter: Thomas Guretzki
> Priority: Minor
> Labels: patch
> Attachments: patches.zip
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I've written an additional BlockingDialog class which can host any Dialog outside of the normal HostFrame.
> This way, awt is used to do the {@link #open(Display)} in a blocking way,
> i. e. the flow of control doesn't return before the content Dialog is closed.
> The content can be set in the constructor or (e. g. via bxml) using {@link #setContent(Dialog)}.
> A small change to DesktopApplicationContext is necessary: static class HostDialog has to be given package access.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIVOT-794) Add BlockingDialog to WTK
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Martini updated PIVOT-794:
---------------------------------
Priority: Major (was: Minor)
Affects Version/s: (was: 2.1)
2.0
Fix Version/s: 2.1
Assignee: Sandro Martini
Verify the required changes and discuss with other developers.
In the meantime, many thanks to Thomas for sharing this with us.
Note that currently a version compatible with Pivot 2.0.x is here (with some Pivot classes rewritten):
http://code.google.com/a/apache-extras.org/p/pivot-contrib/downloads/list
pivot-contrib-guretzki.jar
> Add BlockingDialog to WTK
> -------------------------
>
> Key: PIVOT-794
> URL: https://issues.apache.org/jira/browse/PIVOT-794
> Project: Pivot
> Issue Type: New Feature
> Components: wtk, wtk-terra
> Affects Versions: 2.0
> Environment: any
> Reporter: Thomas Guretzki
> Assignee: Sandro Martini
> Labels: patch
> Fix For: 2.1
>
> Attachments: patches.zip
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I've written an additional BlockingDialog class which can host any Dialog outside of the normal HostFrame.
> This way, awt is used to do the {@link #open(Display)} in a blocking way,
> i. e. the flow of control doesn't return before the content Dialog is closed.
> The content can be set in the constructor or (e. g. via bxml) using {@link #setContent(Dialog)}.
> A small change to DesktopApplicationContext is necessary: static class HostDialog has to be given package access.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] [Commented] (PIVOT-794) Add BlockingDialog to WTK
Posted by DreamTangerine <dr...@hotmail.com>.
Ok, don't worry I understand.
I didn't write any test for now.
It is only a little prototype for suggestion.
On miƩ, 2011-09-14 at 14:08 +0000, Sandro Martini (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/PIVOT-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104512#comment-13104512 ]
>
> Sandro Martini commented on PIVOT-794:
> --------------------------------------
>
> Hi, thanks for the info (and I'm sorry but hadn't time to look at pivot-stuff-validation ... have you put there some minimal test, too ?).
> I'll try to merge all these features for BlockingDialogs for the 2.1 release ... unless some objections.
>
> Bye
>
>
> > Add BlockingDialog to WTK
> > -------------------------
> >
> > Key: PIVOT-794
> > URL: https://issues.apache.org/jira/browse/PIVOT-794
> > Project: Pivot
> > Issue Type: New Feature
> > Components: wtk, wtk-terra
> > Affects Versions: 2.0
> > Environment: any
> > Reporter: Thomas Guretzki
> > Assignee: Sandro Martini
> > Labels: patch
> > Fix For: 2.1
> >
> > Attachments: patches.zip
> >
> > Original Estimate: 0.5h
> > Remaining Estimate: 0.5h
> >
> > I've written an additional BlockingDialog class which can host any Dialog outside of the normal HostFrame.
> > This way, awt is used to do the {@link #open(Display)} in a blocking way,
> > i. e. the flow of control doesn't return before the content Dialog is closed.
> > The content can be set in the constructor or (e. g. via bxml) using {@link #setContent(Dialog)}.
> > A small change to DesktopApplicationContext is necessary: static class HostDialog has to be given package access.
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
[jira] [Commented] (PIVOT-794) Add BlockingDialog to WTK
Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104512#comment-13104512 ]
Sandro Martini commented on PIVOT-794:
--------------------------------------
Hi, thanks for the info (and I'm sorry but hadn't time to look at pivot-stuff-validation ... have you put there some minimal test, too ?).
I'll try to merge all these features for BlockingDialogs for the 2.1 release ... unless some objections.
Bye
> Add BlockingDialog to WTK
> -------------------------
>
> Key: PIVOT-794
> URL: https://issues.apache.org/jira/browse/PIVOT-794
> Project: Pivot
> Issue Type: New Feature
> Components: wtk, wtk-terra
> Affects Versions: 2.0
> Environment: any
> Reporter: Thomas Guretzki
> Assignee: Sandro Martini
> Labels: patch
> Fix For: 2.1
>
> Attachments: patches.zip
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I've written an additional BlockingDialog class which can host any Dialog outside of the normal HostFrame.
> This way, awt is used to do the {@link #open(Display)} in a blocking way,
> i. e. the flow of control doesn't return before the content Dialog is closed.
> The content can be set in the constructor or (e. g. via bxml) using {@link #setContent(Dialog)}.
> A small change to DesktopApplicationContext is necessary: static class HostDialog has to be given package access.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIVOT-794) Add BlockingDialog to WTK
Posted by "dreamtangerine (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104506#comment-13104506 ]
dreamtangerine commented on PIVOT-794:
--------------------------------------
I also changed org.apache.pivot.wtk.Window class to allow blocking the caller from the EDT. I think it is useful for Alert and Prompt, so Window has a new method called openBlocking, and also I created a BlockingEventQueue class and ApplicationContext.
You can try it from :
http://code.google.com/a/apache-extras.org/p/pivot-stuff/source/browse/#svn%2Ftrunk%2Fpivot-stuff-validation
> Add BlockingDialog to WTK
> -------------------------
>
> Key: PIVOT-794
> URL: https://issues.apache.org/jira/browse/PIVOT-794
> Project: Pivot
> Issue Type: New Feature
> Components: wtk, wtk-terra
> Affects Versions: 2.0
> Environment: any
> Reporter: Thomas Guretzki
> Assignee: Sandro Martini
> Labels: patch
> Fix For: 2.1
>
> Attachments: patches.zip
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I've written an additional BlockingDialog class which can host any Dialog outside of the normal HostFrame.
> This way, awt is used to do the {@link #open(Display)} in a blocking way,
> i. e. the flow of control doesn't return before the content Dialog is closed.
> The content can be set in the constructor or (e. g. via bxml) using {@link #setContent(Dialog)}.
> A small change to DesktopApplicationContext is necessary: static class HostDialog has to be given package access.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira