public abstract class InterruptibleNodeView extends NodeView implements ActionListener
COLOR_BACKGROUND, PROP_CHANGE_CLOSE, WARNING_ICON
m_nodeContext
Constructor and Description |
---|
InterruptibleNodeView(InterruptibleNodeModel model)
Constructs an instance of the InterruptibleNodeView with the underlying
InterruptibleNodeModel and a title.
|
InterruptibleNodeView(InterruptibleNodeModel model,
JPanel innerView)
Creates an instance of the interruptible node view with the control
elements and a specific additional panel.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Here the control of the InterruptibleNodeModel is done.
|
InterruptControlPanel |
getControlPanel()
This method returns the control panel, which provides control elements
over the underlying model.
|
abstract void |
modelChanged()
Implement here all the view updating methods.
|
void |
onClose()
Forces the model to pause and then to finish.
|
protected void |
onOpen()
Invoked when the window has been opened.
|
void |
refreshInterruptMenu()
Refreshes the enabled status of the control elements depending on the
status of the underlying model.
|
void |
setEmbeddedComponent(Component toBeSet)
Guarantees that the control panel is always added at the very top of the
view.
|
void |
updateModel(Object model)
The
updateModel(Object model) method is invoked whenever
the NodeModel.notifyViews(Object) method was called and
the NodeView.modelChanged() method is only called when
execution is finished but is the default method to implement the
visualization of the NodeModel. |
callCloseView, callOpenView, callOpenView, closeView, createFrame, createFrame, getComponent, getExportComponent, getJMenuBar, getViewTitle, isOpen, openViewComponent, setComponent, setShowNODATALabel, setViewTitleSuffix, warningChanged
getLogger, getNodeModel
public InterruptibleNodeView(InterruptibleNodeModel model)
model
- - the underlying InterruptibleNodeModel.public InterruptibleNodeView(InterruptibleNodeModel model, JPanel innerView)
model
- - the underlying interruptible model.innerView
- - an additional view of the model.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public InterruptControlPanel getControlPanel()
public void refreshInterruptMenu()
public void onClose()
HiLiteListeners
. Dispose internal members. NodeModel
protected void onOpen()
public void setEmbeddedComponent(Component toBeSet)
toBeSet
- the panel to be set below the control panel, mind that
all view components necessary for the underlying model have to
be packed in one componentpublic void updateModel(Object model)
updateModel(Object model)
method is invoked whenever
the NodeModel.notifyViews(Object)
method was called and
the NodeView.modelChanged()
method is only called when
execution is finished but is the default method to implement the
visualization of the NodeModel. Therefore this method simply invokes the
NodeView.modelChanged()
method.
This method can be overridden by views that want to receive
events from their assigned models via the
NodeModel.notifyViews(Object)
method. Can be used to
iteratively update the view during execute.updateModel
in class AbstractNodeView
model
- The argument that is provided in the
notifyViews method.public abstract void modelChanged()
NodeModel
has
changed. Also the HiLightHandler have changed. Note, the
NodeModel
content may be not available. The framework
calls this method in the EventDispatchThread (GUI updates can be done
directly in the calling thread).modelChanged
in class AbstractNodeView
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.