01: /*
02: * Criado em 17/10/2004
03: */
04: package br.com.gfp.windows.builders;
05:
06: import br.com.gfp.security.SecurityManager;
07: import br.com.gfpshare.builder.toolbar.ToolBarBuilder;
08: import br.com.gfpshare.builder.toolbar.ToolBarCreationException;
09:
10: /**
11: * @author Igor Regis da Silva Simoes
12: */
13: public class GFPToolBarBuilder extends ToolBarBuilder {
14:
15: /**
16: * @param fileOpen boolean indicando se existe um arquivo aberto
17: * @throws ToolBarCreationException
18: */
19: public GFPToolBarBuilder(boolean fileOpen)
20: throws ToolBarCreationException {
21: super ("/xml/toolBar/ToolBar.xml", fileOpen);
22: }
23:
24: /**
25: * @param xmlFile
26: * @param fileOpen boolean indicando se existe um arquivo aberto
27: * @throws ToolBarCreationException
28: */
29: public GFPToolBarBuilder(String xmlFile, boolean fileOpen)
30: throws ToolBarCreationException {
31: super (xmlFile, fileOpen);
32: }
33:
34: /**
35: * @see br.com.gfpshare.builder.toolbar.ToolBarBuilder#hasAccess(java.lang.String)
36: */
37: @Override
38: public boolean hasAccess(String securityLevel) {
39: return SecurityManager.getManager().hasAccess(securityLevel);
40: }
41: }
|