Coverage Report - de.glossmaker.gui.gloss.main.HelpFocusListener
 
Classes in this File Line Coverage Branch Coverage Complexity
HelpFocusListener
0%
0/7
N/A
1
 
 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  
  * @author Markus Flingelli
 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  
 }