/** * Create the {@link Tree} of Mail options. * * @param images the {@link Images} used in the Mail options * @return the {@link Tree} of mail options */ @ShowcaseSource private Tree createMailItem(Images images) { Tree mailPanel = new Tree(images); TreeItem mailPanelRoot = mailPanel.addItem("*****@*****.**"); String[] mailFolders = constants.cwStackPanelMailFolders(); addItem(mailPanelRoot, images.inbox(), mailFolders[0]); addItem(mailPanelRoot, images.drafts(), mailFolders[1]); addItem(mailPanelRoot, images.templates(), mailFolders[2]); addItem(mailPanelRoot, images.sent(), mailFolders[3]); addItem(mailPanelRoot, images.trash(), mailFolders[4]); mailPanelRoot.setState(true); return mailPanel; }