public Table(Type type){
        column[0] = "<th>Délka trvání</th>";
        column[1] = "<th>Jméno úkolu</th>";
        
        if (type == Type.RUNNING_TASKS){
            this.type = type;
            sql = Database.SELECT_RUNNING_TASKS;
            title = "Právě probíhající úkoly:";
            column[2] = "<th colspan=3>Akce</th>";
        }
        if (type == Type.FINISHED_TASKS){
            this.type = type;
            sql = Database.SELECT_FINISHED_TASKS;
            title = "Již dokončené úkoly:";
            column[2] = "<th>Akce</th>";
        }
        tasks = new Task[0];
        sendRequest();
        table = createTable();
    }