public class StringInput extends AbstractTextComponent<String,StringInput.StringInputContext>
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | StringInput.StringInputContext | 
AbstractTextComponent.BaseTextComponentContext<T,C extends AbstractTextComponent.TextComponentContext<T,C>>, AbstractTextComponent.TextComponentContext<T,C extends AbstractTextComponent.TextComponentContext<T,C>>OPERATION_BACKSPACE, OPERATION_CHAR, OPERATION_DOWN, OPERATION_EXIT, OPERATION_SELECT, OPERATION_UP| Constructor and Description | 
|---|
| StringInput(org.jline.terminal.Terminal terminal) | 
| StringInput(org.jline.terminal.Terminal terminal,
           String name,
           String defaultValue) | 
| StringInput(org.jline.terminal.Terminal terminal,
           String name,
           String defaultValue,
           Function<StringInput.StringInputContext,List<org.jline.utils.AttributedString>> renderer) | 
| Modifier and Type | Method and Description | 
|---|---|
| StringInput.StringInputContext | getThisContext(ComponentContext<?> context)Gets a real component context using common this trick. | 
| protected boolean | read(org.jline.keymap.BindingReader bindingReader,
    org.jline.keymap.KeyMap<String> keyMap,
    StringInput.StringInputContext context)Read input. | 
| void | setMaskCharater(Character maskCharacter)Sets a mask character for input and result value. | 
bindKeyMap, getName, runInternaladdPostRunHandler, addPreRunHandler, getTemplateExecutor, getTerminal, hasTty, loop, render, renderTemplateResource, run, runPostRunHandlers, runPreRunHandlers, setPrintResults, setRenderer, setResourceLoader, setTemplateExecutor, setTemplateLocationpublic StringInput(org.jline.terminal.Terminal terminal)
public StringInput(org.jline.terminal.Terminal terminal,
                   String name,
                   String defaultValue)
public StringInput(org.jline.terminal.Terminal terminal,
                   String name,
                   String defaultValue,
                   Function<StringInput.StringInputContext,List<org.jline.utils.AttributedString>> renderer)
public void setMaskCharater(Character maskCharacter)
maskCharacter - a mask characterpublic StringInput.StringInputContext getThisContext(ComponentContext<?> context)
AbstractComponentgetThisContext in class AbstractComponent<StringInput.StringInputContext>context - the contextprotected boolean read(org.jline.keymap.BindingReader bindingReader,
                       org.jline.keymap.KeyMap<String> keyMap,
                       StringInput.StringInputContext context)
AbstractComponentread in class AbstractComponent<StringInput.StringInputContext>bindingReader - the binding readerkeyMap - the key mapcontext - the contextCopyright © 2022. All rights reserved.