|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.table.editor.CellEditorBase
de.jaret.util.ui.table.editor.TextCellEditor
public class TextCellEditor
Cell Editor for editing strings. Supports single and multiple line edits. For multiple line usage there are several options:
Key bindings: CR, TAB: accept input and leave, ALT+CR insert CR, ESC leave and reset to value when starting editing
| Field Summary | |
|---|---|
protected boolean |
_multi
|
protected org.eclipse.swt.widgets.Text |
_text
control used for editing. |
| Fields inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
|---|
_column, _row, _table |
| Constructor Summary | |
|---|---|
TextCellEditor(boolean multi)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
convertValue(IRow row,
IColumn column)
|
void |
dispose()
Dispose whatever resouces have been allocated. |
void |
focusGained(org.eclipse.swt.events.FocusEvent arg0)
|
void |
focusLost(org.eclipse.swt.events.FocusEvent arg0)
|
org.eclipse.swt.widgets.Control |
getEditorControl(JaretTable table,
IRow row,
IColumn column,
char typedKey)
Provide the Control for editing the value at row/column. |
int |
getMaxrows()
|
int |
getPreferredHeight()
If the renderer *wishes* to be sized not the height of the cell, this method may be used to announce the preferred height of the control. |
void |
setMaxrows(int maxrows)
|
void |
stopEditing(boolean storeInput)
End editing. |
protected void |
storeValue(IRow row,
IColumn column)
|
| Methods inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
|---|
handleClick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.jaret.util.ui.table.editor.ICellEditor |
|---|
handleClick |
| Field Detail |
|---|
protected boolean _multi
protected org.eclipse.swt.widgets.Text _text
| Constructor Detail |
|---|
public TextCellEditor(boolean multi)
| Method Detail |
|---|
protected java.lang.String convertValue(IRow row,
IColumn column)
protected void storeValue(IRow row,
IColumn column)
public org.eclipse.swt.widgets.Control getEditorControl(JaretTable table,
IRow row,
IColumn column,
char typedKey)
This method may return null indicating that the editor will not supply a control.
getEditorControl in interface ICellEditorgetEditorControl in class CellEditorBasetable - the table requesting the editorrow - rowcolumn - columntypedKey - the character typed when invoking the editor (may be 0 if the editor was invoked without typing
any key)
public int getPreferredHeight()
getPreferredHeight in interface ICellEditorgetPreferredHeight in class CellEditorBasepublic void focusGained(org.eclipse.swt.events.FocusEvent arg0)
focusGained in interface org.eclipse.swt.events.FocusListenerpublic void focusLost(org.eclipse.swt.events.FocusEvent arg0)
focusLost in interface org.eclipse.swt.events.FocusListenerpublic void dispose()
CellEditorBase
dispose in interface ICellEditordispose in class CellEditorBasepublic void stopEditing(boolean storeInput)
stopEditing in interface ICellEditorstoreInput - if true the editor shall save the current input.public int getMaxrows()
public void setMaxrows(int maxrows)
maxrows - the maxrows to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||