E - Editor component typeT - Editor value typepublic interface ListCellEditor<E extends java.awt.Component,T>
| Modifier and Type | Method and Description |
|---|---|
void |
cancelEdit(javax.swing.JList list)
Cancels list cell editing.
|
void |
editCancelled(javax.swing.JList list,
int index)
Notifies that list cell editing was cancelled.
|
void |
editStarted(javax.swing.JList list,
int index)
Notifies that list cell editing has started.
|
void |
editStopped(javax.swing.JList list,
int index,
T oldValue,
T newValue)
Notifies that list cell editing has finished.
|
E |
getCellEditor(javax.swing.JList list,
int index,
T value)
Returns list cell editor created for the cell under specified index.
|
T |
getCellEditorValue(javax.swing.JList list,
int index,
T oldValue)
Returns editor value that will replace the specified old value in the model.
|
void |
install(javax.swing.JList list)
Installs cell editor in the list.
|
boolean |
isCellEditable(javax.swing.JList list,
int index,
T value)
Returns whether list cell under the specified index is editable or not.
|
boolean |
isEditing()
Returns whether editor is currently active or not.
|
void |
startEdit(javax.swing.JList list,
int index)
Starts specified list cell editing.
|
boolean |
stopEdit(javax.swing.JList list)
Stops list cell editing.
|
void |
uninstall(javax.swing.JList list)
Uninstalls cell editor from the list.
|
boolean |
updateListModel(javax.swing.JList list,
int index,
T oldValue,
T newValue,
boolean updateSelection)
Returns whether value update operation completed successfully or not.
|
void install(javax.swing.JList list)
list - list to processvoid uninstall(javax.swing.JList list)
list - list to processboolean isCellEditable(javax.swing.JList list,
int index,
T value)
list - list to processindex - cell indexvalue - cell valueE getCellEditor(javax.swing.JList list, int index, T value)
list - list to processindex - cell indexvalue - cell valuevoid startEdit(javax.swing.JList list,
int index)
list - list to processindex - cell indexvoid cancelEdit(javax.swing.JList list)
list - list to processboolean stopEdit(javax.swing.JList list)
list - list to processT getCellEditorValue(javax.swing.JList list, int index, T oldValue)
list - list to processindex - cell indexoldValue - old cell valueboolean updateListModel(javax.swing.JList list,
int index,
T oldValue,
T newValue,
boolean updateSelection)
list - list to processindex - cell indexoldValue - old cell valuenewValue - new cell valueupdateSelection - whether update list selection or notvoid editStarted(javax.swing.JList list,
int index)
list - list to processindex - edited cell indexvoid editStopped(javax.swing.JList list,
int index,
T oldValue,
T newValue)
list - list to processindex - edited cell indexoldValue - old cell valuenewValue - new cell valuevoid editCancelled(javax.swing.JList list,
int index)
list - list to processindex - edited cell indexboolean isEditing()