Examples of PopupDatePicker


Examples of com.googlecode.wicketwebbeans.datepicker.PopupDatePicker

   
            DatePickerSettings settings = new DatePickerSettings();
            settings.setStyle( settings.newStyleWinter() );
            settings.setIcon( new ResourceReference(this.getClass(), "calendar.gif") );
   
            DatePicker picker = new PopupDatePicker("datePicker", dateField, settings);
            // This sucks! It expects a DateConverter. I've got my own.
            DateConverter dateConverter = new DateConverter() {
                private static final long serialVersionUID = 1L;
                @Override
                public DateFormat getDateFormat(Locale locale)
                {
                    SimpleDateFormat dateFmt = new SimpleDateFormat(fmt);
                    dateFmt.setTimeZone(TimeZone.getTimeZone("GMT"));
                    return dateFmt;
                }

                @Override
                protected Class getTargetType()
                {
                    return type;
                }
               
            };

            picker.setDateConverter(dateConverter);
            fragment.add(picker);

            if (displayTz) {
                Label label = new Label("timezone", model) {
                    private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.drools.guvnor.client.common.PopupDatePicker

            return new SmallLabel( assertValue() );
        }

        //Date picker
        if ( SuggestionCompletionEngine.TYPE_DATE.equals( value.getType() ) ) {
            PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange(ValueChangeEvent<Date> event) {
                    value.setValue( PopupDatePicker.convertToString( event ) );
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( value.getType() );
View Full Code Here

Examples of org.drools.guvnor.client.common.PopupDatePicker

            if ( this.readOnly ) {
                return new SmallLabel( constraint.getValue() );
            }

            PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange(ValueChangeEvent<Date> event) {
                    constraint.setValue( PopupDatePicker.convertToString( event ) );
                    executeOnValueChangeCommand();
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( fieldType );
View Full Code Here

Examples of org.drools.guvnor.client.common.PopupDatePicker

            Label dateLabel = new Label();
            dateLabel.setText( format.format( value.getDateValue() ) );
            return dateLabel;
        }

        PopupDatePicker dp = new PopupDatePicker( allowEmptyValues );
        if ( value.getDateValue() != null ) {
            dp.setValue( value.getDateValue() );
        }

        // Wire up update handler
        dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

            public void onValueChange(ValueChangeEvent<Date> event) {
                value.setDateValue( event.getValue() );
            }
View Full Code Here

Examples of org.drools.guvnor.client.common.PopupDatePicker

            return new SmallLabel( assertValue() );
        }

        //Date picker
        if ( SuggestionCompletionEngine.TYPE_DATE.equals( value.getType() ) ) {
            PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange(ValueChangeEvent<Date> event) {
                    value.setValue( PopupDatePicker.convertToString( event ) );
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( value.getType() );
View Full Code Here

Examples of org.drools.guvnor.client.common.PopupDatePicker

            if ( this.readOnly ) {
                return new SmallLabel( constraint.getValue() );
            }

            PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange(ValueChangeEvent<Date> event) {
                    constraint.setValue( PopupDatePicker.convertToString( event ) );
                    executeOnValueChangeCommand();
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( fieldType );
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.widget.PopupDatePicker

            return new SmallLabel( assertValue() );
        }

        //Date picker
        if ( DataType.TYPE_DATE.equals( value.getType() ) ) {
            final PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange( ValueChangeEvent<Date> event ) {
                    value.setValue( PopupDatePicker.convertToString( event ) );
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( value.getType() );
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.widget.PopupDatePicker

            if ( this.readOnly ) {
                return new SmallLabel( constraint.getValue() );
            }

            final PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange( ValueChangeEvent<Date> event ) {
                    constraint.setValue( PopupDatePicker.convertToString( event ) );
                    executeOnValueChangeCommand();
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( fieldType );
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.widget.PopupDatePicker

        if ( DataType.TYPE_DATE.equals( this.fieldType ) || ( DataType.TYPE_THIS.equals( this.fieldName ) && isCEPOperator ) ) {
            if ( this.readOnly ) {
                return new SmallLabel( constraint.getValue() );
            }

            final PopupDatePicker dp = new PopupDatePicker( false );

            // Wire up update handler
            dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                public void onValueChange( final ValueChangeEvent<Date> event ) {
                    constraint.setValue( PopupDatePicker.convertToString( event ) );
                    executeOnValueChangeCommand();
                }

            } );

            dp.setValue( assertValue() );
            return dp;
        }

        //Default editor for all other literals
        final TextBox box = TextBoxFactory.getTextBox( fieldType );
View Full Code Here

Examples of org.kie.workbench.common.widgets.client.widget.PopupDatePicker

            if ( isReadOnly ) {
                final TextBox tb = TextBoxFactory.getTextBox( DataType.TYPE_STRING );
                tb.setValue( format.format( defaultValue.getDateValue() ) );
                tb.setEnabled( false );
            } else {
                final PopupDatePicker dp = new PopupDatePicker( false );
                final Date dateValue = defaultValue.getDateValue();
                dp.setValue( dateValue );

                dp.addValueChangeHandler( new ValueChangeHandler<Date>() {

                    public void onValueChange( ValueChangeEvent<Date> event ) {
                        defaultValue.setDateValue( event.getValue() );
                        defaultValueChangedEventHandler.onDefaultValueChanged(new DefaultValueChangedEvent(defaultValue));
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.