1 | public JTextArea getJTextArea(Object value)↵ | | 1 | public JTextArea getJTextArea(Object value)↵
|
2 | {↵ | | 2 | {↵
|
3 | _textComponent = new RestorableJTextArea();↵ | | 3 | _textComponent = new RestorableJTextArea();↵
|
| | | 4 | ↵
|
4 | // value is a simple string representation of the data,↵ | | 5 | // value is a simple string representation of the data,↵
|
5 | // the same one used in Text and in-cell operations.↵ | | 6 | // the same one used in Text and in-cell operations.↵
|
6 | ((RestorableJTextArea) _textComponent).setText(renderObject(value));↵ | | 7 | ((RestorableJTextArea)_textComponent).setText(renderObject(value));↵
|
| | | 8 | ↵
|
7 | // special handling of operations while editing this data type↵ | | 9 | // special handling of operations while editing this data type↵
|
8 | ((RestorableJTextArea) _textComponent).addKeyListener(new KeyTextHandler());↵ | | 10 | ((RestorableJTextArea)_textComponent).addKeyListener(new KeyTextHandler());↵
|
| | | 11 | ↵
|
9 | return (RestorableJTextArea) _textComponent;↵ | | 12 | return (RestorableJTextArea)_textComponent;↵
|
10 | | | 13 |
|