org.refcodes.component.ProgressAccessor Maven / Gradle / Ivy
package org.refcodes.component;
/**
* Provides an accessor for a progress property. Any component which wants to
* provide a progress information implements this interface. A value of zero
* ("0") indicates that there was no progress so far, a value of one ("1")
* indicates that the progress is 100%.
*/
public interface ProgressAccessor {
/**
* The progress can be queried by this method. A value of zero ("0")
* indicates that there was no progress so far, a value of one ("1")
* indicates that the progress is 100%.
*
* @return A value between zero ("0") and one ("1") determining the
* progress.
*/
float getProgress();
/**
* Provides a mutator for a progress property. Any component which wants to
* provide a progress information implements this interface. A value of zero
* ("0") indicates that there was no progress so far, a value of one ("1")
* indicates that the progress is 100%.
*/
public interface ProgressMutator {
/**
* Sets the progress property. A value of zero ("0") indicates that
* there was no progress so far, a value of one ("1") indicates that the
* progress is 100%.
*
* @param aProgress The progress to be stored by the property.
*/
void setProgress( float aProgress );
}
/**
* Provides a progress property.
*/
public interface ProgressProperty extends ProgressAccessor, ProgressMutator {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy