|
||||||||||
| 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.NodeView
org.knime.base.node.viz.table.TableNodeView
public class TableNodeView
Table view on a DataTable. It simply uses a
JTable to display the data table. If the node has not
been executed or is reset, the view will print "<no data>". The view
adds also a menu entry to the menu bar where the user can synchronize the
selection with a global hilite handler.
| Field Summary |
|---|
| Fields inherited from class org.knime.core.node.NodeView |
|---|
COLOR_BACKGROUND, PROP_CHANGE_CLOSE |
| Constructor Summary | |
|---|---|
TableNodeView(TableNodeModel nodeModel)
Starts a new TableNodeView displaying "<no data>". |
|
| Method Summary | |
|---|---|
int |
getRowHeight()
Get row height from table. |
boolean |
hasData()
Checks if there is data to display. |
boolean |
hasHiLiteHandler()
Checks is property handler is set. |
void |
hiliteSelected()
Hilites selected rows in the hilite handler. |
boolean |
isShowColorInfo()
Is the color info shown. |
protected void |
modelChanged()
Called from the super class when a property of the node has been changed. |
protected void |
onClose()
Invoked when the window is about to be closed. |
protected void |
onOpen()
Does nothing since view is in sync anyway. |
void |
resetHilite()
Resets hiliting in the hilite handler. |
void |
setHiLiteHandler(HiLiteHandler hiLiteHdl)
Sets a new handler for this view. |
void |
setRowHeight(int newHeight)
Set a new row height in the table. |
void |
setShowColorInfo(boolean isShowColor)
Shall row header encode the color information in an icon. |
void |
unHiliteSelected()
Unhilites selected rows in the hilite handler. |
protected void |
updateTitle()
Updates the title of the frame. |
| Methods inherited from class org.knime.core.node.NodeView |
|---|
callCloseView, closeView, createFrame, getComponent, getJMenuBar, getViewTitle, isOpen, openViewComponent, setComponent, setShowNODATALabel, setViewTitleSuffix, warningChanged |
| Methods inherited from class org.knime.core.node.AbstractNodeView |
|---|
getLogger, getNodeModel, updateModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableNodeView(TableNodeModel nodeModel)
TableNodeView displaying "<no data>".
The content comes up when the super class NodeView calls the
modelChanged() method.
nodeModel - the underlying model| Method Detail |
|---|
public boolean hasData()
DataTable to show.
This method returns true when the node was executed and
false otherwise.
true if there is data to displaypublic boolean hasHiLiteHandler()
true if property handler setTableContentView.hasHiLiteHandler()public void setHiLiteHandler(HiLiteHandler hiLiteHdl)
hiLiteHdl - the new handler to set, may be null to
disable any brushingpublic void setShowColorInfo(boolean isShowColor)
isShowColor - true for show icon (and thus the
color), false ignore colors#setShowColorInfo(boolean)public boolean isShowColorInfo()
true Icon with the color is presentpublic int getRowHeight()
JTable.getRowHeight()public void setRowHeight(int newHeight)
newHeight - the new heightJTable.setRowHeight(int)public void hiliteSelected()
TableView.hiliteSelected()public void unHiliteSelected()
TableView.unHiliteSelected()public void resetHilite()
TableView.resetHilite()protected void updateTitle()
protected void modelChanged()
modelChanged in class AbstractNodeViewAbstractNodeView.modelChanged()protected void onClose()
HiLiteListeners. Dispose internal members. NodeModel
onClose in class NodeViewprotected void onOpen()
onOpen in class NodeViewNodeView.onOpen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||