public class VariableComboEditor extends AbstractCellEditor implements TableCellEditor, ActionListener, FocusListener, MouseListener
| Modifier and Type | Class and Description |
|---|---|
class |
VariableComboEditor.JRowBox
Very simple extension of JComboBox that simply adds an int
field to designate which row this combobox edits.
|
| Modifier and Type | Field and Description |
|---|---|
protected JTable |
refTable
holds the table of references this cell editor is for
|
changeEvent, listenerList| Constructor and Description |
|---|
VariableComboEditor(Vector IDP,
Vector AddP,
MetadataPane.TablePanel tp,
Hashtable internalDefs)
Construct a new VariableComboEditor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Handle whenever the user has selected an item from this combobox.
|
void |
addAll(VariableComboEditor.JRowBox jrb)
If we give up on tailoring the combobox to the appropriate types,
this method simply adds all possible references of all types to
the combobox.
|
void |
focusGained(FocusEvent e)
Needs this in order to handle when the user presses tab
while the editor combobox is still open.
|
void |
focusLost(FocusEvent e) |
Object |
getCellEditorValue()
Implement the one CellEditor method that AbstractCellEditor doesn't.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Implement the one method defined by TableCellEditor.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e)
Handle whenever the user clicks on this editor.
|
void |
mouseReleased(MouseEvent e) |
void |
setDefs(Vector IDP,
Vector AddP)
Reset the necessary lists for this editor.
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingprotected JTable refTable
public VariableComboEditor(Vector IDP, Vector AddP, MetadataPane.TablePanel tp, Hashtable internalDefs)
IDP - vector of TablePanels that have been found to have ID
attributes.AddP - vector of Strings that hold all external LSIDs found in this
file.tp - the TablePanel this editor edits.internalDefs - a hashtable representing semantic type defs found in
the current open file itself.public void addAll(VariableComboEditor.JRowBox jrb)
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerCopyright © 2014 Open Microscopy Environment