View Javadoc

1   package org.telscenter.pas.service;
2   
3   import javax.swing.JDialog;
4   import javax.swing.JFrame;
5   
6   import org.telscenter.pas.common.ui.CommonUI;
7   import org.telscenter.pas.hint.Hint;
8   import org.telscenter.pas.properties.HintSet;
9   
10  public class HintService implements IHintService {
11  
12  	private JFrame rootFrame;
13  
14  	private HintSet hintSet;
15  
16  	public HintService(JFrame rootFrame) {
17  		this.rootFrame = rootFrame;
18  	}
19  
20  	public void showMockHint() {
21  		JDialog dialog = new JDialog(rootFrame, "mock hink"); //$NON-NLS-1$
22  		dialog.setSize(200, 300);
23  		dialog.setModal(true);
24  		dialog.setVisible(true);
25  	}
26  
27  	public JDialog popupHint(HintSet hintSet) {
28  		this.hintSet = hintSet;
29  		return CommonUI.showHintDialog(hintSet, rootFrame);
30  	}
31  	
32  
33  }