Examples of RowLayoutData


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

    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 );
    this.imageLoadLine.setBorder( false );
    this.imageLoadLine.setFrame( false );
    this.imageLoadLine.setPaddings( 1, 0, 0, 2 );
    this.imageLoadLine.setLayout( new ColumnLayout() );
    this.imageLoadLine.add( new ImagesNotLoadedWarning() );
    this.topBanner.add( this.imageLoadLine, new RowLayoutData() );
    this.imageLoadLine.setVisible( false );
  }
View Full Code Here

Examples of nextapp.echo2.app.layout.RowLayoutData

        controlsColumn.addButton("Set Layout Data of All Items to 100%/count Width", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                int componentCount = testRow.getComponentCount();
                for (int i = 0; i < componentCount; ++i) {
                    RowLayoutData rowLayoutData = new RowLayoutData();
                    rowLayoutData.setWidth(new Extent(100 / componentCount, Extent.PERCENT));
                    rowLayoutData.setBackground(StyleUtil.randomBrightColor());
                    testRow.getComponent(i).setLayoutData(rowLayoutData);
                }
            }
        });
       
        controlsColumn.addButton("Set Layout Data (of random item)", new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                int componentCount = testRow.getComponentCount();
                if (componentCount == 0) {
                    return;
                }
                Component component =  testRow.getComponent((int) (Math.random() * componentCount));
                RowLayoutData rowLayoutData = new RowLayoutData();
                rowLayoutData.setAlignment(StyleUtil.randomAlignmentHV());
                rowLayoutData.setBackground(StyleUtil.randomBrightColor());
                rowLayoutData.setInsets(new Insets((int) (Math.random() * 30)));
                switch((int) (Math.random() * 7)) {
                case 0:
                     rowLayoutData.setBackgroundImage(Styles.BG_SHADOW_DARK_BLUE);
                     break;
                case 1:
                     rowLayoutData.setBackgroundImage(Styles.BG_SHADOW_LIGHT_BLUE);
                     break;
                default:
                     rowLayoutData.setBackgroundImage(null);
                }
               
                component.setLayoutData(rowLayoutData);
            }
        });
View Full Code Here

Examples of nextapp.echo2.app.layout.RowLayoutData

        String cellId = ContainerInstance.getElementId(component) + "_cell_" + childId;
        tdElement.setAttribute("id", cellId);
       
        // Configure cell style.
        CssStyle cssStyle = new CssStyle();
        RowLayoutData layoutData = getLayoutData(child);
        CellLayoutDataRender.renderToElementAndStyle(tdElement, cssStyle, child, layoutData, "0px");
        CellLayoutDataRender.renderBackgroundImageToStyle(cssStyle, rc, this, component, child);
        if (layoutData != null) {
            ExtentRender.renderToStyle(cssStyle, "width", layoutData.getWidth());
        }
        tdElement.setAttribute("style", cssStyle.renderInline());
       
        parentNode.appendChild(tdElement);
       
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.