JIDE 3.5.15

com.jidesoft.grid
Class FontNameCellEditor

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.ExComboBoxCellEditor
                  extended by com.jidesoft.grid.ListComboBoxCellEditor
                      extended by com.jidesoft.grid.FontNameCellEditor
All Implemented Interfaces:
ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, ActionListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor

public class FontNameCellEditor
extends ListComboBoxCellEditor

CellEditor for FontFace.

See Also:
Serialized Form

Field Summary
static EditorContext CONTEXT
           
 
Fields inherited from class com.jidesoft.grid.ExComboBoxCellEditor
_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
FontNameCellEditor()
          Creates FontNameCellEditor.
 
Method Summary
protected  ListExComboBox createListComboBox(ComboBoxModel model, Class<?> type)
          Creates the list combobox.
protected  void setupListComboBox(ListExComboBox listComboBox)
          Setup the ListExComboBox.
 
Methods inherited from class com.jidesoft.grid.ListComboBoxCellEditor
createExComboBox, createExComboBox, setConverterContext, setPossibleValues
 
Methods inherited from class com.jidesoft.grid.ExComboBoxCellEditor
actionPerformed, customizeExComboBox, getCellEditorValue, getComboBox, getTableCellEditorComponent, isEditorStyleSupported, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, setType, stopCellEditing
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setEditorContext, setEditorStyle, 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
 

Field Detail

CONTEXT

public static final EditorContext CONTEXT
Constructor Detail

FontNameCellEditor

public FontNameCellEditor()
Creates FontNameCellEditor.

Method Detail

createListComboBox

protected ListExComboBox createListComboBox(ComboBoxModel model,
                                            Class<?> type)
Description copied from class: ListComboBoxCellEditor
Creates the list combobox.

Overrides:
createListComboBox in class ListComboBoxCellEditor
Parameters:
model - the ComboBoxModel that provides the displayed list of items
type - the element type.
Returns:
the list combobox.

setupListComboBox

protected void setupListComboBox(ListExComboBox listComboBox)
Setup the ListExComboBox. Adds AutoCompletion feature to it. The default code is
 Component editorComponent = listComboBox.getEditor().getEditorComponent();
 if (editorComponent instanceof JTextComponent) {
     List list = new ArrayList();
     for (int i = 0; i < listComboBox.getModel().getSize(); i++) {
         Object object = listComboBox.getModel().getElementAt(i);
         list.add(object);
     }
     new AutoCompletion(((JTextComponent) editorComponent), list);
 }
 

Parameters:
listComboBox - the ListComboBox

JIDE 3.5.15