com.togethersoft.openapi.ide.inspector.util.editors
Class SwingComboBoxEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
              |
              +--com.togethersoft.openapi.ide.inspector.util.editors.SwingComboBoxEditorBase
                    |
                    +--com.togethersoft.openapi.ide.inspector.util.editors.SwingComboBoxEditor

public class SwingComboBoxEditor
extends SwingComboBoxEditorBase

Represents editor on the base of MutableComboBox.

Author:
TogetherSoft
Since: Together 4.0

Inner Class Summary
 private classSwingComboBoxEditor.IconRenderer
           

Field Summary
 private MutableComboBoxModelmyComboModel
           
 private MapmyIconsMap
           

Fields inherited from class com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
MEDIUM_DIMENSION, panel, SMALL_DIMENSION

Constructor Summary
SwingComboBoxEditor()
          Creates ComboBox with the default mutable model and without lists of the visible names and icons.
SwingComboBoxEditor(MutableComboBoxModel model)
          Creates ComboBox with the lists of the visible names and icons.
SwingComboBoxEditor(MutableComboBoxModel model, String[] visibleNames, String[] iconNames)
          Creates ComboBox with the custom model, list of visible names and icons names.

Method Summary
 protected ListCellRenderergetRenderer()
           

Methods inherited from class com.togethersoft.openapi.ide.inspector.util.editors.SwingComboBoxEditorBase
getCustomEditor, getModel, getValue, getVisibleName, isValueEditable, setModel, setValue, setValueEditable

Methods inherited from class com.togethersoft.openapi.ide.inspector.util.editors.SwingEditorSupport
addCellEditorListener, fireEditingCanceled, fireEditingStopped, init, removeCellEditorListener, setAlignment, supportsCustomEditor

Methods inherited from class java.beans.PropertyEditorSupport
isPaintable, paintValue, getJavaInitializationString, getAsText, setAsText, getTags, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

myComboModel

private MutableComboBoxModel myComboModel

myIconsMap

private Map myIconsMap
Constructor Detail

SwingComboBoxEditor

public SwingComboBoxEditor()
Creates ComboBox with the default mutable model and without lists of the visible names and icons.

SwingComboBoxEditor

public SwingComboBoxEditor(MutableComboBoxModel model)
Creates ComboBox with the lists of the visible names and icons.

SwingComboBoxEditor

public SwingComboBoxEditor(MutableComboBoxModel model, String[] visibleNames, String[] iconNames)
Creates ComboBox with the custom model, list of visible names and icons names.
Method Detail

getRenderer

protected ListCellRenderer getRenderer()

Association Links

to Class javax.swing.MutableComboBoxModel

to Class java.util.Map