public interface Page
A page gets created by the page provider. The
createContent(Composite)
must only be called once. Resources that be
page need must not be created before calling this method. If the method is
never called the page instance is simply subject to garbage collections. Once
the page content is created the page can attach itself to the parent
composite using
Widget.addDisposeListener(org.eclipse.swt.events.DisposeListener)
to
get notified about disposal.
The request close method must also be allowed to be called if the
createContent(Composite)
was not called. In which case it should
simply return true
. The requestClose()
method may also
be called multiple times, but only as long as the parent composite is not
disposed.
Modifier and Type | Method and Description |
---|---|
void |
createContent(org.eclipse.swt.widgets.Composite parent)
Create the page content
|
boolean |
requestClose()
Called by the page manager to check if the page can be closed
It is possible for the page to trigger a message dialog first and wait for the result. |
void createContent(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeboolean requestClose()
true
if the page can be closed, false
otherwiseCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.