edu.stanford.smi.protegex.owl.ui.components.annotations
Class AnnotationsValueEditor

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended byedu.stanford.smi.protegex.owl.ui.components.annotations.AnnotationsValueEditor
All Implemented Interfaces:
CellEditor, Serializable, TableCellEditor

public class AnnotationsValueEditor
extends AbstractCellEditor
implements TableCellEditor

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Sep 7, 2005

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm

See Also:
Serialized Form

Field Summary
static int EDITING_MARGIN
           
private  Border focusBorder
           
private  AnnotationsTableCellHolder multiLineHolder
           
private  AnnotationsTableCellHolder singleLineHolder
           
private  JTable table
           
private  JTextArea textArea
           
private  JTextComponent textComponent
           
private  JTextField textField
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
AnnotationsValueEditor(OWLModel owlModel, JTable t)
           
 
Method Summary
private  void focusTextField()
           
 Object getCellEditorValue()
           
private  int getRowHeight(JTable table, int row)
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(EventObject e)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

textArea

private JTextArea textArea

multiLineHolder

private AnnotationsTableCellHolder multiLineHolder

textField

private JTextField textField

singleLineHolder

private AnnotationsTableCellHolder singleLineHolder

textComponent

private JTextComponent textComponent

table

private JTable table

focusBorder

private Border focusBorder

EDITING_MARGIN

public static final int EDITING_MARGIN
See Also:
Constant Field Values
Constructor Detail

AnnotationsValueEditor

public AnnotationsValueEditor(OWLModel owlModel,
                              JTable t)
Method Detail

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor

focusTextField

private void focusTextField()

isCellEditable

public boolean isCellEditable(EventObject e)
Specified by:
isCellEditable in interface CellEditor

getRowHeight

private int getRowHeight(JTable table,
                         int row)