|
|
|
@ -304,21 +304,6 @@ public class DialogGetInfoBootstrap extends Composite {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// txtAreaDescription.addKeyPressHandler(new KeyPressHandler() {
|
|
|
|
|
//
|
|
|
|
|
// @Override
|
|
|
|
|
// public void onKeyPress(KeyPressEvent event) {
|
|
|
|
|
//
|
|
|
|
|
// GWT.log(event.getUnicodeCharCode() + "");
|
|
|
|
|
//
|
|
|
|
|
// if (event.getUnicodeCharCode() == 13) {
|
|
|
|
|
// txtAreaDescription.setReadOnly(true);
|
|
|
|
|
// Window.alert("Updating description");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
buttonUpdateDescription.addClickHandler(new ClickHandler() {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -335,7 +320,20 @@ public class DialogGetInfoBootstrap extends Composite {
|
|
|
|
|
public void onClick(ClickEvent event) {
|
|
|
|
|
buttonSaveDescription.setVisible(false);
|
|
|
|
|
txtAreaDescription.setReadOnly(true);
|
|
|
|
|
Window.alert("To be implemented");
|
|
|
|
|
|
|
|
|
|
AppControllerExplorer.rpcWorkspaceService.updateDescriptionForItem(fileModel.getIdentifier(), txtAreaDescription.getValue(), new AsyncCallback<String>() {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onFailure(Throwable caught) {
|
|
|
|
|
new MessageBoxAlert("Error on updating description...", caught.getMessage(), null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(String result) {
|
|
|
|
|
GWT.log("Updated the description as: "+result);
|
|
|
|
|
txtAreaDescription.setValue(result);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|