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, stopCellEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
protected 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 CellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
Copyright © 2014 Open Microscopy Environment