Examples of ComboBoxListenerAdapter


Examples of com.gwtext.client.widgets.form.event.ComboBoxListenerAdapter

      this.contactListCombo.setForceSelection( true );
      this.contactListCombo.setDisplayField( "text" );
      this.contactListCombo.setValueField( "value" );
      this.contactListCombo.setEditable( false );
      this.contactListCombo.setForceSelection( true );
      this.contactListCombo.addListener( new ComboBoxListenerAdapter() {

        @Override
        public void onSelect( ComboBox comboBox, Record record, int index ) {

          String id = record.getAsString( "value" );
View Full Code Here

Examples of com.gwtext.client.widgets.form.event.ComboBoxListenerAdapter

                boolean allowedValuesOnly = UIUtil.getBooleanConfigurationProperty(config, FormConstants.ALLOWED_VALUES_ONLY, true);
                cb.setForceSelection(allowedValuesOnly);
                if (! allowedValuesOnly) {
                    //Apparently we need to add this because the 'setForceSelection(boolean)' method
                    //is not doing what it suppose to by itself, and we need to enforce the raw value to be used.
                    cb.addListener(new ComboBoxListenerAdapter() {
                        @Override
                        public boolean doBeforeQuery(ComboBox comboBox, ComboBoxCallback cbcb) {
                            String lastQueried = comboBox.getRawValue();
                            //System.out.println("In doBeforeQuery. rawValue: " + lastQueried + " getValue: " + comboBox.getValue());
                            comboBox.setValue(lastQueried);
View Full Code Here

Examples of com.gwtext.client.widgets.form.event.ComboBoxListenerAdapter

        return comboBox;
    }

    @Override
    protected void attachFieldChangeListener() {
        comboBox.addListener(new ComboBoxListenerAdapter() {
            @Override
            public boolean doBeforeQuery(ComboBox comboBox, ComboBoxCallback cb) {
                return isWriteOperationAllowed();
            }
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.