Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.ChangeHandler


        unitBox.setVisibleItemCount(1);
        unitBox.setName(propertyName + "unit");
        unitBox.setTitle(unitBox.getName());
        unitFieldFormItem = new UnitFieldFormItem();

        unitValueChangeHandler = new ChangeHandler() {
            @Override
            public void onChange(ChangeEvent event) {
                unitFieldFormItem.setModified(true);
            }
        };
View Full Code Here


    public ComboBoxItem(String name, String title) {
        super(name, title);
        this.listBox = new ListBox();
        this.listBox.setTabIndex(0);
        this.listBox.addChangeHandler(new ChangeHandler() {

            @Override
            public void onChange(ChangeEvent event) {
                setModified(true);
                setUndefined("".equals(getSelectedValue()));
View Full Code Here

        String msg = Constants.INSTANCE.FormulaEvaluateToAValue();
        Image img = new Image( GuidedRuleEditorResources.INSTANCE.images().functionAssets() );
        img.setTitle( msg );
        box.setTitle( msg );
        box.addChangeHandler( new ChangeHandler() {

            public void onChange( ChangeEvent event ) {
                executeOnValueChangeCommand();
            }
        } );
View Full Code Here

                                   final boolean isReadOnly ) {
        final TextBox box = new TextBox();
        box.setEnabled( !isReadOnly );
        box.setVisibleLength( ( at.getValue().length() < 3 ) ? 3 : at.getValue().length() );
        box.setText( at.getValue() );
        box.addChangeHandler( new ChangeHandler() {
            public void onChange( ChangeEvent event ) {
                at.setValue( box.getText() );
            }
        } );
View Full Code Here

                                   final boolean isReadOnly ) {
        final TextBox box = new TextBox();
        box.setEnabled( !isReadOnly );
        box.setVisibleLength( ( rm.getValue().length() < 3 ) ? 3 : rm.getValue().length() );
        box.setText( rm.getValue() );
        box.addChangeHandler( new ChangeHandler() {
            public void onChange( ChangeEvent event ) {
                rm.setValue( box.getText() );
            }
        } );
View Full Code Here

        final FormStylePopup popup = new FormStylePopup();
        popup.setTitle( Constants.INSTANCE.NewFactPattern() );
        popup.addAttribute( Constants.INSTANCE.chooseFactType(),
                            box );
        box.addChangeHandler( new ChangeHandler() {

            public void onChange( ChangeEvent event ) {
                pattern.addFactPattern( new FactPattern( box.getItemText( box.getSelectedIndex() ) ) );
                setModified( true );
                getModeller().refreshWidget();
View Full Code Here

            setVisibleLength( 8 );
        } else {
            setVisibleLength( v.length() + 1 );
        }

        addChangeHandler( new ChangeHandler() {
            public void onChange( ChangeEvent event ) {
                c.setValue( getText() );
            }
        } );
View Full Code Here

        final TextBox box = new TextBox();
        box.setText( c.getValue() );

        if ( !this.readOnly ) {
            box.addChangeHandler( new ChangeHandler() {

                public void onChange( ChangeEvent event ) {
                    setModified( true );
                    c.setValue( box.getText() );
                    getModeller().makeDirty();
View Full Code Here

                         0,
                         new HTML( lbl ) );

        this.txtEntryPoint = new TextBox();
        this.txtEntryPoint.setText( getFromEntryPointPattern().getEntryPointName() );
        this.txtEntryPoint.addChangeHandler( new ChangeHandler() {

            public void onChange( ChangeEvent event ) {
                getFromEntryPointPattern().setEntryPointName( txtEntryPoint.getText() );
                setModified( true );
            }
View Full Code Here

            operator = sfc.getOperator();
        }
        if ( OperatorsOracle.operatorRequiresList( operator ) ) {
            final TextBox box = TextBoxFactory.getTextBox( DataType.TYPE_STRING );
            box.setStyleName( "constraint-value-Editor" );
            box.addChangeHandler( new ChangeHandler() {

                public void onChange( ChangeEvent event ) {
                    constraint.setValue( box.getText() );
                    executeOnValueChangeCommand();
                    makeDirty();
                }
            } );

            box.setText( assertValue() );
            attachDisplayLengthHandler( box );
            return box;
        }

        //Date picker
        boolean isCEPOperator = false;
        if ( this.constraint instanceof HasOperator ) {
            isCEPOperator = CEPOracle.isCEPOperator( ( (HasOperator) this.constraint ).getOperator() );
        }
        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( 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 );
        box.setStyleName( "constraint-value-Editor" );
        box.addChangeHandler( new ChangeHandler() {

            public void onChange( ChangeEvent event ) {
                constraint.setValue( box.getText() );
                executeOnValueChangeCommand();
                makeDirty();
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.ChangeHandler

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.