de.kupzog.ktable.editors
Class KTableCellEditorText
java.lang.Object
de.kupzog.ktable.KTableCellEditor
de.kupzog.ktable.editors.KTableCellEditorText
public class KTableCellEditorText
- extends KTableCellEditor
A simple cell editor that simply creates a text widget that allows the user
to type in one line of text.
This class is very similar to KTableCellEditorText2
that additionally
allows the user to navigate within the text widget using ARROW_LEFT and ARROW_RIGHT
keys.
- Author:
- Lorenz Maierhofer
- See Also:
KTableCellEditorText2
Method Summary |
void |
close(boolean save)
Deactivates the editor. |
void |
open(KTable table,
int col,
int row,
org.eclipse.swt.graphics.Rectangle rect)
Activates the editor at the given position. |
void |
setContent(java.lang.Object content)
Allows that external classes can set the content of
the underlying |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KTableCellEditorText
public KTableCellEditorText()
open
public void open(KTable table,
int col,
int row,
org.eclipse.swt.graphics.Rectangle rect)
- Description copied from class:
KTableCellEditor
- Activates the editor at the given position.
- Overrides:
open
in class KTableCellEditor
close
public void close(boolean save)
- Description copied from class:
KTableCellEditor
- Deactivates the editor.
- Overrides:
close
in class KTableCellEditor
- Parameters:
save
- If true, the content is saved to the underlying table.
setContent
public void setContent(java.lang.Object content)
- Description copied from class:
KTableCellEditor
- Allows that external classes can set the content of
the underlying
- Specified by:
setContent
in class KTableCellEditor
- Parameters:
content
- The new content to set.