Search in sources :

Example 1 with QueryFieldDeleteEvent

use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.

the class QueryMultiSelectFieldController method deleteQueryMultiSelectField.

public void deleteQueryMultiSelectField(QueryMultiSelectField queryField, boolean removeAnswers) {
    queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
    for (QueryMultiSelectFieldOption option : listQueryMultiSelectFieldOptionsByField(queryField)) {
        deleteQueryMultiSelectFieldOption(option);
    }
    queryMultiSelectFieldDAO.delete(queryField);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent) QueryMultiSelectFieldOption(fi.otavanopisto.muikku.plugins.material.model.QueryMultiSelectFieldOption)

Example 2 with QueryFieldDeleteEvent

use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.

the class QuerySelectFieldController method deleteQuerySelectField.

public void deleteQuerySelectField(QuerySelectField queryField, boolean removeAnswers) {
    queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
    for (QuerySelectFieldOption option : listQuerySelectFieldOptionsBySelectField(queryField)) {
        deleteQuerySelectFieldOption(option);
    }
    querySelectFieldDAO.delete(queryField);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent) QuerySelectFieldOption(fi.otavanopisto.muikku.plugins.material.model.QuerySelectFieldOption)

Example 3 with QueryFieldDeleteEvent

use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.

the class QueryAudioFieldController method deleteQueryAudioField.

public void deleteQueryAudioField(QueryAudioField queryField, boolean removeAnswers) {
    queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
    queryAudioFieldDAO.delete(queryField);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)

Example 4 with QueryFieldDeleteEvent

use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.

the class QueryFileFieldController method deleteQueryFileField.

public void deleteQueryFileField(QueryFileField queryField, boolean removeAnswers) {
    queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
    queryFileFieldDAO.delete(queryField);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)

Example 5 with QueryFieldDeleteEvent

use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.

the class QueryMemoFieldController method deleteQueryMemoField.

public void deleteQueryMemoField(QueryMemoField queryField, boolean removeAnswers) {
    queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
    queryMemoFieldDAO.delete(queryField);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)

Aggregations

QueryFieldDeleteEvent (fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)9 QueryConnectFieldCounterpart (fi.otavanopisto.muikku.plugins.material.model.QueryConnectFieldCounterpart)1 QueryConnectFieldTerm (fi.otavanopisto.muikku.plugins.material.model.QueryConnectFieldTerm)1 QueryMultiSelectFieldOption (fi.otavanopisto.muikku.plugins.material.model.QueryMultiSelectFieldOption)1 QuerySelectFieldOption (fi.otavanopisto.muikku.plugins.material.model.QuerySelectFieldOption)1