ewe.ui
Class TableModel.CellControl

java.lang.Object
  extended byewe.ui.TableModel.CellControl
All Implemented Interfaces:
EventListener
Enclosing class:
TableModel

public class TableModel.CellControl
extends Object
implements EventListener

This class is used to contain and control a Control that is used to edit data within a Cell in the TableModel.


Field Summary
 Point cell
          The x (column) and y (row) of the cell being edited.
 Control control
          The Control that is being used for editing.
 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 Summary
TableModel.CellControl(Point cell, Control control)
           
 
Method Summary
 void exit()
           
 void onEvent(Event ev)
           
protected  void setControl(Control control)
           
 void show(int how)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

cell

public Point cell
The x (column) and y (row) of the cell being edited.


control

public Control control
The Control that is being used for editing.


exitOnLostFocus

public 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. This is true by default.


takeFirstPress

public boolean takeFirstPress
If this is true then the same mouse/pen press used to activate the CellControl is passed to the Control itself. This is true by default.


exitOnDataChange

public 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. This is false by default.


exitOnPopupClosed

public 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. This is false by default.


popupOnly

public boolean popupOnly
If this is true then the Control is assumed to show a popup frame when displayed. In this case the Control itself is made invisible and only the popup frame will be shown. This is useful for controls like mChoice or NumberEntry.

Constructor Detail

TableModel.CellControl

public TableModel.CellControl(Point cell,
                              Control control)
Method Detail

setControl

protected void setControl(Control control)

exit

public void exit()

show

public void show(int how)

onEvent

public void onEvent(Event ev)
Specified by:
onEvent in interface EventListener