removed the persistentAlert from UserStatusPanel; no longer needed; it's now in ErrorReporter

This commit is contained in:
Axel Uhl committed 2013-06-21 17:34:28 +02:00
1 parent 6dcd3e56ce
commit b8cb81f45a
1 file changed
-13
@@ -19,16 +19,12 @@ public class UserStatusPanel extends FlowPanel {
private final Label userRolesText;
public final Label persistentAlert = new Label("");
public UserStatusPanel(final UserManagementServiceAsync userManagementService, final ErrorReporter errorReporter) {
super();
userNameLabel = new Label("User:");
userNameText = new Label("");
userRolesText = new Label("");
user = null;
userManagementService.getUser(new AsyncCallback<UserDTO>() {
@Override
public void onFailure(Throwable caught) {
@@ -40,14 +36,9 @@ public class UserStatusPanel extends FlowPanel {
updateUser(result);
}
});
addFloatingWidget(userNameLabel);
addFloatingWidget(userNameText);
addFloatingWidget(userRolesText);
persistentAlert.setStyleName("global-alert-message");
add(persistentAlert);
updateUser(user);
}
@@ -68,8 +59,4 @@ public class UserStatusPanel extends FlowPanel {
userRolesText.setText("Unknown");
}
}
public void setGlobalAlert(String message) {
persistentAlert.setText(message);
}
}