|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParentWindow
This interface is implemented by objects that have children and need to track children creation without event listeners.
The object starts to record children creation information when its
trackChildren()
method is called. The getRecentChild()
method
returns the last created child object.
Note if trackChildren()
method is called after child creation then
the getRecentChild()
returns null.
Method Summary | |
---|---|
WebBrowser |
getRecentChild()
Returns recent created child object since last trackChildren() method call. |
void |
trackChildren()
Starts to collect information about child object creation. |
WebBrowser |
waitChildCreation()
Blocks execution until child is created since last trackChildren() call and returns this child. |
WebBrowser |
waitChildCreation(java.lang.Runnable operationThatCreatesChild)
Executes operation specified in the parameter and returns when child created by the operation is opened. |
Method Detail |
---|
void trackChildren()
WebBrowser getRecentChild()
trackChildren()
method call.
trackChildren()
method call.
If there isn't opened windows after this call then returns null.WebBrowser waitChildCreation()
trackChildren()
call and returns this child.
In other words, this method waits until getRecentChild()
call returns non-null object.
WebBrowser waitChildCreation(java.lang.Runnable operationThatCreatesChild)
operationThatCreatesChild
- operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |