Package com.cubusmail.smartgwt.client.mail

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

package com.cubusmail.smartgwt.client.mail;

import com.cubusmail.smartgwt.client.ImageProvider;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.toolbar.ToolStrip;
import com.smartgwt.client.widgets.toolbar.ToolStripSeparator;

public class MailToolbar extends ToolStrip {

  public MailToolbar() {
    super();
    Button button = new Button("Compose");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_NEW);
    button.setAutoFit(true);
    addMember(button);
    button = new Button("Refresh");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_REFRESH);
    button.setAutoFit(true);
    addMember(button);
    addMember(new ToolStripSeparator());
    button = new Button("Reply");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_REPLY);
    button.setAutoFit(true);
    addMember(button);
    button = new Button("Forward");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_REPLY);
    button.setAutoFit(true);
    addMember(button);
    button = new Button("Delete");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_DELETE);
    button.setAutoFit(true);
    addMember(button);
    button = new Button("Mark");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_MARK);
    button.setAutoFit(true);
    addMember(button);
    addMember(new ToolStripSeparator());
    button = new Button("Print");
    button.setBorder("0px");
    button.setIcon(ImageProvider.PRINTER);
    button.setAutoFit(true);
    addMember(button);
    button = new Button("Source");
    button.setBorder("0px");
    button.setIcon(ImageProvider.MSG_SOURCE);
    button.setAutoFit(true);
    addMember(button);
  }
}
TOP

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

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.