public final class UI extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UI.Module |
static class |
UI.PrintLevel |
Modifier and Type | Method and Description |
---|---|
static String |
formatOutput(UI.Module m,
UI.PrintLevel level,
String s) |
static void |
printDetailed(UI.Module m,
String s,
Object... args) |
static void |
printError(UI.Module m,
String s,
Object... args) |
static void |
printInfo(UI.Module m,
String s,
Object... args) |
static void |
printWarning(UI.Module m,
String s,
Object... args) |
static void |
set(UserInterface ui)
Sets the active user interface implementation.
|
static void |
taskCancel()
Cancel the currently active task.
|
static boolean |
taskCanceled()
Check to see if the current task should be aborted.
|
static void |
taskStart(String s,
int min,
int max) |
static void |
taskStop() |
static void |
taskUpdate(int current) |
static void |
verbosity(int verbosity) |
public static final void set(UserInterface ui)
null
silences printing completely.ui
- object to recieve all user interface callspublic static final void verbosity(int verbosity)
public static final String formatOutput(UI.Module m, UI.PrintLevel level, String s)
public static final void taskStart(String s, int min, int max)
public static final void taskUpdate(int current)
public static final void taskStop()
public static final void taskCancel()
public static final boolean taskCanceled()
true
if the current task should be stopped,
false
otherwiseCopyright © 2017. All rights reserved.