|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 cellMethod 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 ICellEditor
getEditorControl
in class CellEditorBase
table
- 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 ICellEditor
storeInput
- 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 ICellEditor
handleClick
in class CellEditorBase
table
- the jaret table callingrow
- rowcolumn
- columndrawingArea
- the rectangle of the cellx
- clicked coordinate xy
- clicked coordinate y
public void dispose()
dispose
in interface ICellEditor
dispose
in class CellEditorBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |