You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
405 B
25 lines
405 B
package mightypork.util.control;
|
|
|
|
|
|
/**
|
|
* Can be enabled or disabled.<br>
|
|
* Implementations should take appropriate action (ie. stop listening to events,
|
|
* updating etc.)
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public interface Enableable {
|
|
|
|
/**
|
|
* Change enabled state
|
|
*
|
|
* @param yes enabled
|
|
*/
|
|
public void enable(boolean yes);
|
|
|
|
|
|
/**
|
|
* @return true if enabled
|
|
*/
|
|
public boolean isEnabled();
|
|
}
|
|
|