Package org.zkoss.zul

Examples of org.zkoss.zul.SimpleSpinnerConstraint


        column.appendChild(spinner);
        appendChild(column);
    }

    private void setRangeFor(Spinner spinner, int min, int max) {
        SimpleSpinnerConstraint spinnerConstraint = new SimpleSpinnerConstraint();
        spinnerConstraint.setMin(min);
        spinnerConstraint.setMax(max);
        spinner.setConstraint(spinnerConstraint);
    }
View Full Code Here


            }
        });
    }

    private void setRangeFor24HoursAnd0Minutes() {
        SimpleSpinnerConstraint spinnerConstraint = new SimpleSpinnerConstraint();
        spinnerConstraint.setMin(0);
        if (minutes.getValue() == null || minutes.getValue().intValue() == 0)
            spinnerConstraint.setMax(24);
        else {
            SimpleSpinnerConstraint spinnerConstraintMinutes = new SimpleSpinnerConstraint();
            spinnerConstraintMinutes.setMin(0);
            spinnerConstraintMinutes.setMax(59);
            minutes.setConstraint(spinnerConstraintMinutes);
            spinnerConstraint.setMax(23);
        }
        hours.setConstraint(spinnerConstraint);
    }
View Full Code Here

        }
        hours.setConstraint(spinnerConstraint);
    }

    private void setMinFor(Spinner spinner, int min) {
        SimpleSpinnerConstraint spinnerConstraint = new SimpleSpinnerConstraint();
        spinnerConstraint.setMin(min);
        spinner.setConstraint(spinnerConstraint);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.SimpleSpinnerConstraint

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.