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

org.jorigin.state.HandleState Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package org.jorigin.state;

import org.jorigin.Common;

/**
 * An interface that describe an object that can handle various states.
 * @author Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon ([email protected])
 * @version {@value Common#version} - b{@value Common#BUILD}
 * @since 1.0.11
 */
public interface HandleState {

	/**
	 * An integer that represents the activation of an item.
	 */
	public static int STATE_ACTIVE    = 1;
	
	/**
	 * An integer that represents the selection of an item.
	 */
	public static int STATE_SELECTED  = 2;
	
	/**
	 * An integer that represents the display of an item.
	 */
	public static int STATE_DISPLAYED = 4;
	
	/**
	 * Get the state of the item as an integer value. 
	 * This integer can be the combination of various states.
	 * @return the state of the item as an integer value. 
	 */
	public int getStateValue();
	
	/**
	 * Set the state of the item as an integer value. 
	 * This integer can be the combination of various states.
	 * @param state the state of the item as an integer value. 
	 */
	public void setStateValue(int state);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy