|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kupzog.ktable.KTableCellEditor
de.kupzog.ktable.editors.TableCellEditorDialog
public abstract class TableCellEditorDialog
An abstract base implementation for a cell editor that opens a dialog.
Implement the methods getDialog()
and
setupShellProperties()
as needed.
The dialog is automatically opened in blocking mode. The editor is closed
when the dialog is closed by the user.
Field Summary |
---|
Fields inherited from class de.kupzog.ktable.KTableCellEditor |
---|
DOUBLECLICK, KEY_ANY, KEY_RETURN_AND_SPACE, SINGLECLICK |
Constructor Summary | |
---|---|
TableCellEditorDialog()
|
Method Summary | |
---|---|
void |
close(boolean save)
Called when the open-method returns. |
abstract org.eclipse.jface.dialogs.Dialog |
getDialog(org.eclipse.swt.widgets.Shell shell)
|
void |
open(KTable table,
int col,
int row,
org.eclipse.swt.graphics.Rectangle rect)
Activates the editor at the given position. |
void |
setBounds(org.eclipse.swt.graphics.Rectangle rect)
Sets the bounds of the dialog to the cell bounds. |
void |
setContent(java.lang.Object content)
Ignored. |
abstract void |
setupShellProperties(org.eclipse.swt.widgets.Shell dialogShell)
Changes the properties of the dialog shell. |
Methods inherited from class de.kupzog.ktable.KTableCellEditor |
---|
dispose, getActivationSignals, getBounds, getControl, isApplicable, isFocused, setToolTipText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableCellEditorDialog()
Method Detail |
---|
public void open(KTable table, int col, int row, org.eclipse.swt.graphics.Rectangle rect)
KTableCellEditor
open
in class KTableCellEditor
public abstract org.eclipse.jface.dialogs.Dialog getDialog(org.eclipse.swt.widgets.Shell shell)
public abstract void setupShellProperties(org.eclipse.swt.widgets.Shell dialogShell)
Overwrite to change the properties.
dialogShell
- The shell of the dialog.public void close(boolean save)
close
in class KTableCellEditor
save
- If true, the content is saved to the underlying table.public void setBounds(org.eclipse.swt.graphics.Rectangle rect)
setupShellProperties(Shell)
.
setBounds
in class KTableCellEditor
public void setContent(java.lang.Object content)
setContent
in class KTableCellEditor
content
- The new content to set.de.kupzog.ktable.KTableCellEditor#setContent(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |