0

How to find a opened window?

asked 2013-11-04 14:25:08 +0800

alexonline84 gravatar image alexonline84
1

I have a button in my zul file. So, I want to open only one instance of window (in another zul file) when I click it. How can I check if a window is opened?

This is my zul file:

<zk>
<window id="windowOverlapped" title="Test" width="800px" height="auto" mode="overlapped" >      
    TEST!
</window>
</zk>

I open, through the button, the window in the controller with this code:

Executions.createComponents("/test.zul", null, null);
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-05 02:33:23 +0800

paowang gravatar image paowang
140 6

According to the API: Executions.createComponents())

The method will return the first component in the ZUL file.

If your window is the first component, you could get its reference and check its status.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-11-04 14:25:08 +0800

Seen: 14 times

Last updated: Nov 05 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More