com.alee.laf.list.editor
Class DefaultListCellEditor

java.lang.Object
  extended by com.alee.laf.list.editor.AbstractListCellEditor
      extended by com.alee.laf.list.editor.DefaultListCellEditor
All Implemented Interfaces:
ListCellEditor

public class DefaultListCellEditor
extends AbstractListCellEditor

Default list cell editor that is based on various components.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.laf.list.editor.AbstractListCellEditor
clicksToEdit, editedCell, editor, editorPositionUpdater, keyAdapter, mouseAdapter, oldValue
 
Constructor Summary
DefaultListCellEditor()
           
 
Method Summary
protected  java.awt.Component createCellEditor(javax.swing.JList list, int index, java.lang.Object value)
          Creates list cell editor component for the cell nder specified index.
 java.lang.Object getCellEditorValue(javax.swing.JList list, int index, java.lang.Object oldValue)
          Returns editor value that will replace the specified old value in the model.
 
Methods inherited from class com.alee.laf.list.editor.AbstractListCellEditor
addEditor, cancelEdit, createCellEditorListeners, editCancelled, editStarted, editStopped, getCellEditor, getClicksToEdit, getEditorBounds, getEditorBounds, install, installStartEditActions, isCellEditable, isEditing, removeEditor, setClicksToEdit, startEdit, stopEdit, uninstall, uninstallStartEditActions, updateListModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultListCellEditor

public DefaultListCellEditor()
Method Detail

createCellEditor

protected java.awt.Component createCellEditor(javax.swing.JList list,
                                              int index,
                                              java.lang.Object value)
Creates list cell editor component for the cell nder specified index.

Specified by:
createCellEditor in class AbstractListCellEditor
Parameters:
list - list to process
index - cell index
value - cell value
Returns:
list cell editor created for the cell under specified index

getCellEditorValue

public java.lang.Object getCellEditorValue(javax.swing.JList list,
                                           int index,
                                           java.lang.Object oldValue)
Returns editor value that will replace the specified old value in the model.

Parameters:
list - list to process
index - cell index
oldValue - old cell value
Returns:
editor value