private int GetKey(){
        boolean crypt = catalogue.GetCrypt(Tabid);
        boolean comp = catalogue.GetComp(Tabid);
        if(!crypt && !comp){
            return 0;
        }
        else if(!crypt){
            return 1;
        }
        else if(!comp){
            return 2;
        }
        else{
            return 3;
        }
    }