com.alee.extended.list
Class WebCheckBoxListCellEditor

java.lang.Object
  extended by com.alee.laf.list.editor.AbstractListCellEditor<WebTextField,CheckBoxCellData>
      extended by com.alee.extended.list.WebCheckBoxListCellEditor
All Implemented Interfaces:
ListCellEditor<WebTextField,CheckBoxCellData>

public class WebCheckBoxListCellEditor
extends AbstractListCellEditor<WebTextField,CheckBoxCellData>

Custom list cell editor used in WebCheckBoxListCell component.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.laf.list.editor.AbstractListCellEditor
clicksToEdit, editedCell, editor, editorPositionUpdater, keyAdapter, mouseAdapter, oldValue
 
Constructor Summary
WebCheckBoxListCellEditor()
           
 
Method Summary
protected  WebTextField createCellEditor(javax.swing.JList list, int index, CheckBoxCellData value)
          Creates list cell editor component for the cell nder specified index.
 CheckBoxCellData getCellEditorValue(javax.swing.JList list, int index, CheckBoxCellData oldValue)
          Returns editor value that will replace the specified old value in the model.
protected  java.awt.Rectangle getEditorBounds(javax.swing.JList list, int index, CheckBoxCellData value, java.awt.Rectangle cellBounds)
          Returns list cell editor bounds within the cell.
 
Methods inherited from class com.alee.laf.list.editor.AbstractListCellEditor
addEditor, cancelEdit, createCellEditorListeners, editCancelled, editStarted, editStopped, getCellEditor, getClicksToEdit, 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

WebCheckBoxListCellEditor

public WebCheckBoxListCellEditor()
Method Detail

createCellEditor

protected WebTextField createCellEditor(javax.swing.JList list,
                                        int index,
                                        CheckBoxCellData value)
Creates list cell editor component for the cell nder specified index.

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

getEditorBounds

protected java.awt.Rectangle getEditorBounds(javax.swing.JList list,
                                             int index,
                                             CheckBoxCellData value,
                                             java.awt.Rectangle cellBounds)
Returns list cell editor bounds within the cell.

Overrides:
getEditorBounds in class AbstractListCellEditor<WebTextField,CheckBoxCellData>
Parameters:
list - list to process
index - cell index
value - cell value
cellBounds - cell bounds
Returns:
list cell editor bounds within the list

getCellEditorValue

public CheckBoxCellData getCellEditorValue(javax.swing.JList list,
                                           int index,
                                           CheckBoxCellData 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