Package com.gwtext.client.widgets.form

Examples of com.gwtext.client.widgets.form.ComboBox


    this.formPanel.setFrame( true );
    this.formPanel.setBorder( true );
    this.formPanel.setLabelWidth( LABEL_WIDTH );

    MultiFieldPanel multiField = new MultiFieldPanel();
    this.fromCombo = new ComboBox( TextProvider.get().window_compose_message_label_from() );
    this.fromCombo.setForceSelection( true );
    this.fromCombo.setStore( this.identityStore );
    this.fromCombo.setDisplayField( IdentityListFields.INTERNET_ADDRESS.name() );
    this.fromCombo.setValueField( IdentityListFields.ID.name() );
    this.fromCombo.setEditable( false );
    this.fromCombo.setWidth( 450 );
    this.fromCombo.setTpl( FROM_COMBO_TEMPLATE );
    multiField.addToRow( this.fromCombo, 520 );

    this.priorityCombo = new ComboBox( TextProvider.get().window_compose_message_label_priority() );
    this.priorityCombo.setForceSelection( true );
    this.priorityCombo.setWidth( 100 );
    this.priorityCombo.setStore( this.priorityStore );
    this.priorityCombo.setValueField( "code" );
    this.priorityCombo.setDisplayField( "text" );
View Full Code Here


    FieldSet commonFieldset = new FieldSet();
    commonFieldset.setCheckboxToggle( false );
    commonFieldset.setFrame( true );
    commonFieldset.setTitle( TextProvider.get().preferences_panel_label_general() );

    this.languageCombo = new ComboBox( TextProvider.get().preferences_panel_label_language(), "language" );
    this.languageCombo.setForceSelection( true );
    this.languageCombo.setStore( StoreProvider.get().getLanguageStore() );
    this.languageCombo.setDisplayField( "text" );
    this.languageCombo.setValueField( "value" );
    this.languageCombo.setEditable( false );
    commonFieldset.add( this.languageCombo, new AnchorLayoutData( "70%" ) );

    this.timezoneCombo = new ComboBox( TextProvider.get().preferences_panel_label_timezone(), "timezone" );
    this.timezoneCombo.setForceSelection( true );
    this.timezoneCombo.setStore( StoreProvider.get().getTimezoneStore() );
    this.timezoneCombo.setDisplayField( "display" );
    this.timezoneCombo.setValueField( "value" );
    this.timezoneCombo.setEditable( false );
    this.timezoneCombo.setLoadingText( TextProvider.get().common_mask_text() );
    this.timezoneCombo.setMode( ComboBox.REMOTE );
    this.timezoneCombo.setTriggerAction( ComboBox.ALL );
    this.timezoneCombo.setTpl( COMBO_TEMPLATE );

    commonFieldset.add( this.timezoneCombo, new AnchorLayoutData( "90%" ) );
    commonFieldset.add( new TextField( TextProvider.get().preferences_panel_label_items(), "pageCount" ),
        new AnchorLayoutData( "40%" ) );
    commonFieldset.add( new Checkbox( TextProvider.get().preferences_panel_label_short_tieme_format(),
        "shortTimeFormat" ) );
    commonFieldset.add( new Checkbox( TextProvider.get().preferences_panel_label_show_html(), "showHtml" ) );
    commonFieldset.add( new Checkbox( TextProvider.get().preferences_panel_label_compose_html(), "createHtmlMsgs" ) );
    this.preferencesFormPanel.add( commonFieldset );

    FieldSet viewFieldset = new FieldSet();
    viewFieldset.setCheckboxToggle( false );
    viewFieldset.setFrame( true );
    viewFieldset.setTitle( TextProvider.get().preferences_panel_label_display() );

    this.readingPanePositionCombo = new ComboBox( TextProvider.get().preferences_panel_label_reading_pane() );
    this.readingPanePositionCombo.setName( "readingPane" );
    this.readingPanePositionCombo.setForceSelection( true );
    this.readingPanePositionCombo.setStore( StoreProvider.get().getReadingPanePostitionsStore() );
    this.readingPanePositionCombo.setDisplayField( "text" );
    this.readingPanePositionCombo.setValueField( "value" );
    this.readingPanePositionCombo.setEditable( false );
    viewFieldset.add( this.readingPanePositionCombo );

    this.reloadPeriodCombo = new ComboBox( TextProvider.get().preferences_panel_label_reload_period() );
    this.reloadPeriodCombo.setName( "messagesReloadPeriod" );
    this.reloadPeriodCombo.setForceSelection( true );
    this.reloadPeriodCombo.setStore( StoreProvider.get().getReloadPeriodStore() );
    this.reloadPeriodCombo.setDisplayField( "text" );
    this.reloadPeriodCombo.setValueField( "value" );
    this.reloadPeriodCombo.setEditable( false );
    viewFieldset.add( this.reloadPeriodCombo );

    this.themeCombo = new ComboBox( TextProvider.get().preferences_panel_label_theme(), "theme" );
    this.themeCombo.setForceSelection( true );
    this.themeCombo.setStore( StoreProvider.get().getThemeStore() );
    this.themeCombo.setDisplayField( "text" );
    this.themeCombo.setValueField( "value" );
    this.themeCombo.setEditable( false );
View Full Code Here

  private Toolbar createToolbar() {

    Toolbar toolbar = new Toolbar();

    if ( this.type == TYPE_FOR_WINDOW ) {
      this.contactListCombo = new ComboBox();
      this.contactListCombo.setForceSelection( true );
      this.contactListCombo.setDisplayField( "text" );
      this.contactListCombo.setValueField( "value" );
      this.contactListCombo.setEditable( false );
      this.contactListCombo.setForceSelection( true );
View Full Code Here

  }


  @Override
  protected TextField createFieldComponent() {
    comboBox = new ComboBox();
    comboBox.setForceSelection(true);
    comboBox.setMinChars(1);
    comboBox.setMode(ComboBox.LOCAL);
    comboBox.setTriggerAction(ComboBox.ALL);
    comboBox.setEmptyText("Select a value");
View Full Code Here

    }


    @Override
    public Field createFieldComponent() {
        comboBox = new ComboBox();
        comboBox.setForceSelection(true);
        comboBox.setMinChars(1);
        comboBox.setTriggerAction(ComboBox.ALL);
        comboBox.setEmptyText("Select a value");
        comboBox.setTypeAhead(true);
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.form.ComboBox

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.