bsys.propertyview
Class ListEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by bsys.propertyview.ListEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

 class ListEditor
extends javax.swing.DefaultCellEditor

List editor

Author:
Bernard Bou

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
private static long serialVersionUID
           
private  java.util.Map<java.lang.String,javax.swing.ImageIcon> theImageMap
          String to image map
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ListEditor()
          Constructor
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 javax.swing.JComboBox getComboBox()
          Get access to combobox component
 void setEditable(boolean thisFlag)
          Allow for edit line
 void setImageMap(java.util.Map<java.lang.String,javax.swing.ImageIcon> thisImageMap)
          Render strings as images (as per map)
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

theImageMap

private java.util.Map<java.lang.String,javax.swing.ImageIcon> theImageMap
String to image map

Constructor Detail

ListEditor

public ListEditor()
Constructor

Method Detail

getComboBox

public javax.swing.JComboBox getComboBox()
Get access to combobox component

Returns:
combo box component

setEditable

public void setEditable(boolean thisFlag)
Allow for edit line

Parameters:
thisFlag - true/false

setImageMap

public void setImageMap(java.util.Map<java.lang.String,javax.swing.ImageIcon> thisImageMap)
Render strings as images (as per map)

Parameters:
thisImageMap - string to image map

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Overrides:
getCellEditorValue in class javax.swing.DefaultCellEditor