This commit is contained in:
Sollace 2018-05-15 16:25:11 +02:00
parent 23b2618f1e
commit e56611c3fc
2 changed files with 16 additions and 0 deletions

View file

@ -1,5 +1,12 @@
package com.minelittlepony.gui; package com.minelittlepony.gui;
/**
* An element that can perform an action.
*/
@FunctionalInterface
public interface IActionable { public interface IActionable {
/**
* Does whatever.
*/
void perform(); void perform();
} }

View file

@ -1,6 +1,15 @@
package com.minelittlepony.gui; package com.minelittlepony.gui;
/**
* Response actions for UI events.
*/
@FunctionalInterface @FunctionalInterface
public interface IGUIAction<T> { public interface IGUIAction<T> {
/**
* Performs this action now.
*
* @param value New Value of the field being changed
* @return Adjusted value the field must take on
*/
T perform(T value); T perform(T value);
} }