FixIO Documentation

Back to summary

import "io/console";

PromptHandlerImpl class

PromptHandlerImpl is used for providing properties used by the prompt implementations. To use just cast to it from the PromptHandler class.

Properties

function set_done(done: Boolean)
Sets the done flag.
function set_internal_text(text: String)
Sets the current text to the internal value to avoid unneeded copies when the text is not retrieved when handling of an event. The get_text method will create a copy on a first use. The text updated flag is set to false.
function set_text_updated(text_updated: Boolean)
Sets a flag that is used to avoid using the same text between prompts. The prompt implementation sets it to false after the prompt is done and will not use the text as an initial value unless this flag is set. It is automatically set to true when the text is explicitly set using the set_text function.
function is_text_updated(): Boolean
Returns the value of the flag.
function set_choice(choice: Integer)
Sets the choice number.