Package autotest.common.table

Examples of autotest.common.table.ListFilter


            userStrings.add(Utils.jsonToString(user.get("login")));
        }

        hostnameFilter = new SearchFilter("hostname", true);
        labelFilter = new LabelFilter();
        statusFilter = new ListFilter("status");
        statusFilter.setChoices(statusStrings);
        lockedFilter = new BooleanFilter("locked");
        lockedByFilter = new ListFilter("locked_by__login");
        lockedByFilter.setChoices(userStrings.toArray(new String[userStrings.size()]));
        aclFilter = new AclAccessibleFilter();
        excludeAtomicGroupsFilter = new AtomicGroupFilter();

        updateLockedByEnabled();
View Full Code Here


    protected void addTableFilters() {
        hostsTable.addFilter(jobFilter);

        SearchFilter hostnameFilter = new SearchFilter("host__hostname", true);
        ListFilter statusFilter = new ListFilter("status");
        StaticDataRepository staticData = StaticDataRepository.getRepository();
        JSONArray statuses = staticData.getData("job_statuses").isArray();
        statusFilter.setChoices(Utils.JSONtoStrings(statuses));

        tableDecorator.addFilter("Hostname", hostnameFilter);
        tableDecorator.addFilter("Status", statusFilter);
    }
View Full Code Here

TOP

Related Classes of autotest.common.table.ListFilter

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.