![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.cuf.state.MutableState Maven / Gradle / Ivy
The newest version!
package net.sf.cuf.state;
/**
* The MutableState interface describes a mutable (more-or-less) binary
* state.
* In addition to a State, a MutableState can be changed via
* setEnabled() and reset().
*/
public interface MutableState extends State
{
/**
* Sets the state.
* @param pEnabled true if the state gets enabled
*/
void setEnabled(boolean pEnabled);
/**
* Sets the state with a reason object. The reason object
* may be null, and is returned to a getChangeReason() call
* during the callback.
* @param pEnabled true if the state gets enabled
* @param pReason null or reason for the change
*/
void setEnabled(boolean pEnabled, Object pReason);
/**
* Resets a MutableState to not initilized. Calling this
* method will not trigger a notification of the
* listeners.
*/
void reset();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy