Package com.gwtext.client.widgets.form

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


        config.setBodyBorder( false );
        config.setCollapsed( true );
        config.setCollapsible( true );

        FieldSet conditions = new FieldSet( constants.ConditionColumns() );
        conditions.setCollapsible( true );
        conditions.add( getConditions() );
        config.add( conditions );

        FieldSet actions = new FieldSet( constants.ActionColumns() );
        actions.setCollapsible( true );
        actions.add( getActions() );
        config.add( actions );

        FieldSet grouping = new FieldSet( constants.options() );
        grouping.setCollapsible( true );
        grouping.setCollapsed( true );
        grouping.add( getGrouping() );
        grouping.add( getAttributes() );
        config.add( grouping );

        layout.add( config );

        refreshGrid();
View Full Code Here


        config.setCollapsed( true );
        config.setCollapsible( true );
       


        FieldSet conditions = new FieldSet( constants.ConditionColumns() );
        conditions.setCollapsible( true );
        conditions.add( getConditions() );
        config.add( conditions );

        FieldSet actions = new FieldSet( constants.ActionColumns() );
        actions.setCollapsible( true );
        actions.add( getActions() );
        config.add( actions );

        FieldSet grouping = new FieldSet( constants.options() );
        grouping.setCollapsible( true );
        grouping.setCollapsed( true );
        grouping.add( getGrouping() );
        grouping.add( getAttributes() );
        config.add( grouping );
        layout.add( config );
       
        VerticalPanel buttonPanel = new   VerticalPanel();
        buttonPanel.add(getToolbarMenuButton());
View Full Code Here

    this.dateFrom.setFormat( TextProvider.get().extended_search_panel_date_format() );
    this.dateTo = new DateField( TextProvider.get().extended_search_panel_date_to(), SearchFields.DATE_TO.name(),
        100 );
    this.dateTo.setFormat( TextProvider.get().extended_search_panel_date_format() );

    FieldSet fieldSet = new FieldSet( TextProvider.get().extended_search_panel_fieldset() );
    fieldSet.setLayout( new TableLayout( 3 ) );

    fieldSet.add( createFieldPanel( this.from ) );
    fieldSet.add( createFieldPanel( this.to ) );
    fieldSet.add( createFieldPanel( this.cc ) );
    fieldSet.add( createFieldPanel( this.subject ) );
    fieldSet.add( createFieldPanel( this.content ), new TableLayoutData( 2 ) );
    fieldSet.add( createFieldPanel( this.dateFrom ) );
    fieldSet.add( createFieldPanel( this.dateTo ) );

    this.searchButton = new Button( TextProvider.get().extended_search_panel_search() );
    fieldSet.add( this.searchButton );

    add( fieldSet );
  }
