com.alee.extended.language
Class DictionariesTreeEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by com.alee.utils.swing.WebDefaultCellEditor<C>
          extended by com.alee.laf.tree.WebTreeCellEditor
              extended by com.alee.extended.language.DictionariesTreeEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public class DictionariesTreeEditor
extends WebTreeCellEditor

Language dictionaries tree cell editor.

Author:
Mikle Garin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.alee.utils.swing.WebDefaultCellEditor
WebDefaultCellEditor.EditorDelegate<T>
 
Field Summary
 
Fields inherited from class com.alee.laf.tree.WebTreeCellEditor
autoUpdateLeadingIcon
 
Fields inherited from class com.alee.utils.swing.WebDefaultCellEditor
clickCountToStart, COMBOBOX_CELL_EDITOR, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
DictionariesTreeEditor(DictionariesTree tree)
          Constructs dictionaries tree editor for the specified dictionaries tree.
 
Method Summary
 java.lang.Object getCellEditorValue()
          Returns current editor's value.
 java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
          Returns custom tree cell editor component.
 boolean isCellEditable(java.util.EventObject event)
          Returns whether cell is editable or not.
 
Methods inherited from class com.alee.utils.swing.WebDefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTableCellEditorComponent, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Constructor Detail

DictionariesTreeEditor

public DictionariesTreeEditor(DictionariesTree tree)
Constructs dictionaries tree editor for the specified dictionaries tree.

Parameters:
tree - dictionaries tree
Method Detail

getTreeCellEditorComponent

public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
                                                     java.lang.Object value,
                                                     boolean isSelected,
                                                     boolean expanded,
                                                     boolean leaf,
                                                     int row)
Returns custom tree cell editor component.

Specified by:
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditor
Overrides:
getTreeCellEditorComponent in class WebTreeCellEditor
Parameters:
tree - tree
value - cell value
isSelected - whether cell is selected or not
expanded - whether cell is expanded or not
leaf - whether cell is leaf or not
row - cell row index
Returns:
cell editor component

getCellEditorValue

public java.lang.Object getCellEditorValue()
Returns current editor's value.

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Overrides:
getCellEditorValue in class WebDefaultCellEditor
Returns:
current editor's value

isCellEditable

public boolean isCellEditable(java.util.EventObject event)
Returns whether cell is editable or not.

Specified by:
isCellEditable in interface javax.swing.CellEditor
Overrides:
isCellEditable in class WebDefaultCellEditor
Parameters:
event - event that editor should use to consider whether to begin editing or no
Returns:
true if cell is editable, false otherwise