private void jButtonPesquisarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPesquisarActionPerformed
        Material material = new Material();
        DadoMaterial dadoMaterial = new DadoMaterial();
        if (!jTextFieldTitulo.getText().isEmpty()) {
            dadoMaterial.setTitulo(jTextFieldTitulo.getText());
        }
        if (!jTextFieldDescricao.getText().isEmpty()) {
            dadoMaterial.setDescricao(jTextFieldDescricao.getText());
        }
        if (jComboBoxEdicao.getSelectedIndex() > 0) {
            dadoMaterial.setEdicao((Edicao) jComboBoxEdicao.getSelectedItem());
        }
        if (jComboBoxAnoPublicacao.getSelectedIndex() > 0) {
            dadoMaterial.setAnoPublicacao((AnoPublicacao) jComboBoxAnoPublicacao.getSelectedItem());
        }
        if (jComboBoxEditora.getSelectedIndex() > 0) {
            dadoMaterial.setEditora((Editora) jComboBoxEditora.getSelectedItem());
        }
        if (jComboBoxCategoria.getSelectedIndex() > 0) {
            dadoMaterial.setCategoria((Categoria) jComboBoxCategoria.getSelectedItem());
        }
        if (jComboBoxPublico.getSelectedIndex() > 0) {
            dadoMaterial.setPublico((Publico) jComboBoxPublico.getSelectedItem());
        }
        material.setDadoMaterial(dadoMaterial);
        if (jComboBoxFormato.getSelectedIndex() > 0) {
            material.setFormato((Formato) jComboBoxFormato.getSelectedItem());
        }

        listaView.getMateriaisController().filtrar(material);
    }//GEN-LAST:event_jButtonPesquisarActionPerformed