public interface StringInputSpec extends BaseInputSpec<StringInputSpec>
| Modifier and Type | Method and Description | 
|---|---|
| ComponentFlow.Builder | and()Build and return parent builder. | 
| StringInputSpec | defaultValue(String defaultValue)Sets a default value. | 
| StringInputSpec | maskCharacter(Character maskCharacter)Sets a mask character. | 
| StringInputSpec | name(String name)Sets a name. | 
| StringInputSpec | next(Function<StringInput.StringInputContext,String> next)Define a function which may return id of a next component to go. | 
| StringInputSpec | postHandler(Consumer<StringInput.StringInputContext> handler)Adds a post-run context handler. | 
| StringInputSpec | preHandler(Consumer<StringInput.StringInputContext> handler)Adds a pre-run context handler. | 
| StringInputSpec | renderer(Function<StringInput.StringInputContext,List<org.jline.utils.AttributedString>> renderer)Sets a renderer function. | 
| StringInputSpec | resultMode(ResultMode resultMode)Sets a result mode. | 
| StringInputSpec | resultValue(String resultValue)Sets a result value. | 
| StringInputSpec | storeResult(boolean store)Automatically stores result from a  StringInput.StringInputContextintoComponentContextwith key given to builder. | 
| StringInputSpec | template(String location)Sets a default renderer template location. | 
getThis, orderStringInputSpec name(String name)
name - the nameStringInputSpec resultValue(String resultValue)
resultValue - the result valueStringInputSpec resultMode(ResultMode resultMode)
resultMode - the result modeStringInputSpec defaultValue(String defaultValue)
defaultValue - the defult valueStringInputSpec maskCharacter(Character maskCharacter)
maskCharacter - the mask characterStringInputSpec renderer(Function<StringInput.StringInputContext,List<org.jline.utils.AttributedString>> renderer)
renderer - the rendererStringInputSpec template(String location)
location - the template locationStringInputSpec preHandler(Consumer<StringInput.StringInputContext> handler)
handler - the context handlerStringInputSpec postHandler(Consumer<StringInput.StringInputContext> handler)
handler - the context handlerStringInputSpec storeResult(boolean store)
StringInput.StringInputContext into
 ComponentContext with key given to builder. Defaults to true.store - the flag if storing resultStringInputSpec next(Function<StringInput.StringInputContext,String> next)
null or non existent id indicates that flow should stop.next - next component functionComponentFlow.Builder and()
Copyright © 2023. All rights reserved.