Package pt.tecnico.uilib
Class Display
java.lang.Object
pt.tecnico.uilib.Display
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAll
(Collection<?> items) Add a line of text in a new-line.addNewLine
(Object toAdd, boolean force) Add a line of text in a new-line.void
clear()
Clear display.final void
display()
Display the text held by this display, even if the text to show is the empty string.final void
Display the text held by this display only if there is something to show (text is not the empty string).void
Easy display method.void
popup
(Collection<?> toPop) Easy display method.
-
Constructor Details
-
Display
public Display()Build a Display without a title and use the static IO -
Display
- Parameters:
title
- the title
-
Display
-
-
Method Details
-
add
-
addAll
-
addLine
-
addNewLine
-
display
public final void display()Display the text held by this display, even if the text to show is the empty string. Clear the text after the text was shown to the user. -
displayText
public final void displayText()Display the text held by this display only if there is something to show (text is not the empty string). Otherwise, it does nothing. In the textual interaction this method and the display() method are similar. With a visual interaction, the behabior of both methods is distinct when the text to show is the empty string. Clear the text after the text was shown to the user. -
popup
-
popup
-
clear
public void clear()Clear display. Empties the text to show.
-