public static class PortConfigurerDialog.ValidatingComboBoxCellEditor
extends javax.swing.DefaultCellEditor
Based on IntegerEditor from http://download.oracle.com/javase/tutorial/uiswing/examples/components/TableFTFEditDemoProject/src/components/IntegerEditor.java
| Red (eal) |
| Red (eal) |
| Constructor and Description |
|---|
ValidatingComboBoxCellEditor(javax.swing.JComboBox comboBox)
Construct a validating combo box JTable Cell editor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCellEditorValue()
Get the cell editor value.
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
void |
setValidator(PortConfigurerDialog.CellValidator validator)
Set the validator.
|
boolean |
stopCellEditing()
Check the selection and determine whether we should stop editing.
|
protected boolean |
userSaysRevert(java.lang.String selectedItem)
Return true if the user wants to revert to the original value.
|
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCelladdCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerpublic ValidatingComboBoxCellEditor(javax.swing.JComboBox comboBox)
comboBox - The combo box that provides choices.public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorgetTableCellEditorComponent in class javax.swing.DefaultCellEditorpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorgetCellEditorValue in class javax.swing.DefaultCellEditorpublic void setValidator(PortConfigurerDialog.CellValidator validator)
validator - The validator.public boolean stopCellEditing()
stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class javax.swing.DefaultCellEditorprotected boolean userSaysRevert(java.lang.String selectedItem)
selectedItem - The selected item.