public class WebFileListCellEditor extends AbstractListCellEditor<WebTextField,FileElement>
Modifier and Type | Field and Description |
---|---|
protected 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(JList list,
int index,
FileElement value)
Creates list cell editor component for the cell nder specified index.
|
FileElement |
getCellEditorValue(JList list,
int index,
FileElement oldValue)
Returns editor value that will replace the specified old value in the model.
|
protected Rectangle |
getEditorBounds(JList list,
int index,
FileElement value,
Rectangle cellBounds)
Returns list cell editor bounds within the cell.
|
protected void |
installStartEditActions(JList list)
Installs start edit actions in the list.
|
boolean |
isCellEditable(JList list,
int index,
FileElement value)
Returns whether list cell under the specified index is editable or not.
|
protected void |
uninstallStartEditActions(JList list)
Uninstalls start edit actions from the list.
|
boolean |
updateListModel(JList list,
int index,
FileElement oldValue,
FileElement newValue,
boolean updateSelection)
Returns whether value update operation completed successfully or not.
|
addEditor, cancelEdit, editCancelled, editStarted, editStopped, getCellEditor, getClicksToEdit, getEditorBounds, install, isEditing, removeEditor, setClicksToEdit, startEdit, stopEdit, uninstall
protected Object savedSelection
protected void installStartEditActions(JList list)
AbstractListCellEditor
installStartEditActions
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processprotected void uninstallStartEditActions(JList list)
AbstractListCellEditor
uninstallStartEditActions
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processpublic boolean isCellEditable(JList list, int index, FileElement value)
ListCellEditor
isCellEditable
in interface ListCellEditor<WebTextField,FileElement>
isCellEditable
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processindex
- cell indexvalue
- cell valueprotected WebTextField createCellEditor(JList list, int index, FileElement value)
AbstractListCellEditor
createCellEditor
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processindex
- cell indexvalue
- cell valueprotected Rectangle getEditorBounds(JList list, int index, FileElement value, Rectangle cellBounds)
AbstractListCellEditor
getEditorBounds
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processindex
- cell indexvalue
- cell valuecellBounds
- cell boundspublic FileElement getCellEditorValue(JList list, int index, FileElement oldValue)
ListCellEditor
list
- list to processindex
- cell indexoldValue
- old cell valuepublic boolean updateListModel(JList list, int index, FileElement oldValue, FileElement newValue, boolean updateSelection)
ListCellEditor
updateListModel
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 notCopyright © 2020. All rights reserved.