JIDE 2.9.5

com.jidesoft.grid
Class TreeComboBoxCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by com.jidesoft.grid.AbstractJideCellEditor
          extended by com.jidesoft.grid.ContextSensitiveCellEditor
              extended by com.jidesoft.grid.AbstractComboBoxCellEditor
                  extended by com.jidesoft.grid.TreeComboBoxCellEditor
All Implemented Interfaces:
ConverterContextSupport, EditorContextSupport, JideCellEditor, ItemListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor

public class TreeComboBoxCellEditor
extends AbstractComboBoxCellEditor

This class is for any cell editor where one needs to choose value from a tree. It used TreeComboBox as the editor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.AbstractComboBoxCellEditor
_comboBox
 
Fields inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
DEFAULT_CELL_EDITOR_BORDER
 
Fields inherited from class com.jidesoft.grid.AbstractJideCellEditor
_clickCountToStart
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
TreeComboBoxCellEditor(Hashtable<?,?> objects)
          Creates a new TreeComboBoxCellEditor.
TreeComboBoxCellEditor(Object[] objects)
          Creates a new TreeComboBoxCellEditor.
TreeComboBoxCellEditor(TreeModel model)
          Creates a new TreeComboBoxCellEditor.
TreeComboBoxCellEditor(TreeNode root)
          Creates a new TreeComboBoxCellEditor.
TreeComboBoxCellEditor(TreeNode root, boolean asksAllowsChildren)
          Creates a new TreeComboBoxCellEditor.
TreeComboBoxCellEditor(Vector<?> objects)
          Creates a new TreeComboBoxCellEditor.
 
Method Summary
 AbstractComboBox createAbstractComboBox()
          Creates an AbstractComboBox or its subclass used by this cell editor.
protected  TreeComboBox createTreeComboBox()
          Creates the tree combobox.
 void itemStateChanged(ItemEvent e)
           
 void popupMenuWillBecomeInvisible(PopupMenuEvent e)
           
 
Methods inherited from class com.jidesoft.grid.AbstractComboBoxCellEditor
createAbstractComboBox, customizeAbstractComboBox, getCellEditorValue, getComboBox, getTableCellEditorComponent, popupMenuCanceled, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, stopCellEditing
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
getConverter, getConverterContext, getEditorContext, getType, isUseConverterContext, setConverterContext, setEditorContext, setType, setUseConverterContext
 
Methods inherited from class com.jidesoft.grid.AbstractJideCellEditor
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
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, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

TreeComboBoxCellEditor

public TreeComboBoxCellEditor(Object[] objects)
Creates a new TreeComboBoxCellEditor.

Parameters:
objects - the objects in the tree model

TreeComboBoxCellEditor

public TreeComboBoxCellEditor(Vector<?> objects)
Creates a new TreeComboBoxCellEditor.

Parameters:
objects - the objects in the tree model

TreeComboBoxCellEditor

public TreeComboBoxCellEditor(Hashtable<?,?> objects)
Creates a new TreeComboBoxCellEditor.

Parameters:
objects - the objects in the tree model

TreeComboBoxCellEditor

public TreeComboBoxCellEditor(TreeNode root)
Creates a new TreeComboBoxCellEditor.

Parameters:
root - the tree root node

TreeComboBoxCellEditor

public TreeComboBoxCellEditor(TreeNode root,
                              boolean asksAllowsChildren)
Creates a new TreeComboBoxCellEditor.

Parameters:
root - the tree root node
asksAllowsChildren - the flag indicating if allows children

TreeComboBoxCellEditor

public TreeComboBoxCellEditor(TreeModel model)
Creates a new TreeComboBoxCellEditor.

Parameters:
model - the tree model
Method Detail

createAbstractComboBox

public AbstractComboBox createAbstractComboBox()
Description copied from class: AbstractComboBoxCellEditor
Creates an AbstractComboBox or its subclass used by this cell editor.

Specified by:
createAbstractComboBox in class AbstractComboBoxCellEditor
Returns:
an AbstractComboBox.

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener
Overrides:
itemStateChanged in class AbstractComboBoxCellEditor

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface PopupMenuListener
Overrides:
popupMenuWillBecomeInvisible in class AbstractComboBoxCellEditor

createTreeComboBox

protected TreeComboBox createTreeComboBox()
Creates the tree combobox.

Returns:
the tree combobox.

JIDE 2.9.5