GrammarScope  4.0.0
Classes | Public Member Functions | Protected Attributes | Static Private Attributes | List of all members
grammarscope.common.model.TextCellEditor Class Reference
Inheritance diagram for grammarscope.common.model.TextCellEditor:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.common.model.TextCellEditor:
Collaboration graph
[legend]

Classes

class  EditorDelegate
 

Public Member Functions

 TextCellEditor (final JTextPane textPane)
 
Component getComponent ()
 
void setClickCountToStart (final int count)
 
int getClickCountToStart ()
 
Object getCellEditorValue ()
 
boolean isCellEditable (final EventObject anEvent)
 
boolean shouldSelectCell (final EventObject anEvent)
 
boolean stopCellEditing ()
 
void cancelCellEditing ()
 
Component getTreeCellEditorComponent (final JTree tree, final Object value, final boolean isSelected, final boolean expanded, final boolean leaf, final int row)
 
Component getTableCellEditorComponent (final JTable table, final Object value, final boolean isSelected, final int row, final int column)
 

Protected Attributes

final JComponent editorComponent
 
final EditorDelegate delegate
 
int clickCountToStart
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

The default editor for table and tree cells.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package.

Author
Alan Chung
Philip Milne
Bernard Bou
Version
1.52 11/17/05

Constructor & Destructor Documentation

◆ TextCellEditor()

grammarscope.common.model.TextCellEditor.TextCellEditor ( final JTextPane  textPane)

Constructs a DefaultCellEditor that uses a text field.

Parameters
textPanea JTextPane object

Member Function Documentation

◆ cancelCellEditing()

void grammarscope.common.model.TextCellEditor.cancelCellEditing ( )

Forwards the message from the CellEditor to the delegate.

See also
EditorDelegate::cancelCellEditing

◆ getCellEditorValue()

Object grammarscope.common.model.TextCellEditor.getCellEditorValue ( )

Forwards the message from the CellEditor to the delegate.

See also
EditorDelegate::getCellEditorValue

Reimplemented in grammarscope.editor.component.TregexPatternTable.Editor.

◆ getClickCountToStart()

int grammarscope.common.model.TextCellEditor.getClickCountToStart ( )

Returns the number of clicks needed to start editing.

Returns
the number of clicks needed to start editing

◆ getComponent()

Component grammarscope.common.model.TextCellEditor.getComponent ( )

Returns a reference to the editor component.

Returns
the editor Component

◆ getTableCellEditorComponent()

Component grammarscope.common.model.TextCellEditor.getTableCellEditorComponent ( final JTable  table,
final Object  value,
final boolean  isSelected,
final int  row,
final int  column 
)

Implements the TableCellEditor interface.

Reimplemented in grammarscope.editor.component.TregexPatternTable.Editor.

◆ getTreeCellEditorComponent()

Component grammarscope.common.model.TextCellEditor.getTreeCellEditorComponent ( final JTree  tree,
final Object  value,
final boolean  isSelected,
final boolean  expanded,
final boolean  leaf,
final int  row 
)

Implements the TreeCellEditor interface.

◆ isCellEditable()

boolean grammarscope.common.model.TextCellEditor.isCellEditable ( final EventObject  anEvent)

Forwards the message from the CellEditor to the delegate.

See also
EditorDelegate::isCellEditable(EventObject)

Reimplemented in grammarscope.editor.component.TregexPatternTable.Editor.

◆ setClickCountToStart()

void grammarscope.common.model.TextCellEditor.setClickCountToStart ( final int  count)

Specifies the number of clicks needed to start editing.

Parameters
countan int specifying the number of clicks needed to start editing
See also
getClickCountToStart

◆ shouldSelectCell()

boolean grammarscope.common.model.TextCellEditor.shouldSelectCell ( final EventObject  anEvent)

Forwards the message from the CellEditor to the delegate.

See also
EditorDelegate::shouldSelectCell(EventObject)

Reimplemented in grammarscope.editor.component.TregexPatternTable.Editor.

◆ stopCellEditing()

boolean grammarscope.common.model.TextCellEditor.stopCellEditing ( )

Forwards the message from the CellEditor to the delegate.

See also
EditorDelegate::stopCellEditing

Reimplemented in grammarscope.editor.component.TregexPatternTable.Editor.

Member Data Documentation

◆ clickCountToStart

int grammarscope.common.model.TextCellEditor.clickCountToStart
protected

An integer specifying the number of clicks needed to start editing. Even if clickCountToStart is defined as zero, it will not initiate until a click occurs.

◆ delegate

final EditorDelegate grammarscope.common.model.TextCellEditor.delegate
protected

The delegate class which handles all methods sent from the CellEditor.

◆ editorComponent

final JComponent grammarscope.common.model.TextCellEditor.editorComponent
protected

The Swing component being edited.

◆ serialVersionUID

final long grammarscope.common.model.TextCellEditor.serialVersionUID = 1L
staticprivate

The documentation for this class was generated from the following file: