|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.util.WebWarning
public class WebWarning
Provide a configurable warning that the Internet is going to be accessed. This is important in places where Internet activity may be monitored and Christians may be persecuted.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private static boolean |
DEFAULT_SHOWN
|
private static WebWarning |
instance
|
private static Logger |
log
The log stream |
private boolean |
shown
|
private static String |
SHOWN_KEY
|
Constructor Summary | |
---|---|
private |
WebWarning()
This is a utility class, thus it's constructor is private. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static WebWarning instance
private static final String SHOWN_KEY
private static final boolean DEFAULT_SHOWN
private boolean shown
private static final Logger log
Constructor Detail |
---|
private WebWarning()
Method Detail |
---|
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()
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |