|
||||||||||
| 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.IntegerCellEditor
public class IntegerCellEditor
Cell Editor for editing integer values using a spinner widget. Well it seems that the Spinner does not support negative values ... Key bindings: CR, TAB: accept input and leave, ESC leave and reset to value when starting editing
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.Spinner |
_spinner
spinner widgrt. |
| Fields inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
|---|
_column, _row, _table |
| Constructor Summary | |
|---|---|
IntegerCellEditor()
Default construcor. |
|
IntegerCellEditor(int min,
int max)
Construct an integer cell renderer with given min and max values. |
|
| Method Summary | |
|---|---|
protected int |
convertValue(IRow row,
IColumn column)
|
void |
dispose()
Dispose whatever resouces have been allocated. |
void |
focusGained(org.eclipse.swt.events.FocusEvent arg0)
Do nothing on gaining focus. |
void |
focusLost(org.eclipse.swt.events.FocusEvent arg0)
Stop and strore when focus leaves. |
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 |
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 |
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 org.eclipse.swt.widgets.Spinner _spinner
| Constructor Detail |
|---|
public IntegerCellEditor(int min,
int max)
min - minimal valuemax - maximum valuepublic IntegerCellEditor()
| Method Detail |
|---|
protected int 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()
dispose in interface ICellEditordispose in class CellEditorBasepublic void stopEditing(boolean storeInput)
stopEditing in interface ICellEditorstoreInput - if true the editor shall save the current input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||