Changeset 5862
- Timestamp:
- 2003-11-18T08:32:00+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Dictionary.java
r5785 r5862 67 67 * @version 2.3 68 68 */ 69 public class Dictionary 69 public class Dictionary 70 70 extends HashMap { 71 71 … … 348 348 // Update the component using the AWTEvent queue 349 349 ComponentDetails details = new ComponentDetails(true, text_key, args, false, null); 350 ComponentUpdateTask task = new ComponentUpdateTask(component, details );350 ComponentUpdateTask task = new ComponentUpdateTask(component, details, true); 351 351 SwingUtilities.invokeLater(task); 352 352 } … … 359 359 // Update the component using the AWTEvent queue 360 360 ComponentDetails details = new ComponentDetails(false, null, null, true, tooltip_key); 361 ComponentUpdateTask task = new ComponentUpdateTask(component, details );361 ComponentUpdateTask task = new ComponentUpdateTask(component, details, true); 362 362 SwingUtilities.invokeLater(task); 363 363 } … … 394 394 395 395 // Update the component using the AWTEvent queue 396 ComponentUpdateTask task = new ComponentUpdateTask(component, details );396 ComponentUpdateTask task = new ComponentUpdateTask(component, details, true); 397 397 SwingUtilities.invokeLater(task); 398 398 } 399 399 } 400 400 401 402 static public void registerTooltip(Component component, String tooltip_key) 401 static public void registerTooltip(Component component, String tooltip_key) { 402 self.registerTooltip(component, tooltip_key, true); 403 } 404 405 static public void registerTooltip(Component component, String tooltip_key, boolean is_key) 403 406 { 404 407 if (component != null) { … … 415 418 416 419 // Update the component using the AWTEvent queue 417 ComponentUpdateTask task = new ComponentUpdateTask(component, details );420 ComponentUpdateTask task = new ComponentUpdateTask(component, details, is_key); 418 421 SwingUtilities.invokeLater(task); 419 422 } … … 448 451 private String tooltip = null; 449 452 450 public ComponentUpdateTask(Component component, ComponentDetails details )453 public ComponentUpdateTask(Component component, ComponentDetails details, boolean is_key) 451 454 { 452 455 this.component = component; … … 456 459 } 457 460 if (details.has_tooltip) { 458 tooltip = self.oldget(details.tooltip_key, (String[]) null); 461 if(is_key) { 462 tooltip = self.oldget(details.tooltip_key, (String[]) null); 463 } 464 else { 465 tooltip = details.tooltip_key; 466 } 459 467 } 460 468 }
Note:
See TracChangeset
for help on using the changeset viewer.