001package csheets.ext.share.ui; 002 003import java.awt.event.KeyEvent; 004 005import javax.swing.JMenu; 006 007import csheets.ui.ctrl.UIController; 008 009/** 010 * The class that will add the menu elements to the main menu of the application 011 * 012 * @see JMenu 013 * 014 * @author Andre 015 * 016 */ 017public class SharingMenu extends JMenu { 018 019 /** generated id */ 020 private static final long serialVersionUID = 1L; 021 022 /** 023 * Creates a simple menu bar with the options to choose a Receive or a 024 * Sharing Action 025 * 026 * @param uiController 027 * the user interface controller 028 */ 029 public SharingMenu(UIController uiController) { 030 super("Sharing"); 031 setMnemonic(KeyEvent.VK_S); 032 033 // Sub-extensions 034 add(new ReceiveAction(uiController)); 035 add(new SendAction(uiController)); 036 } 037}