jsky.util.gui
Class SexagesimalTableCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
jsky.util.gui.SexagesimalTableCellEditor
- All Implemented Interfaces:
- Serializable, CellEditor, TableCellEditor, TreeCellEditor
public class SexagesimalTableCellEditor
- extends DefaultCellEditor
Used to reformat RA,DEC coordinates in a JTable in sexagesimal notation
for display.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SexagesimalTableCellEditor
public SexagesimalTableCellEditor(boolean hoursFlag)
- Constructor.
- Parameters:
hoursFlag
- if true, divide the cell value by 15 and display hours : min : sec,
otherwise display deg : min : sec.
getTableCellEditorComponent
public 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. Return
the Component used for drawing.
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor
- Overrides:
getTableCellEditorComponent
in class DefaultCellEditor
- Parameters:
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 drawn
getCellEditorValue
public Object getCellEditorValue()
- Returns the value contained in the editor
- Specified by:
getCellEditorValue
in interface CellEditor
- Overrides:
getCellEditorValue
in class DefaultCellEditor
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.