Search in sources :

Example 1 with EditorFilterPhonePage

use of de.janrufmonitor.ui.jface.wizards.pages.EditorFilterPhonePage in project janrufmonitor by tbrandt77.

the class EditorFilterWizard method performFinish.

public boolean performFinish() {
    if (this.m_pages[0].isPageComplete()) {
        List filterList = new ArrayList();
        IPhonenumber phones = ((EditorFilterPhonePage) this.m_pages[0]).getResult();
        if (phones != null) {
            filterList.add(new PhonenumberFilter(phones));
        }
        this.m_filters = new IFilter[filterList.size()];
        for (int i = 0; i < filterList.size(); i++) {
            this.m_filters[i] = (IFilter) filterList.get(i);
        }
        return true;
    }
    this.m_filters = null;
    return false;
}
Also used : ArrayList(java.util.ArrayList) EditorFilterPhonePage(de.janrufmonitor.ui.jface.wizards.pages.EditorFilterPhonePage) PhonenumberFilter(de.janrufmonitor.repository.filter.PhonenumberFilter) List(java.util.List) ArrayList(java.util.ArrayList) IPhonenumber(de.janrufmonitor.framework.IPhonenumber)

Aggregations

IPhonenumber (de.janrufmonitor.framework.IPhonenumber)1 PhonenumberFilter (de.janrufmonitor.repository.filter.PhonenumberFilter)1 EditorFilterPhonePage (de.janrufmonitor.ui.jface.wizards.pages.EditorFilterPhonePage)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1