modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/upload/BundleFileUploadForm.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit 994a9dbec2327a21f0a4886dbac1c25fafd0670d Author: John Mazzitelli mazz@redhat.com Date: Fri Mar 26 14:05:09 2010 -0400
i can't figure out how to redraw this icon without hiding then showing it again. prior to doing this, the new icon would not show up
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/upload/BundleFileUploadForm.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/upload/BundleFileUploadForm.java index 1d67a73..b0617f0 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/upload/BundleFileUploadForm.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/components/upload/BundleFileUploadForm.java @@ -178,14 +178,16 @@ public class BundleFileUploadForm extends DynamicCallbackForm { icon.setTooltip("Uploaded bundle file successfully"); CoreGUI.getMessageCenter().notify( new Message("Uploaded bundle file successfully", results, Severity.Info)); - markForRedraw(); + icon.hide(); + icon.show(); } else { uploadResults = Boolean.FALSE; icon.setIcons(iconRed); icon.setTooltip("Bundle file upload failed"); CoreGUI.getMessageCenter() .notify(new Message("Bundle file upload failed", results, Severity.Error)); - markForRedraw(); + icon.hide(); + icon.show(); } } }); @@ -196,7 +198,8 @@ public class BundleFileUploadForm extends DynamicCallbackForm { icon.setIcons(iconRed); icon.setTooltip("Bundle file upload failed"); CoreGUI.getMessageCenter().notify(new Message("Bundle file upload request failed", Severity.Error)); - markForRedraw(); + icon.hide(); + icon.show(); } }); }
rhq-commits@lists.fedorahosted.org