org.opennms.bb.eui.common.components
Class BBColumnEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--javax.swing.DefaultCellEditor
              |
              +--org.opennms.bb.eui.common.components.BBColumnEditor
All Implemented Interfaces:
CellEditor, Serializable, TableCellEditor, TreeCellEditor
Direct Known Subclasses:
SnmpColumnEditor, SnmpColumnEditor

public class BBColumnEditor
extends DefaultCellEditor

BBColumnEditor is a table cell editor that stops editing on a 'focusLost' instead of the default action of having to press 'enter' (activating) each cell

On 'focusLost', it warns the user if the value entered is incorrect The focus is then restored to the same cell until the value entersd is correct or the user presses 'escape' to restore the older correct value

Author:
Sowmya
See Also:
Serialized Form

Inner classes inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
 
Field Summary
 boolean bEditingCancelled
           
(package private) static int iFocusLostCalled
           
(package private)  JTextField textField
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
BBColumnEditor(JTextField colText)
          Creates the column editor
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, removeCellEditorListener
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

textField

JTextField textField

iFocusLostCalled

static int iFocusLostCalled

bEditingCancelled

public boolean bEditingCancelled
Constructor Detail

BBColumnEditor

public BBColumnEditor(JTextField colText)
Creates the column editor