Revision 10542 trunk/frameworks/_fwAndami/src/com/iver/andami/ui/mdiFrame/NewStatusBar.java
NewStatusBar.java | ||
---|---|---|
416 | 416 |
*/ |
417 | 417 |
public void setMessage(String id, String msg) { |
418 | 418 |
JLabel lbl = (JLabel) idLabel.get(id); |
419 |
|
|
420 |
if (lbl == null) { |
|
421 |
logger.debug("no label called " + id); |
|
419 |
|
|
420 |
if (lbl!=null) { |
|
421 |
lbl.setText(msg); |
|
422 |
} |
|
423 |
else { |
|
422 | 424 |
// try with controls |
423 | 425 |
try { |
424 | 426 |
IControl control = (IControl) controls.get(id); |
425 |
if (control!=null) control.setValue(msg); |
|
427 |
if (control!=null) |
|
428 |
control.setValue(msg); |
|
426 | 429 |
} |
427 |
catch (ClassCastException ex) {}
|
|
428 |
} else {
|
|
429 |
lbl.setText(msg);
|
|
430 |
catch (ClassCastException ex) { |
|
431 |
logger.debug("no label called " + id);
|
|
432 |
}
|
|
430 | 433 |
} |
434 |
|
|
431 | 435 |
ajustar(); |
432 | 436 |
} |
433 | 437 |
|
Also available in: Unified diff