public interface PathInputSpec extends BaseInputSpec<PathInputSpec>
Modifier and Type | Method and Description |
---|---|
ComponentFlow.Builder |
and()
Build and return parent builder.
|
PathInputSpec |
defaultValue(String defaultValue)
Sets a default value.
|
PathInputSpec |
name(String name)
Sets a name.
|
PathInputSpec |
next(Function<PathInput.PathInputContext,String> next)
Define a function which may return id of a next component to go.
|
PathInputSpec |
postHandler(Consumer<PathInput.PathInputContext> handler)
Adds a post-run context handler.
|
PathInputSpec |
preHandler(Consumer<PathInput.PathInputContext> handler)
Adds a pre-run context handler.
|
PathInputSpec |
renderer(Function<PathInput.PathInputContext,List<org.jline.utils.AttributedString>> renderer)
Sets a renderer function.
|
PathInputSpec |
resultMode(ResultMode resultMode)
Sets a result mode.
|
PathInputSpec |
resultValue(String resultValue)
Sets a result value.
|
PathInputSpec |
storeResult(boolean store)
Automatically stores result from a
StringInput.StringInputContext into
ComponentContext with key given to builder. |
PathInputSpec |
template(String location)
Sets a default renderer template location.
|
getThis, order
PathInputSpec name(String name)
name
- the namePathInputSpec resultValue(String resultValue)
resultValue
- the result valuePathInputSpec resultMode(ResultMode resultMode)
resultMode
- the result modePathInputSpec defaultValue(String defaultValue)
defaultValue
- the defult valuePathInputSpec renderer(Function<PathInput.PathInputContext,List<org.jline.utils.AttributedString>> renderer)
renderer
- the rendererPathInputSpec template(String location)
location
- the template locationPathInputSpec preHandler(Consumer<PathInput.PathInputContext> handler)
handler
- the context handlerPathInputSpec postHandler(Consumer<PathInput.PathInputContext> handler)
handler
- the context handlerPathInputSpec storeResult(boolean store)
StringInput.StringInputContext
into
ComponentContext
with key given to builder. Defaults to true
.store
- the flag if storing resultPathInputSpec next(Function<PathInput.PathInputContext,String> next)
null
or non existent id indicates that flow should stop.next
- next component functionComponentFlow.Builder and()
Copyright © 2024. All rights reserved.