Package org.zeroexchange.web.components.form

Examples of org.zeroexchange.web.components.form.StyledDateTimeField


       
        boolean isSupply = tenderType == TenderType.SUPPLY;

        // --- Tender's supply time
        final boolean priceManagementEnabled = stockManager.isPriceManagementEnabled(resource);
        StyledDateTimeField dateTimeField = new StyledDateTimeField(CKEY_TENDER_SUPPLY_TIME) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    protected void onRender() {
                        getResponse().write("<div class=\"date-time\">");
                        super.onRender();
                        getResponse().write("</div>");
                    }
        };
        dateTimeField.add(RangeValidator.minimum(getResourceModel().getObject().getContract().getCreationDate()));
        dateTimeField.setRequired(isSupply);
        formContainer.add(dateTimeField.setVisible(isSupply));

        // --- Location
        locationSelector = new LocationSelector(CKEY_LOCATION);
        locationSelector.setVersioned(true);
        formContainer.add(locationSelector);
View Full Code Here

TOP

Related Classes of org.zeroexchange.web.components.form.StyledDateTimeField

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.