/*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2013 GRNET S.A. All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* The widget constructor.
*/
public CredentialsDialog(final Pithos app) {
- Anchor close = new Anchor();
+ Anchor close = new Anchor("close");
close.addStyleName("close");
close.addClickHandler(new ClickHandler() {
});
// Set the dialog's caption.
setText("User Credentials");
- setAnimationEnabled(true);
setGlassEnabled(true);
setStyleName("pithos-DialogBox");
// A VerticalPanel that contains the 'about' label and the 'OK' button.
table.setText(0, 0, "Username");
table.setText(1, 0, "Token");
TextBox username = new TextBox();
- username.setText(app.getUsername());
+ username.setText(app.getUserID());
username.setReadOnly(true);
username.setWidth(WIDTH_FIELD);
username.addClickHandler(new ClickHandler() {
table.setWidget(0, 1, username);
TextBox tokenBox = new TextBox();
- tokenBox.setText(app.getToken());
+ tokenBox.setText(app.getUserToken());
tokenBox.setReadOnly(true);
tokenBox.setWidth(WIDTH_FIELD);
tokenBox.addClickHandler(new ClickHandler() {
// Create the 'OK' button, along with a listener that hides the dialog
// when the button is clicked.
- Button confirm = new Button("Close", new ClickHandler() {
+ Button confirm = new Button("OK", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();