Package org.jahia.ajax.gwt.client.widget.form

Examples of org.jahia.ajax.gwt.client.widget.form.CalendarField


                Date value = null;
                if (valueString != null && valueString.length() > 0) {
                    value = new Date(Long.parseLong(valueString));
                }

                root.add(new CalendarField(datePattern, displayTime, readOnly, fieldName, shadow, value));
            }
        } catch (Exception e) {
            Log.error("Error in DatePickerManager: " + e.getMessage(), e);
        }
    }
View Full Code Here


        }
        // combo box that allows to select the version
        if (displayVersionSelector) {
            Date startDate = new Date();
            previousValue = new Date[]{startDate};
            versionComboBox = new CalendarField(startDate);
            versionComboBox.setWidth(150);
            versionComboBox.addListener(Events.Change, new Listener<FieldEvent>() {
                public void handleEvent(FieldEvent be) {
                    if (!be.getField().getValue().equals(previousValue[0])) {
                        previousValue[0] = (Date) be.getField().getValue();
View Full Code Here

            form.setHeaderVisible(false);
            form.setBorders(false);
            form.setBodyBorder(false);
            form.setLabelWidth(200);

            final CalendarField date = new CalendarField();
            date.setFieldLabel(Messages.get("label.scheduled", "Scheduled"));
            form.add(date);

            Button schedule = new Button(Messages.get("label.scheduleAsBackgroundJob"), new SelectionListener<ButtonEvent>() {
                public void componentSelected(ButtonEvent event) {
                  if (date.getValue() == null) {
                    MessageBox.alert(Messages.get("label.sendNewsletter", "Send newsletter issue"), Messages.get("failure.invalid.date", "Please provide a valid date value"), null);
                    return;
                  }
                    mask();
                    doSchedule(date.getValue(), n);
                }
            });

            Button now = new Button(Messages.get("label.sendNow"), new SelectionListener<ButtonEvent>() {
                public void componentSelected(ButtonEvent event) {
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.widget.form.CalendarField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.