1 | |
package de.glossmaker.gui.gloss.main; |
2 | |
|
3 | |
import java.awt.event.FocusEvent; |
4 | |
import java.awt.event.FocusListener; |
5 | |
|
6 | |
import de.glossmaker.gui.gloss.help.HelpSystem; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
public class HelpFocusListener implements FocusListener { |
14 | |
|
15 | 0 | private String mHelpId = null; |
16 | |
|
17 | 0 | public HelpFocusListener(String helpID) { |
18 | 0 | mHelpId = helpID; |
19 | 0 | } |
20 | |
|
21 | |
@Override |
22 | |
public void focusGained(FocusEvent event) { |
23 | 0 | HelpSystem.getInstance().enableHelp(mHelpId); |
24 | 0 | } |
25 | |
|
26 | |
@Override |
27 | |
public void focusLost(FocusEvent event) { |
28 | |
|
29 | 0 | } |
30 | |
|
31 | |
} |