Révision 1813
tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/swt/SwingChartComposite.java (revision 1813) | ||
---|---|---|
243 | 243 |
public void windowLostFocus(WindowEvent e) { |
244 | 244 |
// TODO Auto-generated method stub |
245 | 245 |
System.out.println("SwingChartComposite.SwingChartComposite(...).new WindowFocusListener() {...}.windowLostFocus()"); |
246 |
|
|
247 |
// FIXME: For Swing focus debug tests |
|
248 |
if(RCPPreferences.getInstance().getBoolean(TBXPreferences.EXPERT_USER)) { |
|
249 |
((JComponent) chartComponent).setBorder(javax.swing.BorderFactory.createEmptyBorder()); |
|
250 |
} |
|
251 |
|
|
252 |
|
|
246 | 253 |
} |
247 | 254 |
|
248 | 255 |
@Override |
249 | 256 |
public void windowGainedFocus(WindowEvent e) { |
257 |
|
|
258 |
// FIXME: For Swing focus debug tests |
|
259 |
if(RCPPreferences.getInstance().getBoolean(TBXPreferences.EXPERT_USER)) { |
|
260 |
((JComponent) chartComponent).setBorder(new LineBorder(Color.red, 1)); |
|
261 |
} |
|
262 |
|
|
263 |
|
|
250 | 264 |
// TODO Auto-generated method stub |
251 | 265 |
System.out.println("SwingChartComposite.SwingChartComposite(...).new WindowFocusListener() {...}.windowGainedFocus()"); |
252 | 266 |
} |
... | ... | |
365 | 379 |
// Debug |
366 | 380 |
Log.finest(TXMCoreMessages.bind("SwingChartComposite.requestFocusInChartComponent(): AWT component focus given state = {0}.", ((Component) chartComponent).isFocusOwner())); //$NON-NLS-1$ |
367 | 381 |
|
368 |
// FIXME: For Swing focus debug tests |
|
369 |
if(RCPPreferences.getInstance().getBoolean(TBXPreferences.EXPERT_USER)) { |
|
370 |
if(((Component) chartComponent).isFocusOwner()) { |
|
371 |
((JComponent) chartComponent).setBorder(new LineBorder(Color.red, 1)); |
|
372 |
} |
|
373 |
else { |
|
374 |
((JComponent) chartComponent).setBorder(javax.swing.BorderFactory.createEmptyBorder()); |
|
375 |
} |
|
376 |
} |
|
382 |
// // FIXME: For Swing focus debug tests
|
|
383 |
// if(RCPPreferences.getInstance().getBoolean(TBXPreferences.EXPERT_USER)) {
|
|
384 |
// if(((Component) chartComponent).isFocusOwner()) {
|
|
385 |
// ((JComponent) chartComponent).setBorder(new LineBorder(Color.red, 1));
|
|
386 |
// }
|
|
387 |
// else {
|
|
388 |
// ((JComponent) chartComponent).setBorder(javax.swing.BorderFactory.createEmptyBorder());
|
|
389 |
// }
|
|
390 |
// }
|
|
377 | 391 |
|
378 | 392 |
|
379 | 393 |
} |
Formats disponibles : Unified diff