Package com.gwtext.client.widgets.layout

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


    firstCol.add( this.contactPortlets[2] );
    secondCol.add( this.contactPortlets[3] );
    firstCol.add( this.contactPortlets[4] );
    secondCol.add( this.contactPortlets[5] );

    portal.add( firstCol, new ColumnLayoutData( 0.5 ) );
    portal.add( secondCol, new ColumnLayoutData( 0.5 ) );

    this.contentPanel.add( portal );
  }
View Full Code Here


    this.acknowledgementCheck = new Checkbox();
    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%" ) );
View Full Code Here

    MultiFieldPanel result = new MultiFieldPanel();

    Button addressBtton = new Button( textField.getFieldLabel() );
    addressBtton.setMinWidth( LABEL_WIDTH );
    result.addToRow( addressBtton, LABEL_WIDTH + 5 );
    result.addToRow( textField, new ColumnLayoutData( 1.0 ) );

    addressBtton.addListener( new ButtonListenerAdapter() {

      @Override
      public void onClick( Button button, EventObject e ) {
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.subjectLine.setPaddings( 1, 0, 0, 2 );
    this.subjectLine.setAutoHeight( true );
    this.subjectLine.setLayout( new ColumnLayout() );
    this.subjectPanel = new HTMLPanel();
    this.subjectPanel.addStyleName( "message-subject" );
    this.subjectLine.add( this.subjectPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.subjectLine, new RowLayoutData() );
    this.subjectLine.setVisible( false );

    this.fromLine = new Panel();
    this.fromLine.setPaddings( 1, 0, 0, 2 );
    this.fromLine.setLayout( new ColumnLayout() );
    this.fromLine.setAutoHeight( true );
    HTMLPanel label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_from() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.fromLine.add( label );
    this.fromPanel = new EmailAddressLinePanel();
    this.fromLine.add( this.fromPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.fromLine, new RowLayoutData() );
    this.fromLine.setVisible( false );

    this.toLine = new Panel();
    this.toLine.setPaddings( 1, 0, 0, 2 );
    this.toLine.setLayout( new ColumnLayout() );
    this.toLine.setAutoHeight( true );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_to() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.toLine.add( label );
    this.toPanel = new EmailAddressLinePanel();
    this.toLine.add( this.toPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.toLine, new RowLayoutData() );
    this.toLine.setVisible( false );

    this.ccLine = new Panel();
    this.ccLine.setPaddings( 1, 0, 0, 2 );
    this.ccLine.setAutoHeight( true );
    this.ccLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_cc() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.ccLine.add( label );
    this.ccPanel = new EmailAddressLinePanel();
    this.ccLine.add( this.ccPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.ccLine, new RowLayoutData() );
    this.ccLine.setVisible( false );

    this.replyToLine = new Panel();
    this.replyToLine.setPaddings( 1, 0, 0, 2 );
    this.replyToLine.setAutoHeight( true );
    this.replyToLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_replyto() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.replyToLine.add( label );
    this.replyToPanel = new EmailAddressLinePanel();
    this.replyToLine.add( this.replyToPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.replyToLine, new RowLayoutData() );
    this.replyToLine.setVisible( false );

    this.dateLine = new Panel();
    this.dateLine.setPaddings( 1, 0, 0, 2 );
    this.dateLine.setAutoHeight( true );
    this.dateLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_date() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.dateLine.add( label );
    this.datePanel = new HTMLPanel();
    this.datePanel.setHtml( GWTUtil.formatDate( new Date() ) );
    this.dateLine.add( this.datePanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.dateLine, new RowLayoutData() );
    this.dateLine.setVisible( false );

    this.attachmentLine = new Panel();
    this.attachmentLine.setAutoHeight( true );
    this.attachmentLine.setBorder( false );
    this.attachmentLine.setFrame( false );
    this.attachmentLine.setPaddings( 1, 0, 0, 2 );
    this.attachmentLine.setLayout( new ColumnLayout() );
    label = new HTMLPanel( "<b>" + TextProvider.get().message_reading_pane_panel_attachment() + "<b>" );
    label.setWidth( LABEL_WIDTH );
    this.attachmentLine.add( label );
    this.attachmentPanel = new Panel();
    this.attachmentPanel.setLayout( new ColumnLayout() );
    this.attachmentLine.add( this.attachmentPanel, new ColumnLayoutData( 1.0 ) );
    this.topBanner.add( this.attachmentLine, new RowLayoutData() );
    this.attachmentLine.setVisible( false );

    this.imageLoadLine = new Panel();
    this.imageLoadLine.setAutoHeight( true );
View Full Code Here

    // 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.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

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

 
  public ColumnLayoutData[] createColumnLayoutData(List<Float> cols) {
    if (cols == null) { return null; }
    ColumnLayoutData[] cld = new ColumnLayoutData[cols.size()];
    for (int i = 0; i< cols.size(); i++) {
      cld[i] = new ColumnLayoutData(cols.get(i));
    }
    return cld;
  }
View Full Code Here

TOP

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

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.