bee

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

Talk to user with decoration like title.

progress(CharSequencemessage)void

CharSequencemessage

Your message.

Talk to user as progress message.

trace(Objectmessages)void

Objectmessages

Your message.

Talk to user.

debug(Objectmessages)void

Objectmessages

Your message.

Talk to user.

info(Objectmessages)void

Objectmessages

Your message.

Talk to user.

warn(Objectmessages)void

Objectmessages

Your warning message.

Warn to user.

error(Objectmessages)void

Objectmessages

Your emergency message.

Declare a state of emergency.

confirm(Stringquestion)boolean

Stringquestion

Your question message.

boolean

An answer.

Ask user about your question and return his/her answer.

ask(Stringquestion)String

Stringquestion

Your question message.

String

An answer.

Ask user about your question and return his/her answer.

ask(Stringquestion, PredicateStringvalidator)String

Stringquestion

Your question message.

PredicateStringvalidator

Input validator.

String

An answer.

Ask user about your question and return his/her answer.

ask(Stringquestion, TdefaultAnswer)T

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

T

Anwser type.

Stringquestion

Your question message.

TdefaultAnswer

A default anwser.

PredicateTvalidator

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

EEnum
Stringquestion

Your question message.

ClassEenumeration

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

T
Stringquestion

Your question message.

ListTitems

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

T
Stringquestion

Your question message.

ListTitems

A list of selectable items.

FunctionT, Stringnaming
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

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

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

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

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

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

Write message to user.

write(Throwableerror)void

Throwableerror

Write error message to user.

startCommand(Stringname)void

Stringname

A command name.

Display message about command starts.

endCommand(Stringname)void

Stringname

A command name.

Display message about command ends.