-
- All Implemented Interfaces:
-
xyz.davidsimon.interakt.field.PromptField
public interface StatefulField<T extends Object, R extends StatefulField.RenderState> implements PromptField<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceStatefulField.RenderState
-
Method Summary
Modifier and Type Method Description UnitonSubmit(R state)abstract RinitState(PromptResult pr)abstract StringgetPromptMessage()abstract Function2<PromptResult, T, Boolean>getShouldPrompt()abstract Function2<PromptResult, T, T>getDefault()-
-
Method Detail
-
initState
abstract R initState(PromptResult pr)
-
getPromptMessage
abstract String getPromptMessage()
-
getShouldPrompt
abstract Function2<PromptResult, T, Boolean> getShouldPrompt()
-
getDefault
abstract Function2<PromptResult, T, T> getDefault()
-
-
-
-