Package com.log4jviewer.filters

Examples of com.log4jviewer.filters.FilterModel


        this.selectedFilterIndex = selectedFilterIndex;
    }

    public List<FilterItemModel> getFilterItems(final int filterIndex) {
        List<FilterItemModel> filterItemModels = new LinkedList<FilterItemModel>();
        FilterModel filterModel = filters.get(filterIndex);

        for (int i = 0; i < filterModel.getItemsCount(); i++) {
            FilterItemModel filterItemModel = filterModel.getItem(i);
            filterItemModels.add(filterItemModel);
        }
        return filterItemModels;
    }
View Full Code Here


    private void loadActiveFilter(final IPreferenceStore store) {
        activeFilterIndex = store.getInt(DefaultPreferences.FilterPreferences.getId());
    }

    public FilterModel createFilter() {
        FilterModel filterModel = new FilterModel();
        filterModel.setFilterName("New Filter");
        filterModel.setFilterDescr("Default description");
        filters.add(filterModel);
        return filterModel;
    }
View Full Code Here

    public boolean isSelectedFilterContainsItems() {
        boolean isFilterContainsItems = false;

        if (!isFilterListEmpty() && isSelectedFilterIndexValid()) {
            FilterModel filterModel = filters.get(selectedFilterIndex);

            if (filterModel.getItemsCount() > 0) {
                isFilterContainsItems = true;
            }
        }
        return isFilterContainsItems;
    }
View Full Code Here

        filterItemModel.setLogicOperand(FilterItemModel.LogicOperand.AND);
        filterItemModel.setFieldType(FilterItemModel.FieldType.LEVEL);
        filterItemModel.setInclude(true);
        filterItemModel.setPattern("");
        filterItemModel.setEnabled(true);
        FilterModel selectedFilter = filters.get(selectedFilterIndex);
        selectedFilter.addItem(filterItemModel);
        return filterItemModel;
    }
View Full Code Here

TOP

Related Classes of com.log4jviewer.filters.FilterModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.