View Full Code Here

    this.preferencesFormPanel.setFrame( true );
    this.preferencesFormPanel.setBorder( false );
    this.preferencesFormPanel.setLabelAlign( Position.RIGHT );
    this.preferencesFormPanel.setLabelWidth( 120 );

    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 );
    this.themeCombo.setTypeAhead( true );
    this.themeCombo.setSelectOnFocus( true );

    viewFieldset.add( this.themeCombo );

    this.preferencesFormPanel.add( viewFieldset );

    FieldSet serverFieldset = new FieldSet();
    serverFieldset.setCheckboxToggle( false );
    serverFieldset.setFrame( true );
    serverFieldset.setTitle( TextProvider.get().preferences_panel_label_mail_server() );

    serverFieldset.add( new Checkbox( TextProvider.get().preferences_panel_label_mark_as_deleted(),
        "markAsDeletedWithoutTrash" ) );
    serverFieldset.add( new Checkbox( TextProvider.get().preferences_panel_label_empty_trash(),
        "emptyTrashAfterLogout" ) );
    this.preferencesFormPanel.add( serverFieldset );

    this.timezoneCombo.getStore().addStoreListener( new StoreListenerAdapter() {
View Full Code Here

    formPanel.setTitle( TextProvider.get().contact_window_label_contact_data() );
    formPanel.setLabelWidth( DEFAULT_LABEL_WIDTH );
    formPanel.setLabelAlign( Position.RIGHT );

    // personal data
    FieldSet fieldset = createFieldSet( TextProvider.get().contact_window_label_person() );
    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( firstNameField = createTextField( TextProvider.get().contact_window_label_firstname(),
        "firstName" ), new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_secondname(), "secondName" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_lastname(), "lastName" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_nickname(), "nickname" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_company(), "company" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_position(), "position" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    // internet data
    fieldset = createFieldSet( TextProvider.get().contact_window_label_internet() );
    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_email(), "email" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_secondemail(), "email2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_im(), "im" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_website(), "website" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    // phone numbers
    fieldset = createFieldSet( TextProvider.get().contact_window_label_telecom() );
    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_privatephone(), "privatePhone" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow(
        createTextField( TextProvider.get().contact_window_label_businessphone(), "businessPhone" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_mobilephone(), "mobilePhone" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_pager(), "pager" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_privatefax(), "privateFax" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_businessfax(), "businessFax" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    return formPanel;
  }
View Full Code Here

    formPanel.setFrame( true );
    formPanel.setBorder( false );
    formPanel.setLabelWidth( DEFAULT_LABEL_WIDTH );
    formPanel.setLabelAlign( Position.RIGHT );

    FieldSet fieldset = createFieldSet( "Privat" );
    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street(), "street" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street2(), "street2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    TextField zip = new TextField( TextProvider.get().contact_window_label_zipcode() + " / "
        + TextProvider.get().contact_window_label_city(), "zipcode" );
    zip.setWidth( 70 );
    multiPanel.addToRow( zip, DEFAULT_LABEL_WIDTH + 80 );
    TextField city = new TextField( TextProvider.get().contact_window_label_city(), "city", 127 );
    city.setHideLabel( true );
    multiPanel.addToRow( city, 127 );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_state(), "state" ),
        new ColumnLayoutData( 1 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_country(), "country" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    return formPanel;
  }
View Full Code Here

    formPanel.setBorder( false );
    formPanel.setLabelWidth( DEFAULT_LABEL_WIDTH );
    formPanel.setLabelAlign( Position.RIGHT );

    // business address
    FieldSet fieldset = createFieldSet( TextProvider.get().contact_window_label_private() );
    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street(), "street" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_street2(), "street2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    TextField zip = new TextField( TextProvider.get().contact_window_label_zipcode() + " / "
        + TextProvider.get().contact_window_label_city(), "zipcode" );
    zip.setWidth( 70 );
    multiPanel.addToRow( zip, DEFAULT_LABEL_WIDTH + 80 );
    TextField city = new TextField( TextProvider.get().contact_window_label_city(), "city", 127 );
    city.setHideLabel( true );
    multiPanel.addToRow( city, 127 );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_state(), "state" ),
        new ColumnLayoutData( 1 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_country(), "country" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    return formPanel;
  }
View Full Code Here

    formPanel.setFrame( true );
    formPanel.setTitle( TextProvider.get().contact_window_label_notice() );
    formPanel.setLabelWidth( DEFAULT_LABEL_WIDTH );
    formPanel.setLabelAlign( Position.RIGHT );

    FieldSet fieldset = createFieldSet( TextProvider.get().contact_window_label_custom() );
    MultiFieldPanel multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom1(), "custom1" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom2(), "custom2" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );

    multiPanel = new MultiFieldPanel();
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom3(), "custom3" ),
        new ColumnLayoutData( 0.5 ) );
    multiPanel.addToRow( createTextField( TextProvider.get().contact_window_label_custom4(), "custom4" ),
        new ColumnLayoutData( 0.5 ) );
    fieldset.add( multiPanel, new AnchorLayoutData( "100%" ) );
    formPanel.add( fieldset );

    TextArea editor = new TextArea( TextProvider.get().contact_window_label_notice(), "notice" );
    editor.setHideLabel( true );
    editor.setWidth( DEFAULT_FIELDSET_WIDTH );
View Full Code Here

   * @param title
   * @return
   */
  private FieldSet createFieldSet( String title ) {

    FieldSet fieldset = new FieldSet();
    fieldset.setPaddings( 2 );
    fieldset.setCheckboxToggle( false );
    fieldset.setFrame( true );
    fieldset.setTitle( title );
    fieldset.setWidth( DEFAULT_FIELDSET_WIDTH );

    return fieldset;
  }
View Full Code Here

        return htmlEditorWidget;
    }

    protected Component createFieldSet(Map<String, Object> conf, String property) {
        String label = (String) conf.get(FormConstants.LABEL);
        FieldSet fieldSet = new FieldSet(label);
        String collapsible = (String) conf.get(FormConstants.FIELDSET_COLLAPISBLE);
        if (collapsible != null && collapsible.equalsIgnoreCase("true")) {
            fieldSet.setCollapsible(true);
            String collapsed = (String) conf.get(FormConstants.FIELDSET_COLLAPISBLE);
            if (collapsed != null && collapsed.equalsIgnoreCase("true")) {
                fieldSet.setCollapsed(true);
            }
        }
        String checkBoxToggle = (String) conf.get(FormConstants.FIELDSET_CHECKBOX_TOGGLE);
        if (checkBoxToggle != null && checkBoxToggle.equalsIgnoreCase("true")) {
            fieldSet.setCheckboxToggle(true);
        }

        createInnerPanelComponents(fieldSet, conf);

        return fieldSet;
View Full Code Here

TOP

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

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.