T
- The node model class.public abstract class ExternalApplicationNodeView<T extends NodeModel> extends AbstractNodeView<T>
m_nodeContext
Modifier | Constructor and Description |
---|---|
protected |
ExternalApplicationNodeView(T model)
Creates the view instance but does not open the external application
yet.
|
Modifier and Type | Method and Description |
---|---|
protected void |
callCloseView()
Called from
AbstractNodeView.closeView() to close the view and release all
allocated resources. |
protected void |
callOpenView(String title)
Direct(!) subclasses override this method and open the view or frame.
|
protected void |
callOpenView(String title,
Rectangle knimeWindowBounds)
Direct(!) subclasses override this method and open the view or frame.
|
void |
closeView()
To be called by client code when the external view is closed.
|
protected abstract void |
onClose()
Close the view.
|
protected abstract void |
onOpen(String title)
Open the external application.
|
protected void |
onOpen(String title,
Rectangle knimeWindowBounds)
Open the external application.
|
callModelChanged, getLogger, getNodeModel, getViewName, modelChanged, openView, updateModel
protected ExternalApplicationNodeView(T model)
model
- The node model assigned to the view, must not be null.protected void callCloseView()
AbstractNodeView.closeView()
to close the view and release all
allocated resources. The view will not be opened again.callCloseView
in class AbstractNodeView<T extends NodeModel>
protected void callOpenView(String title)
callOpenView
in class AbstractNodeView<T extends NodeModel>
title
- the default title of the view. It should be shown in the
view title bar (if at all possible).protected void callOpenView(String title, Rectangle knimeWindowBounds)
callOpenView
in class AbstractNodeView<T extends NodeModel>
title
- the default title of the view. It should be shown in the
view title bar (if at all possible).knimeWindowBounds
- the window boundspublic final void closeView()
onClose()
.
Closes the view and disposes all allocated resources. The view is not
meant to be opened again. This method is the counterpart to
AbstractNodeView.openView(String, Rectangle)
. (Core) Sub-classes may widen the scope of this
method.closeView
in class AbstractNodeView<T extends NodeModel>
protected abstract void onOpen(String title)
title
- The desired title of the application, possibly ignored.protected void onOpen(String title, Rectangle knimeWindowBounds)
title
- The desired title of the application, possibly ignored.knimeWindowBounds
- Bounds of the KNIME window, of interest for window alignment.protected abstract void onClose()
closeView()
is called. This method should not be used if the
external application initiates the close operation. Clients should call
closeView()
instead.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.