public void onChanged(ChangedEvent event) { if (imageInfo != null) { imageInfo.setAlt((String) imageAlt.getValue()); } } });
String title = (String) this.nameItem.getValue(); String description = (String) this.descriptionItem.getValue();
case HOUR: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 60 * 60 * 1000; DataControlsTimeSeries.this.currentIntervalType = IntervalType.HOUR; break; case DAY: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 24 * 60 * 60 * 1000; DataControlsTimeSeries.this.currentIntervalType = IntervalType.DAY; case MONTH: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 30 * 24 * 60 * 60 * 1000; DataControlsTimeSeries.this.currentIntervalType = IntervalType.MONTH; case YEAR: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 365 * 24 * 60 * 60 * 1000; DataControlsTimeSeries.this.currentIntervalType = IntervalType.YEAR; default: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 24 * 60 * 60 * 1000; break;
if (this.entryTimeItem.getValue() == null || this.entryTimeUnitItem.getValue() == null) { SC.say(i18n.indicateTimeUnit()); return false; if (this.entryValueItem.getValue() == null || this.entryValueUnitItem.getValue() == null) { SC.say(i18n.indicateValueUnit()); return false; if (this.exitTimeItem.getValue() == null || this.exitTimeUnitItem.getValue() == null) { SC.say(i18n.indicateConditionTimeUnit()); return false; if (this.entryValueConditionItem.getValue() == null || this.entryValueUnitConditionItem.getValue() == null) { SC.say(i18n.indicateConditionValueUnit()); return false; if (this.countItem.getValue() == null) { SC.say(i18n.indicateCount()); return false; if (this.entryValueItem.getValue() == null || this.entryValueUnitItem.getValue() == null) { SC.say(i18n.indicateValueUnit()); return false; if (this.countConditionItem.getValue() == null) { SC.say(i18n.indicateConditionCount()); return false; if (this.entryValueConditionItem.getValue() == null || this.entryValueUnitConditionItem.getValue() == null) {
case HOUR: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 60 * 60 * 1000; break; case DAY: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 24 * 60 * 60 * 1000; break; case MONTH: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 30 * 24 * 60 * 60 * 1000; break; case YEAR: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 365 * 24 * 60 * 60 * 1000; break; default: inter = new Long(DataControlsTimeSeries.this.overviewInterval.getValue().toString()) * 24 * 60 * 60 * 1000; break;
private JcrProperty getPropertyFromFields() { PropertyDataTypes type = PropertyDataTypes.valueOf(((String)propType.getValue()).toUpperCase()); JcrProperty property = new JcrProperty(); property.setName(propName.getValue().toString()); property.setType(type.getTypeNum()); if (!(Boolean)propMultiValue.getValue()) {
public void onClick(ClickEvent event) { if (ResetPasswordLayout.this.form.validate()) { String name = ResetPasswordLayout.this.nameItem.getValue().toString(); String email = ResetPasswordLayout.this.emailItem.getValue().toString(); EventBus.getMainEventBus().fireEvent(new NewPasswordEvent(name, email)); } } });
public void onKeyPress(KeyPressEvent keyPressEvent) { if (KeyNames.ENTER.equals(keyPressEvent.getKeyName())) { presenter.goToLocation((String) textItem.getValue()); } } });
public void onChanged(ChangedEvent event) { if (imageInfo != null && imageHref.validate()) { imageInfo.setHref((String) imageHref.getValue()); } } });
public void onKeyUp(KeyUpEvent event) { TextItem nameItem = (TextItem) event.getSource(); String currentAbonnementName = (String) nameItem.getValue(); controller.setSelectedAbonnementName(currentAbonnementName); } });
public void onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent event) { if (textItem.getValue() != null && comboBoxItem.getValue() != null) { String text = textItem.getValue().toString(); String criterion = comboBoxItem.getValue().toString(); int operator = 0; if (criterion.equals(i18n.searchFullText())) { operator = 1; } else if (criterion.equals(i18n.name())) { operator = 2; } else if (criterion.equals(i18n.description())) { operator = 3; } else if (criterion.equals(i18n.sensor())) { operator = 4; } else if (criterion.equals(i18n.phenomenon())) { operator = 5; } EventBus.getMainEventBus().fireEvent(new SearchEvent(text, operator, getLoggedInUserId())); } } });
public void onClick(ClickEvent event) { if (form.validate(false)) { String userName = (String) userNameItem.getValue(); String name = (String) nameItem.getValue(); // String password = (String) passwordItem.getValue(); String email = (String) emailItem.getValue(); UserRole role; String roleString = (String) roleItem.getValue(); if (roleString.equals(UserRole.ADMIN.toString())) { role = UserRole.ADMIN; } else { role = UserRole.USER; } // create new User UserDTO user = new UserDTO(Integer.valueOf(EditUserWindow.record.getId()), userName, name, null, email, role, new Date()); user.setActivated(true); EventBus.getMainEventBus().fireEvent(new UpdateUserEvent(currentSession(), user)); EditUserWindow.window.destroy(); } } });
public void onIconClick(IconClickEvent iconClickEvent) { FormItemIcon icon = iconClickEvent.getIcon(); if (GeocoderLayout.showClearIcon && clearIcon.getSrc().equals(icon.getSrc())) { presenter.clearLocation(); } else { presenter.goToLocation((String) textItem.getValue()); } } });
protected void register() { form.validate(true); if (RegisterLayout.this.form.validate() && (Boolean) RegisterLayout.this.acceptBox.getValue()) { String userName = (String) RegisterLayout.this.userNameItem.getValue(); String name = (String) RegisterLayout.this.nameItem.getValue(); String password = DataControlsSes.createMD5((String) RegisterLayout.this.passwordItem.getValue()); String eMail = (String) RegisterLayout.this.emailItem.getValue(); boolean activated = false; if (name == null || name.equals("")) { name = ""; } // create user without parameterId and register UserDTO u = new UserDTO(userName, name, password, eMail, NOT_REGISTERED_USER, activated, new Date()); EventBus.getMainEventBus().fireEvent(new RegisterUserEvent(u)); } else if (RegisterLayout.this.form.validate() && !(Boolean) RegisterLayout.this.acceptBox.getValue()) { SC.say(i18n.acceptTermsOfUseInfo()); } }
this.name = (String) this.nameItem.getValue(); this.procedure = this.procedureItem.getValueAsString(); this.phenomenon = this.phenomenonItem.getValueAsString();
public void execute(PrintGetTemplateResponse response) { stopProgress(); UrlBuilder url = new UrlBuilder(GWT.getHostPageBaseURL()); url.addPath(URL_PATH); url.addParameter(URL_DOCUMENT_ID, response.getDocumentId()); url.addParameter(URL_NAME, (String) fileNameItem.getValue()); url.addParameter(URL_TOKEN, command.getUserToken()); if (SAVE.equals(downloadTypeGroup.getValue())) { url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_YES); String encodedUrl = url.toString(); // create a hidden iframe to avoid popups ??? HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl + "'+style='position:absolute;width:0;height:0;border:0'>"); hiddenFrame.setVisible(false); addChild(hiddenFrame); } else { url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_NO); String encodedUrl = url.toString(); com.google.gwt.user.client.Window.open(encodedUrl, "_blank", null); } } });
public void execute(PrintGetTemplateResponse response) { stopProgress(); UrlBuilder url = new UrlBuilder(Geomajas.getDispatcherUrl()); url.addPath(DISPATCHING_SERVICE); url.addParameter(URL_DOCUMENT_ID, response.getDocumentId()); url.addParameter(URL_NAME, (String) fileNameItem.getValue()); url.addParameter(URL_TOKEN, command.getUserToken()); if (SAVE.equals(downloadTypeGroup.getValue())) { url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_YES); String encodedUrl = url.toString(); // create a hidden iframe to avoid popups ??? HTMLPanel hiddenFrame = new HTMLPanel("<iframe src='" + encodedUrl + "'+style='position:absolute;width:0;height:0;border:0'>"); hiddenFrame.setVisible(false); addChild(hiddenFrame); } else { url.addParameter(URL_DOWNLOAD, URL_DOWNLOAD_NO); String encodedUrl = url.toString(); com.google.gwt.user.client.Window.open(encodedUrl, "_blank", null); } } });
builder.setPageWidth(size.getWidth()); builder.setTitleText((String) titleItem.getValue()); builder.setWithArrow((Boolean) arrowCheckbox.getValue()); builder.setWithScaleBar((Boolean) scaleBarCheckbox.getValue());
builder.setPageWidth(size.getWidth()); builder.setTitleText((String) titleItem.getValue()); builder.setWithArrow((Boolean) arrowCheckbox.getValue()); builder.setWithScaleBar((Boolean) scaleBarCheckbox.getValue());