class TregexPatternTable.Editor extends TregexPatternTable.Renderer
TextCellEditor.EditorDelegate
Modifier and Type | Field and Description |
---|---|
protected BalloonTip |
balloon
Balloon tip
|
protected javax.swing.JComponent |
component
Returned wrapping component
|
private static long |
serialVersionUID |
textComponent
clickCountToStart, delegate, editorComponent
Constructor and Description |
---|
Editor(TregexPatternCell textComponent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
enableToolbar(boolean flag)
Enable side toolbar
|
java.lang.Object |
getCellEditorValue()
Forwards the message from the
CellEditor to the delegate . |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Implements the
TableCellEditor interface. |
boolean |
isCellEditable(java.util.EventObject anEvent)
Forwards the message from the
CellEditor to the delegate . |
private void |
putBalloon()
Put balloon on display
|
private void |
removeBalloon()
Remove balloon from display
|
private void |
setBalloon(edu.stanford.nlp.trees.tregex.TregexPattern pattern)
Set balloon's tregex pattern
|
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Forwards the message from the
CellEditor to the delegate . |
boolean |
stopCellEditing()
Forwards the message from the
CellEditor to the delegate . |
getTableCellRendererComponent, set
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
private static final long serialVersionUID
protected final javax.swing.JComponent component
protected BalloonTip balloon
public Editor(TregexPatternCell textComponent)
textComponent
- text componentpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
TextCellEditor
TableCellEditor
interface.getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
getTableCellEditorComponent
in class TextCellEditor
public java.lang.Object getCellEditorValue()
TextCellEditor
CellEditor
to the delegate
.getCellEditorValue
in interface javax.swing.CellEditor
getCellEditorValue
in class TextCellEditor
TextCellEditor.EditorDelegate.getCellEditorValue()
public boolean isCellEditable(java.util.EventObject anEvent)
TextCellEditor
CellEditor
to the delegate
.isCellEditable
in interface javax.swing.CellEditor
isCellEditable
in class TextCellEditor
TextCellEditor.EditorDelegate.isCellEditable(EventObject)
public boolean shouldSelectCell(java.util.EventObject anEvent)
TextCellEditor
CellEditor
to the delegate
.shouldSelectCell
in interface javax.swing.CellEditor
shouldSelectCell
in class TextCellEditor
TextCellEditor.EditorDelegate.shouldSelectCell(EventObject)
public boolean stopCellEditing()
TextCellEditor
CellEditor
to the delegate
.stopCellEditing
in interface javax.swing.CellEditor
stopCellEditing
in class TextCellEditor
TextCellEditor.EditorDelegate.stopCellEditing()
private void setBalloon(edu.stanford.nlp.trees.tregex.TregexPattern pattern)
pattern
- tregex patternprivate void putBalloon()
private void removeBalloon()
private void enableToolbar(boolean flag)
flag
- on/off