public class WebFileListCellEditor extends AbstractListCellEditor<WebTextField,FileElement>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
savedSelection
Last saved selection.
|
clicksToEdit, editedCell, editor, editorPositionUpdater, keyAdapter, mouseAdapter, oldValue| Constructor and Description |
|---|
WebFileListCellEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected WebTextField |
createCellEditor(javax.swing.JList list,
int index,
FileElement value)
Creates list cell editor component for the cell nder specified index.
|
FileElement |
getCellEditorValue(javax.swing.JList list,
int index,
FileElement 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,
FileElement value,
java.awt.Rectangle cellBounds)
Returns list cell editor bounds within the cell.
|
protected void |
installStartEditActions(javax.swing.JList list)
Installs start edit actions in the list.
|
boolean |
isCellEditable(javax.swing.JList list,
int index,
FileElement value)
Returns whether list cell under the specified index is editable or not.
|
protected void |
uninstallStartEditActions(javax.swing.JList list)
Uninstalls start edit actions from the list.
|
boolean |
updateListModel(javax.swing.JList list,
int index,
FileElement oldValue,
FileElement newValue,
boolean updateSelection)
Returns whether value update operation completed successfully or not.
|
addEditor, cancelEdit, createCellEditorListeners, editCancelled, editStarted, editStopped, getCellEditor, getClicksToEdit, getEditorBounds, install, isEditing, removeEditor, setClicksToEdit, startEdit, stopEdit, uninstallprotected void installStartEditActions(javax.swing.JList list)
AbstractListCellEditorinstallStartEditActions in class AbstractListCellEditor<WebTextField,FileElement>list - list to processprotected void uninstallStartEditActions(javax.swing.JList list)
AbstractListCellEditoruninstallStartEditActions in class AbstractListCellEditor<WebTextField,FileElement>list - list to processpublic boolean isCellEditable(javax.swing.JList list,
int index,
FileElement value)
ListCellEditorisCellEditable in interface ListCellEditor<WebTextField,FileElement>isCellEditable in class AbstractListCellEditor<WebTextField,FileElement>list - list to processindex - cell indexvalue - cell valueprotected WebTextField createCellEditor(javax.swing.JList list, int index, FileElement value)
AbstractListCellEditorcreateCellEditor in class AbstractListCellEditor<WebTextField,FileElement>list - list to processindex - cell indexvalue - cell valueprotected java.awt.Rectangle getEditorBounds(javax.swing.JList list,
int index,
FileElement value,
java.awt.Rectangle cellBounds)
AbstractListCellEditorgetEditorBounds in class AbstractListCellEditor<WebTextField,FileElement>list - list to processindex - cell indexvalue - cell valuecellBounds - cell boundspublic FileElement getCellEditorValue(javax.swing.JList list, int index, FileElement oldValue)
ListCellEditorlist - list to processindex - cell indexoldValue - old cell valuepublic boolean updateListModel(javax.swing.JList list,
int index,
FileElement oldValue,
FileElement newValue,
boolean updateSelection)
ListCellEditorupdateListModel in interface ListCellEditor<WebTextField,FileElement>updateListModel in class AbstractListCellEditor<WebTextField,FileElement>list - list to processindex - cell indexoldValue - old cell valuenewValue - new cell valueupdateSelection - whether update list selection or not