|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.webapp.utils.html.HtmlUtils
public class HtmlUtils
Method Summary | |
---|---|
static java.net.URL |
addURLToProject(java.net.URL documentURL,
Context context,
java.lang.String promptMessage,
java.lang.String promptDialogTitle,
java.lang.String saveDialogTitle)
Adds a document URL to a project, prompting the user to move the document under the webroot if necessary. |
static java.net.URL |
addURLToProject(java.net.URL documentURL,
Context context,
java.lang.String promptMessage,
java.lang.String promptDialogTitle,
java.lang.String saveDialogTitle,
boolean forceAdd)
|
static java.lang.String |
getRelativeString(Context context,
java.net.URL url)
Returns a relative url for any document under the document root in a web application if one is possible. |
static java.lang.String |
getRelativeString(Context context,
java.net.URL root,
java.net.URL url)
Return a relative String for HTML elements such as img src, href, etc. |
static void |
openHtmlPage(Node node)
Open the given node in the HTML preview editor. |
static void |
openHtmlPage(java.net.URL url)
Open the given URL in the HTML preview editor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void openHtmlPage(java.net.URL url)
url
- The URL of the HTML filepublic static void openHtmlPage(Node node)
node
- The node representing the HTML filepublic static java.net.URL addURLToProject(java.net.URL documentURL, Context context, java.lang.String promptMessage, java.lang.String promptDialogTitle, java.lang.String saveDialogTitle)
URL
to a project, prompting the user to move the document under the webroot if necessary.
If project is null returns original document URL.
public static java.net.URL addURLToProject(java.net.URL documentURL, Context context, java.lang.String promptMessage, java.lang.String promptDialogTitle, java.lang.String saveDialogTitle, boolean forceAdd)
forceAdd
- If true user must copy given URL to the project.
public static java.lang.String getRelativeString(Context context, java.net.URL url)
context
- the current contexturl
- the url to make relative
public static java.lang.String getRelativeString(Context context, java.net.URL root, java.net.URL url)
context
- the current contextroot
- the root urlurl
- the url to make relative based on the root url
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |