|
||||||||||
| 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
public abstract class CellEditorBase
Abstract base implementation for ICellEditors for the jaret table.
| Field Summary | |
|---|---|
protected IColumn |
_column
member storing the last requested column. |
protected IRow |
_row
member storing the last requested row. |
protected JaretTable |
_table
member storing the requesting table. |
| Constructor Summary | |
|---|---|
CellEditorBase()
|
|
| 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. |
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. |
boolean |
handleClick(JaretTable table,
IRow row,
IColumn column,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
Handle a click on the cell. |
| 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 |
|---|
stopEditing |
| Field Detail |
|---|
protected IRow _row
protected IColumn _column
protected JaretTable _table
| Constructor Detail |
|---|
public CellEditorBase()
| 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 ICellEditortable - 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 dispose()
dispose in interface ICellEditorpublic int getPreferredHeight()
getPreferredHeight in interface ICellEditor
public boolean handleClick(JaretTable table,
IRow row,
IColumn column,
org.eclipse.swt.graphics.Rectangle drawingArea,
int x,
int y)
handleClick in interface ICellEditortable - the jaret table callingrow - rowcolumn - columndrawingArea - the rectangle of the cellx - clicked coordinate xy - clicked coordinate y
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||