}
private void showConfigurationDialog() {
final ConfigurationDialog dialog = new ConfigurationDialog(
new OkCancelDialogCallback() {
@Override
public void okButtonClick(String text) {
final long DURATION = 1000 * 60 * 60 * 24 * 14;
// duration remembering login. 2 weeks in this example.
Date expires = new Date(System.currentTimeMillis()
+ DURATION);
Cookies.setCookie("broker_ip", text, expires, null,
"/", false);
GWT.log("on ok ip:" + text);
brokerIp = Cookies.getCookie("broker_ip");
init();
}
@Override
public void cancelButtonClick() {
// TODO Auto-generated method stub
}
});
dialog.setPopupPosition(400, 400);
dialog.show();
}