|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- Editor component typeT
- Editor value typepublic interface ListCellEditor<E extends java.awt.Component,T>
This interface provides base methods for list cell editor creation. Cell editor is not available in Swing for JList, this a custom WebLaF-exclusive editor.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 value
E getCellEditor(javax.swing.JList list, int index, T value)
list
- list to processindex
- cell indexvalue
- cell value
void 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 process
T getCellEditorValue(javax.swing.JList list, int index, T oldValue)
list
- list to processindex
- cell indexoldValue
- old cell value
boolean 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 not
void 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |