Package com.cubusmail.smartgwt.client.mail

Source Code of com.cubusmail.smartgwt.client.mail.MailCanvas

package com.cubusmail.smartgwt.client.mail;

import com.cubusmail.smartgwt.client.NavigationView;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;

public class MailCanvas extends Canvas {

  public MailCanvas() {

    VLayout mainLayout = new VLayout();
    mainLayout.setWidth100();
    mainLayout.setHeight100();

    HLayout mailLayout = new HLayout();
    mailLayout.setWidth100();
    mailLayout.setHeight100();

    NavigationView view = new NavigationView(NavigationView.VIEW_MAIL);
    view.setWidth("40%");
    view.setShowResizeBar(true);
    view.setOverflow(Overflow.CLIP_H);
    mailLayout.addMember(view);

    VLayout vLayout = new VLayout();
    vLayout.setWidth100();
    vLayout.setHeight100();

    MessageListCanvas listingLabel = new MessageListCanvas();
    listingLabel.setHeight("50%");
    listingLabel.setShowResizeBar(true);

    MessageDetails messageDetails = new MessageDetails();
    messageDetails.setAlign(Alignment.CENTER);
    messageDetails.setOverflow(Overflow.HIDDEN);
    messageDetails.setHeight("50%");

    vLayout.addMember(listingLabel);
    vLayout.addMember(messageDetails);

    mailLayout.addMember(vLayout);

    mainLayout.addMember(new MailToolbar());
    mainLayout.addMember(mailLayout);

    addChild(mainLayout);
  }
}
TOP

Related Classes of com.cubusmail.smartgwt.client.mail.MailCanvas

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.