|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.AbstractNodeView<T>
org.knime.core.node.ExternalApplicationNodeView<T>
T
- The node model class.public abstract class ExternalApplicationNodeView<T extends NodeModel>
Node view which opens an external application. Opening, closing and updating the application is task of derived view classes.
Constructor Summary | |
---|---|
protected |
ExternalApplicationNodeView(T model)
Creates the view instance but does not open the external application yet. |
Method Summary | |
---|---|
(package private) void |
callCloseView()
Called from AbstractNodeView.closeView() to close the view and release all
allocated resources. |
(package private) void |
callOpenView(String title)
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. |
Methods inherited from class org.knime.core.node.AbstractNodeView |
---|
callModelChanged, getLogger, getNodeModel, getViewName, modelChanged, openView, updateModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ExternalApplicationNodeView(T model)
model
- The node model assigned to the view, must not be null.Method Detail |
---|
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>
void callOpenView(String title)
AbstractNodeView.openView(String)
and is called
at most once.
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).public 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)
. (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 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |