|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.knime.core.node.util.KeyValuePanel
public class KeyValuePanel
A visual component to define key - value pairs.
| Nested Class Summary | |
|---|---|
(package private) static class |
KeyValuePanel.CopyAction
The swing action for copying the selected cells to the system clipboard. |
(package private) static class |
KeyValuePanel.PasteAction
The swing action to insert cells from the system clipboard. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
KeyValuePanel()
Create a new instance. |
|
| Method Summary | |
|---|---|
String[] |
getKeys()
Get the elements of the first column. |
JTable |
getTable()
Access to underlying table. |
String[] |
getValues()
Get the elements of the second column. |
void |
setEnabled(boolean enabled)
|
void |
setKeyColumnLabel(String label)
Set the label of the first column. |
void |
setTableData(String[] keys,
String[] values)
Update the data. |
void |
setValueColumnLabel(String label)
Set the label of the second column. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyValuePanel()
| Method Detail |
|---|
public JTable getTable()
public void setTableData(String[] keys,
String[] values)
keys - the elements of the first columnvalues - the elements of the second columnpublic String[] getKeys()
public String[] getValues()
public void setKeyColumnLabel(String label)
label - the label to setpublic void setValueColumnLabel(String label)
label - the label to setpublic void setEnabled(boolean enabled)
setEnabled in class JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||