Package org.aperteworkflow.util.vaadin.ui.date

Examples of org.aperteworkflow.util.vaadin.ui.date.OptionalDateField


        int value = stepper.getValue() != null ? (Integer) stepper.getValue() : 0;
        latestDate.setValue(DateUtil.addDays(new Date(), -value));
    }

    private HorizontalLayout createDateRangeControls() {
        fromDate = new OptionalDateField(messageSource);
        fromDate.setValue(DateUtil.addDays(new Date(), -5));
        fromDate.addDateChangedListener(new ValueChangeListener() {
            @Override
            public void valueChange(Property.ValueChangeEvent event) {
                updateValues();
            }
        });

        toDate = new OptionalDateField(messageSource);
        toDate.setValue(new Date());
        toDate.addDateChangedListener(new ValueChangeListener() {
            @Override
            public void valueChange(Property.ValueChangeEvent event) {
                updateValues();
View Full Code Here


                }
                textField.setWidth("100%");
                field = textField;
            }
            else if (propertyId.equals(_VALID_START_DATE) || propertyId.equals(_VALID_END_DATE)) {
                OptionalDateField dateField = new OptionalDateField(source);
                dateField.setCaption(getMessage("dict.item.value.valid." + (propertyId.equals(_VALID_START_DATE) ? "from" : "to")));
                dateField.setDateFormat(SIMPLE_DATE_FORMAT_STRING);
                field = dateField;
            }
            else if (propertyId.equals(_EXTENSIONS)) {
                field = createItemExtensionField(application, source);
            }
View Full Code Here

TOP

Related Classes of org.aperteworkflow.util.vaadin.ui.date.OptionalDateField

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.