1 | void focusLost(FocusEvent pFocusEvent) {↵ | | 1 | void focusLost(FocusEvent pFocusEvent) {↵
|
2 | // Compare if the value has changed, since we received focus.↵ | | 2 | // Compare if the value has changed, since we received focus.↵
|
3 | if (!oldValue.equals(mTextField.getText())) {↵ | | 3 | if (!oldValue.equals(mTextArea.getText())) {↵
|
4 | notifyChangeListeners();↵ | | 4 | notifyChangeListeners();↵
|
5 | }↵ | | 5 | }↵
|
6 | }↵ | | 6 | }↵
|
|
7 | /**↵ | | 7 | /**↵
|
8 | * Catch what the value was when focus was gained.↵ | | 8 | * Catch what the value was when focus was gained.↵
|
9 | */↵ | | 9 | */↵
|
10 | public void focusGained(FocusEvent pFocusEvent) {↵ | | 10 | public void focusGained(FocusEvent pFocusEvent) {↵
|
11 | oldValue = mTextField.getText();↵ | | 11 | oldValue = mTextArea.getText();↵
|
12 | | | 12 |
|