Package jmri.swing
Class DefaultListCellEditor<E>
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- jmri.swing.DefaultListCellEditor<E>
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
,javax.swing.tree.TreeCellEditor
,ListCellEditor<E>
public class DefaultListCellEditor<E> extends javax.swing.DefaultCellEditor implements ListCellEditor<E>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultListCellEditor(javax.swing.JCheckBox checkBox)
DefaultListCellEditor(javax.swing.JComboBox<?> comboBox)
DefaultListCellEditor(javax.swing.JTextField textField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getCellEditorValue()
java.awt.Component
getListCellEditorComponent(javax.swing.JList<E> list, E value, boolean isSelected, int index)
-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
-
-
-
Constructor Detail
-
DefaultListCellEditor
public DefaultListCellEditor(javax.swing.JCheckBox checkBox)
-
DefaultListCellEditor
public DefaultListCellEditor(javax.swing.JComboBox<?> comboBox)
-
DefaultListCellEditor
public DefaultListCellEditor(javax.swing.JTextField textField)
-
-
Method Detail
-
getListCellEditorComponent
public java.awt.Component getListCellEditorComponent(javax.swing.JList<E> list, E value, boolean isSelected, int index)
- Specified by:
getListCellEditorComponent
in interfaceListCellEditor<E>
-
getCellEditorValue
public E getCellEditorValue()
- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
- Specified by:
getCellEditorValue
in interfaceListCellEditor<E>
- Overrides:
getCellEditorValue
in classjavax.swing.DefaultCellEditor
-
-