You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "dreamtangerine (JIRA)" <ji...@apache.org> on 2011/09/14 16:02:09 UTC

[jira] [Commented] (PIVOT-794) Add BlockingDialog to WTK

    [ 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