All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.data.TreeLoader Maven / Gradle / Ivy

/*
 * Sencha GXT 2.3.1a - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/license/
 */
 package com.extjs.gxt.ui.client.data;

import java.util.List;

/**
 * A Loader for trees.
 * 
 * @param  the ModelData of the models being returned by the
 *          loader
 */
public interface TreeLoader extends Loader> {

  /**
   * Returns whether the given model has children.
   * 
   * @param parent the parent model
   * @return true if the given parent has children, and false if it has no
   *         children
   */
  public boolean hasChildren(M parent);

  /**
   * Initiates a load request for the parent's children.
   * 
   * @param parent the parent
   * @return true if the load was requested
   */
  public boolean loadChildren(M parent);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy