Package com.gwtext.client.widgets.layout

Examples of com.gwtext.client.widgets.layout.AnchorLayoutData


        setCls("x-portal-column");
    setPaddings(10, 10, 0, 10);
  }

    public void add(Portlet portlet) {
        super.add(portlet, new AnchorLayoutData("100%"));
    }
View Full Code Here


    };

    this.formFields = new ArrayList<Component>();

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_name(),
        "displayName"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(
        textfield = new TextField(TextProvider.get().identities_panel_label_email(), "email"),
        new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_organisation(),
        "organisation"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_reply(),
        "replyTo"), new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextField(TextProvider.get().identities_panel_label_bcc(), "bcc"),
        new AnchorLayoutData("80%"));
    textfield.addKeyListener(KeyboardListener.KEY_ENTER, keyListener);
    this.formFields.add(textfield);

    this.detailsFormPanel.add(textfield = new TextArea(TextProvider.get().identities_panel_label_signature(),
        "signature"), new AnchorLayoutData("60%"));
    this.formFields.add(textfield);

    // Checkbox checkbox = new Checkbox(
    // TextProvider.get().identities_panel_label_htmlsignature(),
    // "htmlSignature" );
View Full Code Here

    this.acknowledgementCheck.setHideLabel( true );
    this.acknowledgementCheck.setWidth( 20 );
    multiField.addToRow( this.acknowledgementCheck, 30 );
    multiField.addToRow( new Label( TextProvider.get().window_compose_message_label_acknowledgement() ),
        new ColumnLayoutData( 1.0 ) );
    this.formPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.toText = new EmailAddressComboBox( TextProvider.get().window_compose_message_label_to() );
    this.formPanel
        .add( createAddressLine( this.toText, ContactListWindow.TO_FIELD ), new AnchorLayoutData( "100%" ) );

    this.ccText = new EmailAddressComboBox( TextProvider.get().window_compose_message_label_cc() );
    this.formPanel
        .add( createAddressLine( this.ccText, ContactListWindow.CC_FIELD ), new AnchorLayoutData( "100%" ) );

    this.bccText = new EmailAddressComboBox( TextProvider.get().window_compose_message_label_bcc() );
    this.formPanel.add( createAddressLine( this.bccText, ContactListWindow.BCC_FIELD ), new AnchorLayoutData(
        "100%" ) );

    this.subjectText = new TextField( TextProvider.get().window_compose_message_label_subject() );
    this.formPanel.add( this.subjectText, new AnchorLayoutData( "100%" ) );

    this.attachmentsPanel = new Panel();
    this.attachmentsPanel.setLayout( new ColumnLayout() );
    this.formPanel.add( this.attachmentsPanel, new AnchorLayoutData( "100%" ) );

    this.textPanelWrapperLayout = new CardLayout( true );
    this.textPanelWrapper = new Panel();
    this.textPanelWrapper.setBorder( false );
    this.textPanelWrapper.setLayout( this.textPanelWrapperLayout );
View Full Code Here

        }
      }
    } );
    multiField.addToRow( this.toButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.to, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.cc = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_cc() );
    multiField = new MultiFieldPanel();
    this.cc.setWidth( "100%" );
    this.cc.setHideLabel( true );
    this.ccButton = new Button( this.cc.getFieldLabel() );
    this.ccButton.setMinWidth( LABEL_WIDTH );
    this.ccButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            cc.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.ccButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.cc, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    this.bcc = new EmailAddressInputField( TextProvider.get().dialog_contactlist_label_bcc() );
    multiField = new MultiFieldPanel();
    this.bcc.setWidth( "100%" );
    this.bcc.setHideLabel( true );
    this.bccButton = new Button( this.bcc.getFieldLabel() );
    this.bccButton.setMinWidth( LABEL_WIDTH );
    this.bccButton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {

        RowSelectionModel sm = contactListPanel.getGridPanel().getSelectionModel();
        if ( sm.getCount() > 0 ) {
          String address = sm.getSelected().getAsString( ContactListFields.INTERNET_ADDRESS.name() );
          if ( address != null && address.length() > 0 ) {
            bcc.addEmailAddress( address );
          }
        }
      }
    } );
    multiField.addToRow( this.bccButton, LABEL_WIDTH + 5 );
    multiField.addToRow( this.bcc, new ColumnLayoutData( 1.0 ) );
    addressPanel.add( multiField, new AnchorLayoutData( "100%" ) );

    return addressPanel;
  }
View Full Code Here

    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 );
View Full Code Here

    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

    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

    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

    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

                window.close(); // TODO: cancel existing search
                window.destroy();
            }
        });

        panel.add(searchGrid, new AnchorLayoutData("100% 100%"));
        panel.addButton(showInTreeButton);
        panel.addButton(closeButton);

        window.add(panel);
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.layout.AnchorLayoutData

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.