01: /*
02: * MenuJanelaFacotry.java Criado em 7 de Março de 2004, 11:24
03: */
04:
05: package br.com.gfp.windows.builders;
06:
07: import br.com.gfp.security.SecurityManager;
08: import br.com.gfpshare.builder.menu.MenuBarBuilder;
09: import br.com.gfpshare.builder.menu.MenuCreationException;
10:
11: /**
12: * @author Igor Regis da Silva Simões
13: */
14: public class GFPMenuBarBuilder extends MenuBarBuilder {
15: /**
16: * Cria uma nova instância de MenuJanelaFacotry
17: * @param fileOpen boolean indicando se existe um arquivo aberto
18: * @throws MenuCreationException
19: */
20: public GFPMenuBarBuilder(boolean fileOpen)
21: throws MenuCreationException {
22: super ("/xml/menu/MenuBar.xml", fileOpen);
23: }
24:
25: /**
26: * @see br.com.gfpshare.builder.menu.MenuBarBuilder#hasAccess(java.lang.String)
27: */
28: @Override
29: public boolean hasAccess(String securityLevel) {
30: return SecurityManager.getManager().hasAccess(securityLevel);
31: }
32: }
|