public class SexagesimalTableCellEditor extends DefaultCellEditor
DefaultCellEditor.EditorDelegate
clickCountToStart, delegate, editorComponent
changeEvent, listenerList
Constructor and Description |
---|
SexagesimalTableCellEditor(boolean hoursFlag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCellEditorValue()
Returns the value contained in the editor
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
This method is sent to the editor by the drawing table to
configure the editor appropriately before drawing.
|
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, removeCellEditorListener
public SexagesimalTableCellEditor(boolean hoursFlag)
hoursFlag
- if true, divide the cell value by 15 and display hours : min : sec,
otherwise display deg : min : sec.public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
getTableCellEditorComponent
in class DefaultCellEditor
table
- the JTable that is asking the editor to draw.
This parameter can be null.value
- the value of the cell to be rendered. It is
up to the specific editor to interpret
and draw the value. eg. if value is the
String "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null is a valid value.isSelected
- true is the cell is to be editor with
selection highlightingrow
- the row index of the cell being drawn. When
drawing the header the rowIndex is -1.column
- the column index of the cell being drawnpublic Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
getCellEditorValue
in class DefaultCellEditor
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.