JIDE 3.5.15

com.jidesoft.grid
Class LegacyFontNameCellEditor

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

public class LegacyFontNameCellEditor
extends LegacyListComboBoxCellEditor

CellEditor for FontFace.

See Also:
Serialized Form

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

Field Detail

CONTEXT

public static final EditorContext CONTEXT
Constructor Detail

LegacyFontNameCellEditor

public LegacyFontNameCellEditor()
Creates FontNameCellEditor.

Method Detail

createListComboBox

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

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

setupListComboBox

protected void setupListComboBox(ListComboBox listComboBox)
Setup the ListComboBox. 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