|
Lines 43-49
Link Here
|
| 43 |
* @param parent the parent control |
43 |
* @param parent the parent control |
| 44 |
*/ |
44 |
*/ |
| 45 |
public TextCellEditor(Composite parent) { |
45 |
public TextCellEditor(Composite parent) { |
| 46 |
super(parent); |
46 |
// specify no borders on text widget as cell outline in |
|
|
47 |
// table already provides the look of a border. |
| 48 |
this(parent, SWT.SINGLE); |
| 49 |
} |
| 50 |
/** |
| 51 |
* Creates a new text string cell editor parented under the given control. |
| 52 |
* The cell editor value is the string itself, which is initially the empty string. |
| 53 |
* Initially, the cell editor has no cell validator. |
| 54 |
* |
| 55 |
* @param parent the parent control |
| 56 |
* @param style the style bits |
| 57 |
* @since 2.1 |
| 58 |
*/ |
| 59 |
public TextCellEditor(Composite parent, int style) { |
| 60 |
super(parent, style); |
| 47 |
} |
61 |
} |
| 48 |
/** |
62 |
/** |
| 49 |
* Checks to see if the "deleteable" state (can delete/ |
63 |
* Checks to see if the "deleteable" state (can delete/ |
|
Lines 85-93
Link Here
|
| 85 |
* Method declared on CellEditor. |
99 |
* Method declared on CellEditor. |
| 86 |
*/ |
100 |
*/ |
| 87 |
protected Control createControl(Composite parent) { |
101 |
protected Control createControl(Composite parent) { |
| 88 |
// specify no borders on text widget as cell outline in |
102 |
text = new Text(parent, getStyle()); |
| 89 |
// table already provides the look of a border. |
|
|
| 90 |
text = new Text(parent, SWT.SINGLE); |
| 91 |
text.addKeyListener(new KeyAdapter() { |
103 |
text.addKeyListener(new KeyAdapter() { |
| 92 |
// hook key pressed - see PR 14201 |
104 |
// hook key pressed - see PR 14201 |
| 93 |
public void keyPressed(KeyEvent e) { |
105 |
public void keyPressed(KeyEvent e) { |