Package autotest.common.table.DataSource

Examples of autotest.common.table.DataSource.DefaultDataCallback


        addMetaHosts(label, number);
    }

    public void addMetaHosts(final String label, final String number) {
        JSONObject params = new JSONObject();
        profileDataSource.query(params, new DefaultDataCallback () {
            @Override
            public void onQueryReady(Query query) {
                query.getPage(null, null, null, this);
            }
View Full Code Here


    @Override
    /**
     * Select all objects covering all pages, not just the currently displayed page in the table.
     */
    public void selectAll() {
        attachedDynamicTable.getCurrentQuery().getPage(null, null, null, new DefaultDataCallback() {
            @Override
            public void handlePage(List<JSONObject> data) {
                selectObjects(data);
            }
        });
View Full Code Here

    public void setSelectedHostnames(final List<String> hosts, final boolean allowOneTimeHosts) {
        // figure out which hosts exist in the system and which should be one-time hosts
        JSONObject params = new JSONObject();
        params.put("hostname__in", Utils.stringsToJSON(hosts));
        hostDataSource.query(params, new DefaultDataCallback () {
            @Override
            public void onQueryReady(Query query) {
                query.getPage(null, null, null, this);
            }
View Full Code Here

    public void setSelectedHostnames(final List<String> hosts, final List<String> profiles, final boolean allowOneTimeHosts) {
        // figure out which hosts exist in the system and which should be one-time hosts
        JSONObject params = new JSONObject();
        params.put("hostname__in", Utils.stringsToJSON(hosts));
        hostDataSource.query(params, new DefaultDataCallback () {
            @Override
            public void onQueryReady(Query query) {
                query.getPage(null, null, null, this);
            }
View Full Code Here

TOP

Related Classes of autotest.common.table.DataSource.DefaultDataCallback

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.