public class GeometryWKTCellEditor extends TextAreaCellEditor
If the WKT to represent a Geometry is too big, editing is not allowed, as the rendering of that big text is too slow.
DefaultCellEditor.EditorDelegate
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_WKT_LENGTH |
clickCountToStart, delegate, editorComponent
changeEvent, listenerList
Constructor and Description |
---|
GeometryWKTCellEditor()
Creates a new editor for Geometries in WKT format.
|
GeometryWKTCellEditor(int maxWKTLength,
int maxRowHeight)
Creates a new editor for Geometries in WKT format.
|
Modifier and Type | Method and Description |
---|---|
Object |
getCellEditorValue() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
getTextArea
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 static final int DEFAULT_MAX_WKT_LENGTH
public GeometryWKTCellEditor()
public GeometryWKTCellEditor(int maxWKTLength, int maxRowHeight)
maxWKTLength
- the maximum WTK length allowed to be edited.maxRowHeight
- the maximum row height for the rows with cells rendered with
this componentpublic Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
getCellEditorValue
in class DefaultCellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
getTableCellEditorComponent
in class DefaultCellEditor