connecting to JSON URL and adding event(s) seems to work ok

This commit is contained in:
Axel Uhl committed 2011-07-05 18:15:36 +02:00
1 parent 630ee66292
commit c0161c7b5a
4 files changed
+22 -9

No files matched your search

@@ -88,13 +88,13 @@ public class EventManagementPanel extends FormPanel {
previousConfigurationsComboBox.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
TracTracConfigurationDAO ttConfig = previousConfigurations.get(
previousConfigurationsComboBox.getItemText(previousConfigurationsComboBox.getSelectedIndex()));
if (ttConfig != null) {
jsonURLBox.setValue(ttConfig.jsonURL);
liveURIBox.setValue(ttConfig.liveDataURI);
storedURIBox.setValue(ttConfig.storedDataURI);
}
updatePanelFromSelectedStoredConfiguration();
}
});
previousConfigurationsComboBox.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
updatePanelFromSelectedStoredConfiguration();
}
});
fillConfigurations();
@@ -397,4 +397,18 @@ public class EventManagementPanel extends FormPanel {
}
}
}
private void updatePanelFromSelectedStoredConfiguration() {
TracTracConfigurationDAO ttConfig = previousConfigurations.get(
previousConfigurationsComboBox.getItemText(previousConfigurationsComboBox.getSelectedIndex()));
if (ttConfig != null) {
hostnameTextbox.setValue("");
eventNameTextbox.setValue("");
livePortIntegerbox.setText("");
storedPortIntegerbox.setText("");
jsonURLBox.setValue(ttConfig.jsonURL);
liveURIBox.setValue(ttConfig.liveDataURI);
storedURIBox.setValue(ttConfig.storedDataURI);
}
}
}
@@ -139,4 +139,5 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
mongoObjectFactory.storeTracTracConfiguration(DomainObjectFactory.INSTANCE.getDefaultDatabase(),
domainFactory.createTracTracConfiguration(name, jsonURL, liveDataURI, storedDataURI));
}
}
@@ -1,3 +1,2 @@
# Module com.sap.sailing.gwt.ui.AdminConsole
# RPC service class, partial path of RPC policy file
com.sap.sailing.gwt.ui.client.SailingService, 23FA8FE5698B6501162EBE56F482B40C.gwt.rpc
@@ -1,3 +1,2 @@
# Module com_sap_sailing_gwt_ui
# RPC service class, partial path of RPC policy file
com.sap.sailing.gwt.ui.client.GreetingService, 82043305890EB51D0A982181ECFF233C.gwt.rpc