Class LookUpCellEditor

java.lang.Object
  |
  +--LookUpCellEditor

public class LookUpCellEditor
extends java.lang.Object
implements com.sun.java.swing.table.TableCellEditor, com.sun.java.swing.tree.TreeCellEditor, java.awt.event.ActionListener, java.io.Serializable

CellEditor für die neue ImageDropDownBox, ist außerdem für LookUp-Funktionalität zuständig. Kann sowohl in JTable als auch in JTree verwendet werden

See Also:
Serialized Form

Field Summary
protected  com.sun.java.swing.JComboBox box
           
protected  com.sun.java.swing.event.ChangeEvent changeEvent
           
protected  int clickCountToStart
           
protected  com.sun.java.swing.event.EventListenerList listenerList
          Event listeners
 
Constructor Summary
LookUpCellEditor(com.sun.java.swing.JComboBox box)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addCellEditorListener(com.sun.java.swing.event.CellEditorListener l)
           
 void cancelCellEditing()
           
protected  void fireEditingCanceled()
          Alle angemeldeteten Listener benachrichtigen
protected  void fireEditingStopped()
          Alle angemeldeteten Listener benachrichtigen
 java.lang.Object getCellEditorValue()
           
 int getLastRow()
           
 java.lang.String getNewValue()
           
 java.awt.Component getTableCellEditorComponent(com.sun.java.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 java.awt.Component getTreeCellEditorComponent(com.sun.java.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
           
 boolean isCellEditable(java.util.EventObject anEvent)
           
 void removeCellEditorListener(com.sun.java.swing.event.CellEditorListener l)
           
 void setValue(java.lang.Object value)
           
 boolean shouldSelectCell(java.util.EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected com.sun.java.swing.event.EventListenerList listenerList
Event listeners

changeEvent

protected transient com.sun.java.swing.event.ChangeEvent changeEvent

box

protected com.sun.java.swing.JComboBox box

clickCountToStart

protected int clickCountToStart
Constructor Detail

LookUpCellEditor

public LookUpCellEditor(com.sun.java.swing.JComboBox box)
Method Detail

getCellEditorValue

public java.lang.Object getCellEditorValue()

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject anEvent)

stopCellEditing

public boolean stopCellEditing()

cancelCellEditing

public void cancelCellEditing()

addCellEditorListener

public void addCellEditorListener(com.sun.java.swing.event.CellEditorListener l)

removeCellEditorListener

public void removeCellEditorListener(com.sun.java.swing.event.CellEditorListener l)

fireEditingStopped

protected void fireEditingStopped()
Alle angemeldeteten Listener benachrichtigen

fireEditingCanceled

protected void fireEditingCanceled()
Alle angemeldeteten Listener benachrichtigen

getTreeCellEditorComponent

public java.awt.Component getTreeCellEditorComponent(com.sun.java.swing.JTree tree,
                                                     java.lang.Object value,
                                                     boolean isSelected,
                                                     boolean expanded,
                                                     boolean leaf,
                                                     int row)
Specified by:
getTreeCellEditorComponent in interface com.sun.java.swing.tree.TreeCellEditor

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(com.sun.java.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Specified by:
getTableCellEditorComponent in interface com.sun.java.swing.table.TableCellEditor

setValue

public void setValue(java.lang.Object value)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getLastRow

public int getLastRow()

getNewValue

public java.lang.String getNewValue()