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

org.ioc.commons.ui.HasPendingOperationsLoader Maven / Gradle / Ivy

Go to download

This project defines a set of useful java interfaces for helping you in the definition of the structure of your developments in Java-projects which are designed using a Inversion-Of-Control (IOC) pattern. Useful for MVP-Pattern designs in applications coded on GWT, SWT, Android, etc.

There is a newer version: 1.2.1
Show newest version
package org.ioc.commons.ui;

/**
 * Feature for a component which has a loading indicator (loader) for serveral
 * pending operations.
 * 
 * The loading indicator is shared by all the operations. This component will
 * keep the count on all loading process started returning isLoading() = true
 * while pending operations are started.
 * 
 * @author Jesús Lunar Pérez
 * @see HasLoader
 */
public interface HasPendingOperationsLoader {
	/**
	 * Increase the count in one.
	 * 
	 * After this call the method {@link #isLoading()} will return true
	 */
	public void operationBeginning();

	/**
	 * Decrease the count in one
	 * 
	 * In case this method has been called as many times as
	 * {@link #operationBeginning()}, the method {@link #isLoading()} will return
	 * false
	 */
	public void operationFinished();

	/**
	 * Clear all pending operations.
	 * 
	 * After this call the method {@link #isLoading()} will return false
	 */
	public void clearPendingOperations();

	/**
	 * It will return true if pending operations are greater than 0
	 * 
	 * @return true if there are pending operations
	 */
	public boolean isLoading();

	/**
	 * Pending operations count
	 * 
	 * @return Pending operations count
	 */
	int getPendingOpCount();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy