bee
UserInterface
Interactive user interface.
CUIUserInterface
The for command line user interface.
TRACEint
Message type magic number.
DEBUGint
Message type magic number.
INFOint
Message type magic number.
WARNINGint
Message type magic number.
ERRORint
Message type magic number.
TITLEint
Message type magic number.
PROGRESSint
Message type magic number.
UserInterface()
title(CharSequencetitle)void
CharSequencetitle)CharSequencetitle |
Talk to user with decoration like title.
progress(CharSequencemessage)void
CharSequencemessage)CharSequencemessage |
Your message. |
Talk to user as progress message.
trace(Objectmessages)void
Objectmessages)Objectmessages |
Your message. |
Talk to user.
debug(Objectmessages)void
Objectmessages)Objectmessages |
Your message. |
Talk to user.
info(Objectmessages)void
Objectmessages)Objectmessages |
Your message. |
Talk to user.
warn(Objectmessages)void
Objectmessages)Objectmessages |
Your warning message. |
Warn to user.
error(Objectmessages)void
Objectmessages)Objectmessages |
Your emergency message. |
Declare a state of emergency.
confirm(Stringquestion)boolean
Stringquestion)Stringquestion |
Your question message. |
boolean |
An answer. |
Ask user about your question and return his/her answer.
ask(Stringquestion)String
Stringquestion)Stringquestion |
Your question message. |
String |
An answer. |
Ask user about your question and return his/her answer.
ask(Stringquestion, PredicateStringvalidator)String
Stringquestion, PredicateStringvalidator)Stringquestion |
Your question message. |
Predicatevalidator |
Input validator. |
String |
An answer. |
Ask user about your question and return his/her answer.
ask(Stringquestion, TdefaultAnswer)T
Stringquestion, TdefaultAnswer)T |
Anwser type. |
Stringquestion |
Your question message. |
TdefaultAnswer |
A default anwser. |
T |
An answer. |
Ask user about your question and return his/her answer.
UserInterface can display a default answer and user can use it with simple action. If the returned answer is incompatible with the default anwser type, default answer will be returned.
ask(Stringquestion, TdefaultAnswer, PredicateTvalidator)T
Stringquestion, TdefaultAnswer, PredicateTvalidator)T |
Anwser type. |
Stringquestion |
Your question message. |
TdefaultAnswer |
A default anwser. |
Predicatevalidator |
Input validator. |
T |
An answer. |
Ask user about your question and return his/her answer.
UserInterface can display a default answer and user can use it with simple action. If the returned answer is incompatible with the default anwser type, default answer will be returned.
ask(Stringquestion, ClassEenumeration)E
Stringquestion, ClassEenumeration)E |
|
Stringquestion |
Your question message. |
Classenumeration |
A list of selectable items. |
E |
A selected item. |
Ask user about your question and return his/her selected item.
UserInterface can display a list of items and user can select it with simple action.
ask(Stringquestion, ListTitems)T
Stringquestion, ListTitems)T |
|
Stringquestion |
Your question message. |
Listitems |
A list of selectable items. |
T |
A selected item. |
Ask user about your question and return his/her selected item.
UserInterface can display a list of items and user can select it with simple action.
ask(Stringquestion, ListTitems, FunctionT, Stringnaming)T
Stringquestion, ListTitems, FunctionT, Stringnaming)T |
|
Stringquestion |
Your question message. |
Listitems |
A list of selectable items. |
Functionnaming |
|
T |
A selected item. |
Ask user about your question and return his/her selected item.
UserInterface can display a list of items and user can select it with simple action.
file(Stringquestion)Path
Stringquestion)Stringquestion |
Your question message. |
Path |
A specified location. |
Ask user about your question and return his/her specified location.
UserInterface can display the file chooser and user can select it with simple action.
file(Stringquestion, PathdefaultFile)Path
Stringquestion, PathdefaultFile)Stringquestion |
Your question message. |
PathdefaultFile |
|
Path |
A specified location. |
Ask user about your question and return his/her specified location.
UserInterface can display the file chooser and user can select it with simple action.
directory(Stringquestion)Path
Stringquestion)Stringquestion |
Your question message. |
Path |
A specified location. |
Ask user about your question and return his/her specified location.
UserInterface can display the directory chooser and user can select it with simple action.
directory(Stringquestion, PathdefaultDirectory)Path
Stringquestion, PathdefaultDirectory)Stringquestion |
Your question message. |
PathdefaultDirectory |
|
Path |
A specified location. |
Ask user about your question and return his/her specified location.
UserInterface can display the directory chooser and user can select it with simple action.
buildMessage(StringBuilderbuilder, Objectvalue)void
StringBuilderbuilder, Objectvalue)StringBuilderbuilder |
A message builder. |
Objectvalue |
A message object. |
Helper method to build message.
getInterface()Appendable
Appendable |
Get underlaying message listener.
getSink()InputStream
InputStream |
Get underlaying message sink.
write(inttype, Stringmessage)void
inttype, Stringmessage)inttype |
|
Stringmessage |
Write message to user.
write(Throwableerror)void
Throwableerror)Throwableerror |
Write error message to user.
startCommand(Stringname)void
Stringname)Stringname |
A command name. |
Display message about command starts.
endCommand(Stringname)void
Stringname)Stringname |
A command name. |
Display message about command ends.