Package ar.com.AmberSoft.iEvenTask.client.menu

Source Code of ar.com.AmberSoft.iEvenTask.client.menu.FileMenu

package ar.com.AmberSoft.iEvenTask.client.menu;

import ar.com.AmberSoft.iEvenTask.client.Context;
import ar.com.AmberSoft.iEvenTask.client.EventWindow;
import ar.com.AmberSoft.iEvenTask.client.PermissionsConst;
import ar.com.AmberSoft.iEvenTask.client.ProfilesWindow;
import ar.com.AmberSoft.iEvenTask.client.RelationWindow;

import com.extjs.gxt.ui.client.widget.menu.Menu;

public class FileMenu extends Menu {

  MenuItem profileItem;
  MenuItem eventItem;
  MenuItem actionsItem;
  MenuItem preferencesItem;
 
  public FileMenu(){
   
    if (Context.getInstance().isAvaiable(PermissionsConst.GESTIONAR_PERFILES)){
      profileItem = new MenuItem("Perfiles", new ProfilesWindow());
      add(profileItem);
    }

    if (Context.getInstance().isAvaiable(PermissionsConst.GESTIONAR_EVENTOS)){
      eventItem = new MenuItem("Eventos", new EventWindow());
      add(eventItem);
     
      eventItem = new MenuItem("Relaciones", new RelationWindow());
      add(eventItem);
    }
   
  }
 
 
}
TOP

Related Classes of ar.com.AmberSoft.iEvenTask.client.menu.FileMenu

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.