|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.list.editor.AbstractListCellEditor<WebTextField,FileElement> com.alee.extended.list.WebFileListCellEditor
public class WebFileListCellEditor
Custom list cell editor used in WebFileList component.
Field Summary | |
---|---|
protected java.lang.Object |
savedSelection
Last saved selection. |
Fields inherited from class com.alee.laf.list.editor.AbstractListCellEditor |
---|
clicksToEdit, editedCell, editor, editorPositionUpdater, keyAdapter, mouseAdapter, oldValue |
Constructor Summary | |
---|---|
WebFileListCellEditor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.alee.laf.list.editor.AbstractListCellEditor |
---|
addEditor, cancelEdit, createCellEditorListeners, editCancelled, editStarted, editStopped, getCellEditor, getClicksToEdit, getEditorBounds, install, isEditing, removeEditor, setClicksToEdit, startEdit, stopEdit, uninstall |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object savedSelection
Constructor Detail |
---|
public WebFileListCellEditor()
Method Detail |
---|
protected void installStartEditActions(javax.swing.JList list)
installStartEditActions
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processprotected void uninstallStartEditActions(javax.swing.JList list)
uninstallStartEditActions
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processpublic boolean isCellEditable(javax.swing.JList list, int index, FileElement value)
isCellEditable
in interface ListCellEditor<WebTextField,FileElement>
isCellEditable
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processindex
- cell indexvalue
- cell value
protected WebTextField createCellEditor(javax.swing.JList list, int index, FileElement value)
createCellEditor
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processindex
- cell indexvalue
- cell value
protected java.awt.Rectangle getEditorBounds(javax.swing.JList list, int index, FileElement value, java.awt.Rectangle cellBounds)
getEditorBounds
in class AbstractListCellEditor<WebTextField,FileElement>
list
- list to processindex
- cell indexvalue
- cell valuecellBounds
- cell bounds
public FileElement getCellEditorValue(javax.swing.JList list, int index, FileElement oldValue)
list
- list to processindex
- cell indexoldValue
- old cell value
public boolean updateListModel(javax.swing.JList list, int index, FileElement oldValue, FileElement newValue, boolean updateSelection)
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 not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |