public final class WebWarning extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static boolean |
DEFAULT_SHOWN |
private static WebWarning |
instance |
private static org.slf4j.Logger |
log
The log stream
|
private boolean |
shown |
private static String |
SHOWN_KEY |
Modifier | Constructor and Description |
---|---|
private |
WebWarning()
This is a utility class, thus it's constructor is private.
|
Modifier and Type | Method and Description |
---|---|
String |
getShownWarningLabel() |
String |
getWarning() |
static WebWarning |
instance()
All access to WebWarning is through this single instance.
|
boolean |
isShown() |
static boolean |
isWarningShown() |
void |
setShown(boolean newShown) |
static void |
setWarningShown(boolean newShown)
From configuration set the state.
|
private static WebWarning instance
private static final String SHOWN_KEY
private static final boolean DEFAULT_SHOWN
private boolean shown
private static final org.slf4j.Logger log
private WebWarning()
public static WebWarning instance()
public void setShown(boolean newShown)
newShown
- Whether this WebWarning should be shown.public boolean isShown()
public static void setWarningShown(boolean newShown)
newShown
- Whether this WebWarning should be shown.public static boolean isWarningShown()
public String getWarning()
public String getShownWarningLabel()