|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.URLArgs
public class URLArgs
URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opened by openURL(). In other words, this is like arguments to openURL(), but without have to change the signature of openURL() (since openURL is a generic KParts method). The parts (with a browser extension) who care about urlargs will use those arguments, others will ignore them. This can also be used the other way round, when a part asks for a URL to be opened (with openURLRequest or createNewWindow).
Constructor Summary | |
---|---|
|
URLArgs()
|
|
URLArgs(boolean reload,
int xOffset,
int yOffset)
|
|
URLArgs(boolean reload,
int xOffset,
int yOffset,
java.lang.String serviceType)
|
protected |
URLArgs(java.lang.Class dummy)
|
|
URLArgs(URLArgs args)
|
Method Summary | |
---|---|
java.lang.String |
contentType()
KHTML-specific field, header defining the type of the POST data. |
boolean |
doPost()
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL. |
boolean |
forcesNewWindow()
Whether the URL specifies to be opened in a new window |
boolean |
lockHistory()
|
boolean |
newTab()
|
boolean |
redirectedRequest()
|
void |
setContentType(java.lang.String contentType)
KHTML-specific field, header defining the type of the POST data. |
void |
setDoPost(boolean enable)
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL. |
void |
setForcesNewWindow(boolean forcesNewWindow)
Set whether the URL specifies to be opened in a new window |
void |
setLockHistory(boolean lock)
Whether to lock the history when opening the next URL. |
void |
setNewTab(boolean newTab)
Whether the URL should be opened in a new tab instead in a new window. |
void |
setRedirectedRequest(boolean redirected)
Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected URLArgs(java.lang.Class dummy)
public URLArgs()
public URLArgs(URLArgs args)
public URLArgs(boolean reload, int xOffset, int yOffset, java.lang.String serviceType)
public URLArgs(boolean reload, int xOffset, int yOffset)
Method Detail |
---|
public void setContentType(java.lang.String contentType)
public java.lang.String contentType()
public void setDoPost(boolean enable)
public boolean doPost()
public void setLockHistory(boolean lock)
public boolean lockHistory()
public void setNewTab(boolean newTab)
public boolean newTab()
public boolean redirectedRequest()
public void setRedirectedRequest(boolean redirected)
redirected
- @short Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.public void setForcesNewWindow(boolean forcesNewWindow)
public boolean forcesNewWindow()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |