|
||||||||||
| 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.BooleanCellEditor
public class BooleanCellEditor
BooleanCellEditor is not a real editor. It toggles on double click, optional on click and on a typed SPACE.
| Field Summary | |
|---|---|
protected boolean |
_singleClick
single clickk attribute: if true react on single clicks. |
| Fields inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
|---|
_column, _row, _table |
| Constructor Summary | |
|---|---|
BooleanCellEditor()
Default constructor. |
|
BooleanCellEditor(boolean singleClick)
Constructor including the singelClick property. |
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose whatever resouces have been allocated. |
org.eclipse.swt.widgets.Control |
getEditorControl(JaretTable table,
IRow row,
IColumn column,
char typedKey)
Provide the Control for editing the value at row/column. |
boolean |
handleClick(JaretTable table,
IRow row,
IColumn column,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
Handle a click on the cell. |
void |
stopEditing(boolean storeInput)
End editing. |
| Methods inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
|---|
getPreferredHeight |
| 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 |
|---|
getPreferredHeight |
| Field Detail |
|---|
protected boolean _singleClick
| Constructor Detail |
|---|
public BooleanCellEditor()
public BooleanCellEditor(boolean singleClick)
singleClick - if true the editor will react on single clicks in the cell| Method Detail |
|---|
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 void stopEditing(boolean storeInput)
stopEditing in interface ICellEditorstoreInput - if true the editor shall save the current input.
public boolean handleClick(JaretTable table,
IRow row,
IColumn column,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
handleClick in interface ICellEditorhandleClick in class CellEditorBasetable - the jaret table callingrow - rowcolumn - columndrawingArea - the rectangle of the cellx - clicked coordinate xy - clicked coordinate y
public void dispose()
dispose in interface ICellEditordispose in class CellEditorBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||