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 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
LookUpCellEditor
public LookUpCellEditor(com.sun.java.swing.JComboBox box)
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()