|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kupzog.ktable.KTableCellEditor
public abstract class KTableCellEditor
Field Summary | |
---|---|
static int |
DOUBLECLICK
|
static int |
KEY_ANY
|
static int |
KEY_RETURN_AND_SPACE
|
static int |
SINGLECLICK
|
Constructor Summary | |
---|---|
KTableCellEditor()
|
Method Summary | |
---|---|
void |
close(boolean save)
Deactivates the editor. |
void |
dispose()
disposes the editor and its components |
int |
getActivationSignals()
|
org.eclipse.swt.graphics.Rectangle |
getBounds()
|
org.eclipse.swt.widgets.Control |
getControl()
|
boolean |
isApplicable(int eventType,
KTable table,
int col,
int row,
org.eclipse.swt.graphics.Point clickLocation,
java.lang.String keyInput,
int stateMask)
Is called when an activation is triggered via a mouse click. |
boolean |
isFocused()
Returns true if the editor has the focus. |
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 editor's position and size |
abstract void |
setContent(java.lang.Object content)
Allows that external classes can set the content of the underlying |
void |
setToolTipText(java.lang.String toolTip)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DOUBLECLICK
public static final int SINGLECLICK
public static final int KEY_ANY
public static final int KEY_RETURN_AND_SPACE
Constructor Detail |
---|
public KTableCellEditor()
Method Detail |
---|
public void dispose()
public void open(KTable table, int col, int row, org.eclipse.swt.graphics.Rectangle rect)
row
- col
- rect
- public void close(boolean save)
save
- If true, the content is saved to the underlying table.public boolean isFocused()
public void setBounds(org.eclipse.swt.graphics.Rectangle rect)
rect
- public org.eclipse.swt.graphics.Rectangle getBounds()
public void setToolTipText(java.lang.String toolTip)
toolTip
- public abstract void setContent(java.lang.Object content)
content
- The new content to set.public int getActivationSignals()
public boolean isApplicable(int eventType, KTable table, int col, int row, org.eclipse.swt.graphics.Point clickLocation, java.lang.String keyInput, int stateMask)
If false is returned, the editor does not get activated.
eventType
- The reason why the KTable
wants to open the editor. Either: KTableCellEditor.DOUBLECLICK
KTableCellEditor.SINGLECLICK
KTableCellEditor.KEY_ANY
KTableCellEditor.KEY_RETURN_AND_SPACE
table
- The KTable instance this editor operates on.col
- The column index to operate on.row
- The row index to operate on.clickLocation
- The point where the mouseclick occured.
null
if not activated when called for a non-mouse event. (keyboard input).keyInput
- The character input in case of keyboard event.
null
if activated because of a mouse event.stateMask
- The statemask from the causing event.
public org.eclipse.swt.widgets.Control getControl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |