A B C D E F G I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- abort() - Method in class org.beryx.textio.jline.JLineTextTerminal
- abort() - Method in class org.beryx.textio.swing.SwingTextTerminal
- abort() - Method in interface org.beryx.textio.TextTerminal
-
This method is typically called when a text-based input/output session has been aborted by the user or when a severe error occurred.
- ABORT - org.beryx.textio.ReadInterruptionStrategy.Action
- AbstractTextTerminal<T extends AbstractTextTerminal<T>> - Class in org.beryx.textio
- AbstractTextTerminal() - Constructor for class org.beryx.textio.AbstractTextTerminal
- addBooleanListener(String, boolean, TerminalProperties.BooleanChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that adds a listener for the boolean property with the specified key.
- addDefaultProperty(String, String) - Method in class org.beryx.textio.AbstractTextTerminal
- addDoubleListener(String, double, TerminalProperties.DoubleChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that adds a listener for the double property with the specified key.
- addIntListener(String, int, TerminalProperties.IntChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that adds a listener for the int property with the specified key.
- addListener(TerminalProperties.ExtendedChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Adds a listener for this TerminalProperties instance.
- addLongListener(String, long, TerminalProperties.LongChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that adds a listener for the long property with the specified key.
- addStringListener(String, String, TerminalProperties.StringChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that adds a listener for the String property with the specified key.
- appendToInput(String, boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- applyWithPropertiesConfigurator(Consumer<TerminalProperties<?>>, Function<TextTerminal<T>, R>) - Method in interface org.beryx.textio.TextTerminal
-
Executes an action that returns a result, while temporarily modifying the terminal properties.
B
- BooleanInputReader - Class in org.beryx.textio
-
A reader for boolean values.
- BooleanInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.BooleanInputReader
- ByteInputReader - Class in org.beryx.textio
-
A reader for byte values.
- ByteInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.ByteInputReader
C
- changed(TT, Boolean) - Method in interface org.beryx.textio.TerminalProperties.BooleanChangeListener
- changed(TT, Double) - Method in interface org.beryx.textio.TerminalProperties.DoubleChangeListener
- changed(TT, Integer) - Method in interface org.beryx.textio.TerminalProperties.IntChangeListener
- changed(TT, Long) - Method in interface org.beryx.textio.TerminalProperties.LongChangeListener
- changed(TT, String) - Method in interface org.beryx.textio.TerminalProperties.StringChangeListener
- changed(TT, String, String, String) - Method in interface org.beryx.textio.TerminalProperties.ExtendedChangeListener
- changed(TT, V) - Method in interface org.beryx.textio.TerminalProperties.ChangeListener
- CharInputReader - Class in org.beryx.textio
-
A reader for char values.
- CharInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.CharInputReader
- checkConfiguration() - Method in class org.beryx.textio.ComparableInputReader
-
In addition to the checks performed by
InputReader.checkConfiguration(), it checks if minVal <= maxVal - checkConfiguration() - Method in class org.beryx.textio.InputReader
-
Checks if the reader is correctly configured.
- checkConfiguration() - Method in class org.beryx.textio.StringInputReader
-
In addition to the checks performed by
InputReader.checkConfiguration(), it checks if minVal <= maxVal - ComparableInputReader<T extends java.lang.Comparable<T>,B extends ComparableInputReader<T,B>> - Class in org.beryx.textio
-
A reader for values of y type that implements
Comparable. - ComparableInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.ComparableInputReader
- ConsoleTextTerminal - Class in org.beryx.textio.console
-
A
TextTerminalbacked by aConsole. - ConsoleTextTerminal() - Constructor for class org.beryx.textio.console.ConsoleTextTerminal
- ConsoleTextTerminal(Console) - Constructor for class org.beryx.textio.console.ConsoleTextTerminal
- ConsoleTextTerminalProvider - Class in org.beryx.textio.console
-
If
System.console()is not null, it provides aConsoleTextTerminal. - ConsoleTextTerminalProvider() - Constructor for class org.beryx.textio.console.ConsoleTextTerminalProvider
- CONTINUE - org.beryx.textio.ReadInterruptionStrategy.Action
- createReader() - Static method in class org.beryx.textio.jline.JLineTextTerminal
D
- DEFAULT_FONT_SIZE - Static variable in class org.beryx.textio.swing.SwingTextTerminal
- DEFAULT_INPUT_COLOR - Static variable in class org.beryx.textio.swing.SwingTextTerminal
- DEFAULT_MAX_READS - Static variable in class org.beryx.textio.mock.MockTextTerminal
- DEFAULT_PANE_BACKGROUND - Static variable in class org.beryx.textio.swing.SwingTextTerminal
- DEFAULT_PROMPT_COLOR - Static variable in class org.beryx.textio.swing.SwingTextTerminal
- DEFAULT_USER_INTERRUPT_KEY - Static variable in class org.beryx.textio.AbstractTextTerminal
- defaultValue - Variable in class org.beryx.textio.InputReader
-
null, if there is no default value
- display() - Method in class org.beryx.textio.swing.SwingTextTerminal
- dispose() - Method in class org.beryx.textio.TextIO
- dispose() - Method in interface org.beryx.textio.TextTerminal
-
Convenience method for disposing the terminal without providing information about the outcome of the input/output session.
- dispose(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- dispose(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- dispose(String) - Method in class org.beryx.textio.TextIO
- dispose(String) - Method in interface org.beryx.textio.TextTerminal
-
This method is typically called at the end of a text-based input/output session in order to allow the terminal to release its screen resources.
- DoubleInputReader - Class in org.beryx.textio
-
A reader for double values.
- DoubleInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.DoubleInputReader
E
- EnumInputReader<T extends java.lang.Enum<T>> - Class in org.beryx.textio
-
A reader for enum values.
- EnumInputReader(Supplier<TextTerminal<?>>, Class<T>) - Constructor for class org.beryx.textio.EnumInputReader
- equalsFunc - Variable in class org.beryx.textio.InputReader
-
The function used to check whether two values are equal.
- executeWithPropertiesConfigurator(Consumer<TerminalProperties<?>>, Consumer<TextTerminal<T>>) - Method in interface org.beryx.textio.TextTerminal
-
Executes an action while temporarily modifying the terminal properties.
- executeWithPropertiesPrefix(String, Consumer<TextTerminal<T>>) - Method in interface org.beryx.textio.TextTerminal
-
A convenience method that calls
TextTerminal.executeWithPropertiesConfigurator(Consumer, Consumer)with a configurator that takes all terminal properties with the given prefix and applies them after stripping the prefix from their keys. - executeWithTerminal(Function<TextTerminal<?>, V>) - Method in class org.beryx.textio.InputReader
F
- FloatInputReader - Class in org.beryx.textio
-
A reader for float values.
- FloatInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.FloatInputReader
- from(ReadHandlerData, String) - Static method in class org.beryx.textio.ReadInterruptionData
G
- GenericInputReader<T> - Class in org.beryx.textio
-
A reader for values of a type T, for which a parser is passed as constructor argument.
- GenericInputReader(Supplier<TextTerminal<?>>, Function<String, InputReader.ParseResult<T>>) - Constructor for class org.beryx.textio.GenericInputReader
- get() - Method in interface org.beryx.textio.TerminalProperties.BooleanChangeListener
- get() - Method in interface org.beryx.textio.TerminalProperties.DoubleChangeListener
- get() - Method in interface org.beryx.textio.TerminalProperties.IntChangeListener
- get() - Method in interface org.beryx.textio.TerminalProperties.LongChangeListener
- get() - Method in interface org.beryx.textio.TerminalProperties.StringChangeListener
- getAction() - Method in class org.beryx.textio.ReadInterruptionStrategy
- getAllKeys() - Method in class org.beryx.textio.TerminalProperties
- getAnsiBackgroundColor(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- getAnsiColor(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- getAnsiPrefix(JLineTextTerminal.StyleData) - Method in class org.beryx.textio.jline.JLineTextTerminal
- getBookmarkOffset(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- getBoolean(String, boolean) - Method in class org.beryx.textio.TerminalProperties
-
Gets the boolean value of the property with the specified key.
- getChar() - Method in class org.beryx.textio.KeyCombination
- getCharOrCode() - Method in class org.beryx.textio.KeyCombination
- getCode() - Method in class org.beryx.textio.KeyCombination
- getColor(String) - Static method in class org.beryx.textio.swing.SwingTextTerminal
- getColorCode(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- getDefaultErrorMessage(String) - Method in class org.beryx.textio.InputReader
-
Returns a generic error message.
- getDefaultErrorMessages(String) - Method in class org.beryx.textio.BooleanInputReader
- getDefaultErrorMessages(String) - Method in class org.beryx.textio.InputReader
-
If no
InputReader.parseErrorMessagesProviderexists, this method is used to provide the list of error messages for the input strings. - getDefaultProperties() - Method in class org.beryx.textio.AbstractTextTerminal
- getDocument() - Method in class org.beryx.textio.swing.SwingTextTerminal
- getDouble(String, double) - Method in class org.beryx.textio.TerminalProperties
-
Gets the double value of the property with the specified key.
- getErrorMessages() - Method in class org.beryx.textio.InputReader.ParseResult
- getErrorMessages(String) - Method in class org.beryx.textio.InputReader
-
Provides the list of error messages for the input string
s. - getErrorMessages(String, String) - Method in interface org.beryx.textio.InputReader.ErrorMessagesProvider
-
Returns the list of error messages for the given string representation of the value
- getErrorMessages(String, String, int, int) - Method in interface org.beryx.textio.InputReader.InvalidIndexErrorMessagesProvider
-
Returns the list of error messages for the given string representation of the value
- getErrorMessages(T, String) - Method in interface org.beryx.textio.InputReader.ValueChecker
-
Returns the list of error messages due to constraint violations caused by
val - getFrame() - Method in class org.beryx.textio.swing.SwingTextTerminal
- getInputs() - Method in class org.beryx.textio.mock.MockTextTerminal
- getInt(String, int) - Method in class org.beryx.textio.TerminalProperties
-
Gets the int value of the property with the specified key.
- getKeySequence(String) - Static method in class org.beryx.textio.jline.JLineTextTerminal
- getLengthValidationErrors(String) - Method in class org.beryx.textio.StringInputReader
- getListeners() - Method in class org.beryx.textio.TerminalProperties
- getLong(String, long) - Method in class org.beryx.textio.TerminalProperties
-
Gets the long value of the property with the specified key.
- getMatchingKeys(String) - Method in class org.beryx.textio.TerminalProperties
- getMatchingKeys(Predicate<String>) - Method in class org.beryx.textio.TerminalProperties
- getMaxReads() - Method in class org.beryx.textio.mock.MockTextTerminal
- getMinMaxErrorMessage(T) - Method in class org.beryx.textio.ComparableInputReader
- getOutput() - Method in class org.beryx.textio.mock.MockTextTerminal
- getPartialInput() - Method in exception org.beryx.textio.ReadAbortedException
- getPartialInput() - Method in exception org.beryx.textio.ReadInterruptionException
- getPartialInput() - Method in class org.beryx.textio.swing.SwingTextTerminal
- getPatternValidationErrors(String) - Method in class org.beryx.textio.StringInputReader
- getPayload() - Method in exception org.beryx.textio.ReadAbortedException
- getPayload() - Method in class org.beryx.textio.ReadInterruptionStrategy
- getPossibleValue(T) - Method in class org.beryx.textio.InputReader
- getProperties() - Method in class org.beryx.textio.AbstractTextTerminal
- getProperties() - Method in interface org.beryx.textio.TextTerminal
- getPropertiesPrefixes() - Method in class org.beryx.textio.AbstractTextTerminal
- getPropertiesReader() - Method in class org.beryx.textio.AbstractTextTerminal
- getReadCalls() - Method in class org.beryx.textio.mock.MockTextTerminal
- getReader() - Method in class org.beryx.textio.jline.JLineTextTerminal
- getReadInterruptionData() - Method in exception org.beryx.textio.ReadInterruptionException
- getReturnValue() - Method in class org.beryx.textio.ReadInterruptionData
- getReturnValueProvider() - Method in class org.beryx.textio.ReadHandlerData
- getScrollPane() - Method in class org.beryx.textio.swing.SwingTextTerminal
- getStandardColorCode(String) - Static method in class org.beryx.textio.jline.JLineTextTerminal
- getString(String) - Method in class org.beryx.textio.TerminalProperties
- getString(String, String) - Method in class org.beryx.textio.TerminalProperties
-
Gets the String value of the property with the specified key.
- getStyle(SwingTextTerminal.StyleData) - Method in class org.beryx.textio.swing.SwingTextTerminal
- getTextIO() - Static method in class org.beryx.textio.TextIoFactory
- getTextPane() - Method in class org.beryx.textio.swing.SwingTextTerminal
- getTextTerminal() - Method in class org.beryx.textio.console.ConsoleTextTerminalProvider
- getTextTerminal() - Method in class org.beryx.textio.jline.JLineTextTerminalProvider
- getTextTerminal() - Method in class org.beryx.textio.swing.SwingTextTerminalProvider
- getTextTerminal() - Method in class org.beryx.textio.system.SystemTextTerminalProvider
- getTextTerminal() - Method in class org.beryx.textio.TextIO
- getTextTerminal() - Static method in class org.beryx.textio.TextIoFactory
- getTextTerminal() - Method in interface org.beryx.textio.TextTerminalProvider
- getValue() - Method in class org.beryx.textio.InputReader.ParseResult
I
- init() - Method in class org.beryx.textio.AbstractTextTerminal
- init() - Method in interface org.beryx.textio.TextTerminal
-
This method is typically called after the terminal has been created.
- initProperties() - Method in class org.beryx.textio.AbstractTextTerminal
- initProperties(Reader) - Method in class org.beryx.textio.AbstractTextTerminal
- initProperties(Properties) - Method in class org.beryx.textio.AbstractTextTerminal
- inlinePossibleValues - Variable in class org.beryx.textio.InputReader
-
If true, the list of possible values will be displayed on a single line.
- inputMasking - Variable in class org.beryx.textio.InputReader
-
If true, the input will be masked (useful for example when reading passwords)
- InputReader<T,B extends InputReader<T,B>> - Class in org.beryx.textio
-
A reader for values of type T.
- InputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.InputReader
- InputReader.ErrorMessagesProvider - Interface in org.beryx.textio
-
Functional interface for providing error messages
- InputReader.InvalidIndexErrorMessagesProvider - Interface in org.beryx.textio
-
Functional interface for providing error messages for invalid index
- InputReader.ParseResult<T> - Class in org.beryx.textio
-
A holder object returned by the
InputReader.parse(String)method, containing the parsed value and/or the error messages. - InputReader.ValueChecker<T> - Interface in org.beryx.textio
-
Functional interface for checking value constraints
- inputTrimming - Variable in class org.beryx.textio.InputReader
-
If true, the input will be trimmed.
- IntInputReader - Class in org.beryx.textio
-
A reader for int values.
- IntInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.IntInputReader
- invalidIndexErrorMessagesProvider - Variable in class org.beryx.textio.InputReader
-
The provider of invalid index error messages.
- isAltDown() - Method in class org.beryx.textio.KeyCombination
- isCtrlDown() - Method in class org.beryx.textio.KeyCombination
- isInRange(T) - Method in class org.beryx.textio.ComparableInputReader
-
Returns true if minVal <= val <= maxVal
- isPossibleValue(T) - Method in class org.beryx.textio.InputReader
- isRedrawRequired() - Method in class org.beryx.textio.ReadInterruptionStrategy
- isShiftDown() - Method in class org.beryx.textio.KeyCombination
- isTyped() - Method in class org.beryx.textio.KeyCombination
- isValueListMode() - Method in class org.beryx.textio.InputReader
- itemName - Variable in class org.beryx.textio.InputReader
-
The name of the item corresponding to the value to be read.
J
- JLineTextTerminal - Class in org.beryx.textio.jline
-
A JLine-based
TextTerminal. - JLineTextTerminal() - Constructor for class org.beryx.textio.jline.JLineTextTerminal
- JLineTextTerminal(ConsoleReader) - Constructor for class org.beryx.textio.jline.JLineTextTerminal
- JLineTextTerminalProvider - Class in org.beryx.textio.jline
-
If
System.console()is not null and a ConsoleReader can be created, it provides aJLineTextTerminal. - JLineTextTerminalProvider() - Constructor for class org.beryx.textio.jline.JLineTextTerminalProvider
K
- KeyCombination - Class in org.beryx.textio
L
- LongInputReader - Class in org.beryx.textio
-
A reader for long values.
- LongInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.LongInputReader
M
- maxVal - Variable in class org.beryx.textio.ComparableInputReader
- minVal - Variable in class org.beryx.textio.ComparableInputReader
- MockTextTerminal - Class in org.beryx.textio.mock
-
A mock terminal for test purposes.
- MockTextTerminal() - Constructor for class org.beryx.textio.mock.MockTextTerminal
- moveToLineStart() - Method in class org.beryx.textio.jline.JLineTextTerminal
- moveToLineStart() - Method in class org.beryx.textio.swing.SwingTextTerminal
- moveToLineStart() - Method in interface org.beryx.textio.TextTerminal
-
Moves the cursor to the start of the current line of text in order to allow overwriting the current line.
N
- newBooleanInputReader() - Method in class org.beryx.textio.TextIO
- newByteInputReader() - Method in class org.beryx.textio.TextIO
- newCharInputReader() - Method in class org.beryx.textio.TextIO
- newDoubleInputReader() - Method in class org.beryx.textio.TextIO
- newEnumInputReader(Class<T>) - Method in class org.beryx.textio.TextIO
- newFloatInputReader() - Method in class org.beryx.textio.TextIO
- newGenericInputReader(Function<String, InputReader.ParseResult<T>>) - Method in class org.beryx.textio.TextIO
- newIntInputReader() - Method in class org.beryx.textio.TextIO
- newLongInputReader() - Method in class org.beryx.textio.TextIO
- newShortInputReader() - Method in class org.beryx.textio.TextIO
- newStringInputReader() - Method in class org.beryx.textio.TextIO
- noDuplicatesChecker() - Static method in class org.beryx.textio.InputReader
- nonEmptyListChecker() - Static method in class org.beryx.textio.InputReader
- numberedPossibleValues - Variable in class org.beryx.textio.InputReader
-
If true, the list of possible values will be numbered and the desired value will be selected by choosing the corresponding number.
O
- of(String) - Static method in class org.beryx.textio.KeyCombination
- org.beryx.textio - package org.beryx.textio
- org.beryx.textio.console - package org.beryx.textio.console
- org.beryx.textio.jline - package org.beryx.textio.jline
- org.beryx.textio.mock - package org.beryx.textio.mock
- org.beryx.textio.swing - package org.beryx.textio.swing
- org.beryx.textio.system - package org.beryx.textio.system
P
- parse(String) - Method in class org.beryx.textio.BooleanInputReader
- parse(String) - Method in class org.beryx.textio.ByteInputReader
- parse(String) - Method in class org.beryx.textio.CharInputReader
- parse(String) - Method in class org.beryx.textio.DoubleInputReader
- parse(String) - Method in class org.beryx.textio.EnumInputReader
- parse(String) - Method in class org.beryx.textio.FloatInputReader
- parse(String) - Method in class org.beryx.textio.GenericInputReader
- parse(String) - Method in class org.beryx.textio.InputReader
-
Parses the input string
- parse(String) - Method in class org.beryx.textio.IntInputReader
- parse(String) - Method in class org.beryx.textio.LongInputReader
- parse(String) - Method in class org.beryx.textio.ShortInputReader
- parse(String) - Method in class org.beryx.textio.StringInputReader
- parseAndCheck(String) - Method in class org.beryx.textio.InputReader
-
Parses the input string and runs all value checkers in order to find constraint violations.
- parseErrorMessagesProvider - Variable in class org.beryx.textio.InputReader
-
The provider of parse error messages.
- parser - Variable in class org.beryx.textio.GenericInputReader
- ParseResult(T) - Constructor for class org.beryx.textio.InputReader.ParseResult
- ParseResult(T, String...) - Constructor for class org.beryx.textio.InputReader.ParseResult
- ParseResult(T, List<String>) - Constructor for class org.beryx.textio.InputReader.ParseResult
- possibleValues - Variable in class org.beryx.textio.InputReader
-
Non-null and non-empty, if the value to be read must be chosen from a list of allowed values.
- print(String) - Method in interface org.beryx.textio.TextTerminal
-
Prints a message that possibly contains line separators.
- print(List<String>) - Method in interface org.beryx.textio.TextTerminal
-
Prints each message in the list, inserting the line separator string between messages.
- printAnsi(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- printf(String, Object...) - Method in interface org.beryx.textio.TextTerminal
-
Prints a formatted string using the default locale and the specified format string and arguments.
- printf(Locale, String, Object...) - Method in interface org.beryx.textio.TextTerminal
-
Prints a formatted string using the specified locale, format string and arguments.
- println() - Method in class org.beryx.textio.console.ConsoleTextTerminal
- println() - Method in class org.beryx.textio.jline.JLineTextTerminal
- println() - Method in class org.beryx.textio.mock.MockTextTerminal
- println() - Method in class org.beryx.textio.swing.SwingTextTerminal
- println() - Method in class org.beryx.textio.system.SystemTextTerminal
- println() - Method in interface org.beryx.textio.TextTerminal
-
Terminates the current line by writing the line separator string.
- println(String) - Method in interface org.beryx.textio.TextTerminal
-
Prints a message that possibly contains line separators and subsequently prints a line separator.
- println(List<String>) - Method in interface org.beryx.textio.TextTerminal
-
Prints each message in the list, inserting the line separator string between messages.
- printPrompt(List<String>, TextTerminal<?>) - Method in class org.beryx.textio.BooleanInputReader
- printPrompt(List<String>, TextTerminal<?>) - Method in class org.beryx.textio.InputReader
-
Displays a prompt inviting the user to enter a value.
- promptAdjustments - Variable in class org.beryx.textio.InputReader
-
If true, the input reader is allowed to tweak the prompter, for example by including the default value or appending a colon at the end.
- PROP_ANSI_COLOR_MODE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_BGCOLOR - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_BOLD - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_COLOR - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_FONT_FAMILY - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_FONT_SIZE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_ITALIC - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_STYLE_CLASS - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_SUBSCRIPT - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_SUPERSCRIPT - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_INPUT_UNDERLINE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_BGCOLOR - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_HEIGHT - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_ICON_FILE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_ICON_RESOURCE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_ICON_URL - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_STYLE_CLASS - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_TITLE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PANE_WIDTH - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_BGCOLOR - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_BOLD - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_COLOR - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_FONT_FAMILY - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_FONT_SIZE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_ITALIC - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_STYLE_CLASS - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_SUBSCRIPT - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_SUPERSCRIPT - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_PROMPT_UNDERLINE - Static variable in class org.beryx.textio.PropertiesConstants
- PROP_USER_INTERRUPT_KEY - Static variable in class org.beryx.textio.PropertiesConstants
- propertiesConfigurator - Variable in class org.beryx.textio.InputReader
- PropertiesConstants - Class in org.beryx.textio
- PropertiesConstants() - Constructor for class org.beryx.textio.PropertiesConstants
- PropertiesPrefixes - Annotation Type in org.beryx.textio
- PROPS_PREFIX_ERROR_MESSAGE - Static variable in class org.beryx.textio.InputReader
- put(String, Object) - Method in class org.beryx.textio.TerminalProperties
-
Sets the value associated with the specified key.
- putAll(Map<String, ? extends Object>) - Method in class org.beryx.textio.TerminalProperties
R
- rawPrint(String) - Method in class org.beryx.textio.console.ConsoleTextTerminal
- rawPrint(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- rawPrint(String) - Method in class org.beryx.textio.mock.MockTextTerminal
- rawPrint(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- rawPrint(String) - Method in class org.beryx.textio.system.SystemTextTerminal
- rawPrint(String) - Method in interface org.beryx.textio.TextTerminal
-
Prints the message in its raw form.
- rawPrint(List<String>) - Method in interface org.beryx.textio.TextTerminal
-
Prints each message in the list in its raw form, inserting the line separator string between messages.
- read(boolean) - Method in class org.beryx.textio.console.ConsoleTextTerminal
- read(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- read(boolean) - Method in class org.beryx.textio.mock.MockTextTerminal
- read(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- read(boolean) - Method in class org.beryx.textio.system.SystemTextTerminal
- read(boolean) - Method in interface org.beryx.textio.TextTerminal
-
Reads a line of text
- read(String...) - Method in class org.beryx.textio.InputReader
-
Reads a value of type T.
- read(List<String>) - Method in class org.beryx.textio.InputReader
-
Reads a value of type T.
- ReadAbortedException - Exception in org.beryx.textio
- ReadAbortedException(String, String) - Constructor for exception org.beryx.textio.ReadAbortedException
- ReadHandlerData - Class in org.beryx.textio
- ReadHandlerData(ReadInterruptionStrategy.Action) - Constructor for class org.beryx.textio.ReadHandlerData
- ReadInterruptionData - Class in org.beryx.textio
- ReadInterruptionData(ReadInterruptionStrategy.Action) - Constructor for class org.beryx.textio.ReadInterruptionData
- ReadInterruptionException - Exception in org.beryx.textio
- ReadInterruptionException(ReadInterruptionData, String) - Constructor for exception org.beryx.textio.ReadInterruptionException
- ReadInterruptionStrategy<T extends ReadInterruptionStrategy<T>> - Class in org.beryx.textio
- ReadInterruptionStrategy(ReadInterruptionStrategy.Action) - Constructor for class org.beryx.textio.ReadInterruptionStrategy
- ReadInterruptionStrategy.Action - Enum in org.beryx.textio
- readList(String...) - Method in class org.beryx.textio.InputReader
- readList(List<String>) - Method in class org.beryx.textio.InputReader
- readWithPrompt(TextTerminal<?>, List<String>) - Method in class org.beryx.textio.InputReader
- registerHandler(String, Function<JLineTextTerminal, ReadHandlerData>) - Method in class org.beryx.textio.jline.JLineTextTerminal
- registerHandler(String, Function<SwingTextTerminal, ReadHandlerData>) - Method in class org.beryx.textio.swing.SwingTextTerminal
- registerHandler(String, Function<T, ReadHandlerData>) - Method in interface org.beryx.textio.TextTerminal
-
Associates a key combination to a handler.
- registerUserInterruptHandler(Consumer<JLineTextTerminal>, boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- registerUserInterruptHandler(Consumer<SwingTextTerminal>, boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- registerUserInterruptHandler(Consumer<T>, boolean) - Method in interface org.beryx.textio.TextTerminal
-
Registers a handler that will be called in response to a user interrupt.
- remove(String) - Method in class org.beryx.textio.TerminalProperties
-
Removes the property with the specified key.
- removeListener(TerminalProperties.ExtendedChangeListener<T>) - Method in class org.beryx.textio.TerminalProperties
-
Removes the listener passed as argument.
- replaceInput(String, boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- resetLine() - Method in class org.beryx.textio.jline.JLineTextTerminal
- resetLine() - Method in class org.beryx.textio.swing.SwingTextTerminal
- resetLine() - Method in interface org.beryx.textio.TextTerminal
-
Clears the current line of text.
- resetToBookmark(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- resetToBookmark(String) - Method in interface org.beryx.textio.TextTerminal
-
Clears the text after the given bookmark.
- resetToOffset(int) - Method in class org.beryx.textio.swing.SwingTextTerminal
- RESTART - org.beryx.textio.ReadInterruptionStrategy.Action
- RETURN - org.beryx.textio.ReadInterruptionStrategy.Action
S
- setAnsiColorMode(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setBookmark(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setBookmark(String) - Method in interface org.beryx.textio.TextTerminal
-
Sets a bookmark with the given name at the current position.
- setInputBackgroundColor(Color) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the hex representation of the specified
bgcolorwith the key "input.bgcolor" - setInputBackgroundColor(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setInputBackgroundColor(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputBackgroundColor(String) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
bgcolorwith the key "input.bgcolor" - setInputBold(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setInputBold(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputBold(boolean) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the boolean value
boldwith the key "input.bold" - setInputColor(Color) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the hex representation of the specified
colorwith the key "input.color" - setInputColor(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setInputColor(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputColor(String) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
colorwith the key "input.color" - setInputFontFamily(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputFontSize(int) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputItalic(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setInputItalic(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputItalic(boolean) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the boolean value
italicwith the key "input.italic" - setInputSubscript(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputSuperscript(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputUnderline(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setInputUnderline(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setInputUnderline(boolean) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the boolean value
underlinewith the key "input.underline" - setMaxReads(int) - Method in class org.beryx.textio.mock.MockTextTerminal
- setPaneBackgroundColor(Color) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the hex representation of the specified
bgcolorwith the key "pane.bgcolor" - setPaneBackgroundColor(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPaneBackgroundColor(String) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
bgcolorwith the key "pane.bgcolor" - setPaneDimension(int, int) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
widthandheightwith the keys "pane.width" and "pane.height" - setPaneHeight(int) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
heightwith the key "pane.height" - setPaneIconFile(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPaneIconResource(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPaneIconUrl(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPaneTitle(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPaneWidth(int) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
widthwith the key "pane.width" - setPromptBackgroundColor(Color) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the hex representation of the specified
bgcolorwith the key "prompt.bgcolor" - setPromptBackgroundColor(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setPromptBackgroundColor(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptBackgroundColor(String) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
bgcolorwith the key "prompt.bgcolor" - setPromptBold(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setPromptBold(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptBold(boolean) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the boolean value
boldwith the key "prompt.bold" - setPromptColor(Color) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the hex representation of the specified
colorwith the key "prompt.color" - setPromptColor(String) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setPromptColor(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptColor(String) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the specified
colorwith the key "prompt.color" - setPromptFontFamily(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptFontSize(int) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptItalic(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setPromptItalic(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptItalic(boolean) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the boolean value
italicwith the key "prompt.italic" - setPromptSubscript(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptSuperscript(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptUnderline(boolean) - Method in class org.beryx.textio.jline.JLineTextTerminal
- setPromptUnderline(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setPromptUnderline(boolean) - Method in class org.beryx.textio.TerminalProperties
-
Convenience method that associates the boolean value
underlinewith the key "prompt.underline" - setUserInterruptKey(String) - Method in class org.beryx.textio.swing.SwingTextTerminal
- setUserInterruptKey(KeyStroke) - Method in class org.beryx.textio.swing.SwingTextTerminal
- ShortInputReader - Class in org.beryx.textio
-
A reader for short values.
- ShortInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.ShortInputReader
- StringInputReader - Class in org.beryx.textio
-
A reader for string values.
- StringInputReader(Supplier<TextTerminal<?>>) - Constructor for class org.beryx.textio.StringInputReader
- stripAll(String) - Static method in class org.beryx.textio.mock.MockTextTerminal
- SwingTextTerminal - Class in org.beryx.textio.swing
- SwingTextTerminal() - Constructor for class org.beryx.textio.swing.SwingTextTerminal
- SwingTextTerminalProvider - Class in org.beryx.textio.swing
-
If the system is not headless, it provides a
SwingTextTerminal. - SwingTextTerminalProvider() - Constructor for class org.beryx.textio.swing.SwingTextTerminalProvider
- SYSPROP_PROPERTIES_FILE_LOCATION - Static variable in class org.beryx.textio.AbstractTextTerminal
- SystemTextTerminal - Class in org.beryx.textio.system
- SystemTextTerminal() - Constructor for class org.beryx.textio.system.SystemTextTerminal
- SystemTextTerminalProvider - Class in org.beryx.textio.system
-
It provides a
SystemTextTerminal. - SystemTextTerminalProvider() - Constructor for class org.beryx.textio.system.SystemTextTerminalProvider
T
- TerminalProperties<T extends TextTerminal<T>> - Class in org.beryx.textio
-
A map of properties associated with a TextTerminal.
- TerminalProperties(T) - Constructor for class org.beryx.textio.TerminalProperties
- TerminalProperties.BooleanChangeListener<TT extends TextTerminal<TT>> - Interface in org.beryx.textio
- TerminalProperties.ChangeListener<TT extends TextTerminal<TT>,V> - Interface in org.beryx.textio
- TerminalProperties.DoubleChangeListener<TT extends TextTerminal<TT>> - Interface in org.beryx.textio
- TerminalProperties.ExtendedChangeListener<TT extends TextTerminal<TT>> - Interface in org.beryx.textio
- TerminalProperties.IntChangeListener<TT extends TextTerminal<TT>> - Interface in org.beryx.textio
- TerminalProperties.LongChangeListener<TT extends TextTerminal<TT>> - Interface in org.beryx.textio
- TerminalProperties.StringChangeListener<TT extends TextTerminal<TT>> - Interface in org.beryx.textio
- TEXT_TERMINAL_CLASS_PROPERTY - Static variable in class org.beryx.textio.TextIoFactory
- TextIO - Class in org.beryx.textio
-
A factory for creating
InputReaders. - TextIO(TextTerminal<?>) - Constructor for class org.beryx.textio.TextIO
- TextIoFactory - Class in org.beryx.textio
-
Provides
TextTerminalandTextIOimplementations. - TextIoFactory() - Constructor for class org.beryx.textio.TextIoFactory
- TextTerminal<T extends TextTerminal<T>> - Interface in org.beryx.textio
-
Interface for text-based terminals capable of reading (optionally masking the input) and writing text.
- TextTerminalProvider - Interface in org.beryx.textio
-
TextTerminal Service Provider Interface
- textTerminalSupplier - Variable in class org.beryx.textio.InputReader
-
Supplier of
TextTerminals - toString() - Method in class org.beryx.textio.console.ConsoleTextTerminalProvider
- toString() - Method in class org.beryx.textio.jline.JLineTextTerminalProvider
- toString() - Method in class org.beryx.textio.ReadInterruptionData
- toString() - Method in class org.beryx.textio.ReadInterruptionStrategy
- toString() - Method in class org.beryx.textio.swing.SwingTextTerminalProvider
- toString() - Method in class org.beryx.textio.system.SystemTextTerminalProvider
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.ByteInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.CharInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.ComparableInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.DoubleInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.FloatInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.IntInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.LongInputReader
- typeNameWithIndefiniteArticle() - Method in class org.beryx.textio.ShortInputReader
U
- updateScrollPaneSize(boolean) - Method in class org.beryx.textio.swing.SwingTextTerminal
V
- value() - Method in annotation type org.beryx.textio.PropertiesPrefixes
- valueCheckers - Variable in class org.beryx.textio.InputReader
-
The list of value checkers used to detect constraint violations
- valueFormatter - Variable in class org.beryx.textio.InputReader
-
The formatter used when displaying values of type T.
- valueListCheckers - Variable in class org.beryx.textio.InputReader
-
The list of value checkers used to detect constraint violations for a list of values
- valueOf(String) - Static method in enum org.beryx.textio.ReadInterruptionStrategy.Action
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.beryx.textio.ReadInterruptionStrategy.Action
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withAllValues() - Method in class org.beryx.textio.EnumInputReader
- withAllValuesInline() - Method in class org.beryx.textio.EnumInputReader
- withAllValuesNumbered() - Method in class org.beryx.textio.EnumInputReader
- withDefaultValue(T) - Method in class org.beryx.textio.InputReader
- withEqualsFunc(BiFunction<T, T, Boolean>) - Method in class org.beryx.textio.InputReader
- withFalseInput(String) - Method in class org.beryx.textio.BooleanInputReader
-
Configures the string value that corresponds to false.
- withIgnoreCase() - Method in class org.beryx.textio.StringInputReader
- withInlinePossibleValues(List<T>) - Method in class org.beryx.textio.InputReader
- withInlinePossibleValues(T...) - Method in class org.beryx.textio.InputReader
- withInputMasking(boolean) - Method in class org.beryx.textio.InputReader
- withInputTrimming(boolean) - Method in class org.beryx.textio.InputReader
- withInvalidIndexErrorMessagesProvider(InputReader.InvalidIndexErrorMessagesProvider) - Method in class org.beryx.textio.InputReader
- withItemName(String) - Method in class org.beryx.textio.InputReader
- withMaxLength(int) - Method in class org.beryx.textio.StringInputReader
- withMaxVal(T) - Method in class org.beryx.textio.ComparableInputReader
-
Configures the maximum allowed value
- withMinLength(int) - Method in class org.beryx.textio.StringInputReader
- withMinVal(T) - Method in class org.beryx.textio.ComparableInputReader
-
Configures the minimum allowed value
- withNumberedPossibleValues(List<T>) - Method in class org.beryx.textio.InputReader
- withNumberedPossibleValues(T...) - Method in class org.beryx.textio.InputReader
- withParseErrorMessagesProvider(InputReader.ErrorMessagesProvider) - Method in class org.beryx.textio.InputReader
- withPattern(String) - Method in class org.beryx.textio.StringInputReader
- withPattern(String, int) - Method in class org.beryx.textio.StringInputReader
- withPayload(String) - Method in class org.beryx.textio.ReadInterruptionStrategy
- withPossibleValues(List<T>) - Method in class org.beryx.textio.InputReader
- withPossibleValues(T...) - Method in class org.beryx.textio.InputReader
- withPromptAdjustments(boolean) - Method in class org.beryx.textio.InputReader
- withPropertiesConfigurator(Consumer<TerminalProperties<?>>) - Method in class org.beryx.textio.InputReader
-
Sets a configurator for InputReader-specific properties.
- withPropertiesPrefix(String) - Method in class org.beryx.textio.InputReader
-
Convenience method that calls
InputReader.withPropertiesConfigurator(Consumer)with a configurator that takes all terminal properties with the given prefix and applies them after stripping the prefix from their keys. - withRedrawRequired(boolean) - Method in class org.beryx.textio.ReadInterruptionStrategy
- withReturnValue(String) - Method in class org.beryx.textio.ReadInterruptionData
- withReturnValueProvider(Function<String, String>) - Method in class org.beryx.textio.ReadHandlerData
- withTrueInput(String) - Method in class org.beryx.textio.BooleanInputReader
-
Configures the string value that corresponds to true.
- withValueChecker(InputReader.ValueChecker<T>) - Method in class org.beryx.textio.InputReader
-
Adds the valueChecker passed as argument.
- withValueFormatter(Function<T, String>) - Method in class org.beryx.textio.InputReader
- withValueListChecker(InputReader.ValueChecker<List<T>>) - Method in class org.beryx.textio.InputReader
-
Adds the valueListChecker passed as argument.
All Classes All Packages