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.
26 lines
405 B
26 lines
405 B
11 years ago
|
package mightypork.util.control;
|
||
11 years ago
|
|
||
|
|
||
|
/**
|
||
|
* 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();
|
||
|
}
|