|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.ri.enhancedawt.browser.Preferences
This is the preferences class which stores in its singleton instance the current preferences of the user. When asked for, this class will serialize itself or refresh itself.
| Field Summary | |
static int |
ALWAYS
indicates that cookies should always be accepted |
static int |
NEVER
indicates that cookies should never be accepted |
| Constructor Summary | |
Preferences()
|
|
| Method Summary | |
String |
getAppName()
Returns the emulation mode. |
int |
getCookieHandling()
Returns the style that we handle cookies. |
String |
getHomePage()
Returns the preferred homepage. |
String |
getHttpProxyHost()
Returns the host to be used for the http proxy. |
String |
getHttpProxyPort()
Returns the port to be used for the http proxy. |
String |
getHttpsProxyHost()
Returns the host to be used for the https proxy. |
String |
getHttpsProxyPort()
Returns the port to be used for the https proxy. |
boolean |
getLoadImages()
Returns whether images should be loaded. |
String[] |
getNoProxies()
Returns an arrary of domains NOT to be used as a proxy. |
String |
getSearchPage()
Returns the preferred homepage. |
boolean |
isGifAnimation()
Returns whether or not to animate gifs. |
boolean |
isModified()
Method to check if the instance is different than the /last/ serialized file. |
boolean |
isUsingProxy()
Returns whether or not to use a proxy. |
void |
setAllProps()
Convenience method for setting all properties (below). |
void |
setAppName(String appName)
Sets the emulation mode of the applicaton. |
void |
setCookieHandling(int ch)
Sets the style of cookie handling. |
void |
setEmulationProps()
This method sets the properties with respect to the emulation mode of the browser. |
void |
setGifAnimation(boolean anim)
Sets whether or not to animate gifs. |
void |
setHomePage(String p_home)
Sets the homepage in the preferences instance. |
void |
setHttpProxyHost(String host)
Sets the http host to be used as a proxy. |
void |
setHttpProxyPort(String port)
Sets the port to be used as a http proxy. |
void |
setHttpsProxyHost(String host)
Sets the https host to be used as a proxy. |
void |
setHttpsProxyPort(String port)
Sets the port to be used as a https proxy. |
void |
setLoadImages(boolean loadImages)
Sets whether or not images should be loaded. |
void |
setMemoryProps()
Sets the properties of the desired memory management. |
void |
setNoProxies(String[] nop)
Sets an array of domains NOT to be used as a proxy. |
void |
setProxyProps()
Sets the properties to be used by a proxy manager. |
void |
setSearchPage(String p_search)
Sets the searchpage in the preferences instance. |
void |
setUsingProxy(boolean use)
Sets whether or not to use a proxy. |
void |
write(ConfigurationManager configManager)
Method to persist these preferences. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALWAYS
public static final int NEVER
| Constructor Detail |
public Preferences()
| Method Detail |
public void write(ConfigurationManager configManager)
public boolean isModified()
public void setHomePage(String p_home)
p_home - The string representing the URL of the desired homepage.public String getHomePage()
public void setSearchPage(String p_search)
p_search - The string representation of the search URLpublic String getSearchPage()
public void setGifAnimation(boolean anim)
anim - a boolean indicating to animate gifs.public boolean isGifAnimation()
public void setCookieHandling(int ch)
public int getCookieHandling()
public boolean isUsingProxy()
public void setUsingProxy(boolean use)
public void setAppName(String appName)
public String getAppName()
public String getHttpsProxyHost()
public String getHttpProxyHost()
public void setHttpsProxyHost(String host)
public void setHttpProxyHost(String host)
public String getHttpsProxyPort()
public String getHttpProxyPort()
public void setHttpsProxyPort(String port)
public void setHttpProxyPort(String port)
public void setNoProxies(String[] nop)
nop - a string array of domains not to be used.public String[] getNoProxies()
public void setLoadImages(boolean loadImages)
public boolean getLoadImages()
public void setAllProps()
public void setMemoryProps()
public void setProxyProps()
public void setEmulationProps()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||