protected static void rellenarPermisos( JTPlugInListaPermisos poPermisos, IPlugInFrame poFrame, IListaElementos poBotones) throws ECampoError { for (int lb = 0; lb < poBotones.size(); lb++) { IComponenteAplicacion loComp = (IComponenteAplicacion) poBotones.get(lb); addPermisoSiAccion( poPermisos, poFrame.getIdentificador(), getIdenbotnito(poFrame), loComp.getNombre()); if (loComp.getListaBotones() != null) { rellenarPermisos(poPermisos, poFrame, loComp.getListaBotones()); } } }
public static String getIdenbotnito(IPlugInFrame poObjeto) { String lsIdentB = ""; String psIdent = poObjeto.getIdentificador(); int i = psIdent.length() - 1; while (i >= 0 && psIdent.charAt(i) != '.') { lsIdentB = psIdent.charAt(i) + lsIdentB; i--; } if (poObjeto instanceof IPlugInFrame) { lsIdentB = mcsFrame + " " + lsIdentB; } return lsIdentB; }
public static void rellenarPermisos(JTPlugInListaPermisos poPermisos, IPlugInFrame poPlugFrame) throws ECampoError { addPermiso(poPermisos, poPlugFrame.getIdentificador(), getIdenbotnito(poPlugFrame), ""); rellenarPermisos( poPermisos, poPlugFrame, poPlugFrame.getListaComponentesAplicacion().getListaBotones()); }