public class TableModel.CellControl extends Object implements EventListener
Modifier and Type | Field and Description |
---|---|
Point |
cell
The x (column) and y (row) of the cell being edited.
|
Control |
control
The Control that is being used for editing.
|
int |
controlConstraints
If this is not zero then it will be used to place the control.
|
boolean |
exitOnDataChange
If this is true then as soon as data is changed the Control will exit - usually
disappearing and leaving only the cell data itself.
|
boolean |
exitOnLostFocus
If this is true then the Control will "exit" if it loses focus - usually this means
disappearing and leaving only the cell data itself.
|
boolean |
exitOnPopupClosed
If this is true then as soon as any popup Frame shown by the Control is closed the
Control will exit - usually
disappearing and leaving only the cell data itself.
|
boolean |
popupOnly
If this is true then the Control is assumed to show a popup frame when
displayed.
|
boolean |
takeFirstPress
If this is true then the same mouse/pen press used to activate the CellControl is passed
to the Control itself.
|
Constructor and Description |
---|
CellControl(Point cell,
Control control) |
Modifier and Type | Method and Description |
---|---|
void |
exit() |
void |
hideReveal(boolean isHide) |
void |
onEvent(Event ev) |
protected void |
setControl(Control control) |
TableModel.CellControl |
setForPopupOnly()
This setups up the CellControl for popup only mode.
|
void |
show(int how) |
public Point cell
public Control control
public boolean exitOnLostFocus
public boolean takeFirstPress
public boolean exitOnDataChange
public boolean exitOnPopupClosed
public boolean popupOnly
public int controlConstraints
protected void setControl(Control control)
public TableModel.CellControl setForPopupOnly()
public void exit()
public void hideReveal(boolean isHide)
public void show(int how)
public void onEvent(Event ev)