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 |
textComponentclickCountToStart, 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, setcancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStartaddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerprivate 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)
TextCellEditorTableCellEditor interface.getTableCellEditorComponent in interface javax.swing.table.TableCellEditorgetTableCellEditorComponent in class TextCellEditorpublic java.lang.Object getCellEditorValue()
TextCellEditorCellEditor to the delegate.getCellEditorValue in interface javax.swing.CellEditorgetCellEditorValue in class TextCellEditorTextCellEditor.EditorDelegate.getCellEditorValue()public boolean isCellEditable(java.util.EventObject anEvent)
TextCellEditorCellEditor to the delegate.isCellEditable in interface javax.swing.CellEditorisCellEditable in class TextCellEditorTextCellEditor.EditorDelegate.isCellEditable(EventObject)public boolean shouldSelectCell(java.util.EventObject anEvent)
TextCellEditorCellEditor to the delegate.shouldSelectCell in interface javax.swing.CellEditorshouldSelectCell in class TextCellEditorTextCellEditor.EditorDelegate.shouldSelectCell(EventObject)public boolean stopCellEditing()
TextCellEditorCellEditor to the delegate.stopCellEditing in interface javax.swing.CellEditorstopCellEditing in class TextCellEditorTextCellEditor.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