|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.Module | +--mozile.save
Nested Class Summary | |
<static class> |
mozile.save.Method |
Field Summary | |
<static> mozile.save.Method |
display
Display the content in a new window. |
<static> String |
format
Determines the string format to use for saving. |
<static> Object |
method
Determines which save method will be used to save the document. |
<static> mozile.save.Method |
post
Save the content using HTTP POST. |
<static> mozile.edit.State |
savedState
The last saved state. |
<static> Node |
target
Determines the node to save. |
<static> Boolean |
warn
Indicates that the user should be warned before leaving a page with unsaved changes. |
Method Summary | |
<static> String
|
cleanContent(<String> content)
Cleans the XML content string from getContent(), removing any changes that Mozile has made. |
<static> String
|
cleanDOM(<Node> target)
Cleans the DOM tree of a node, removing any changes that Mozile has made. |
<static> String
|
cleanMarkup(<String> content)
Converts < and > characters. |
<static> String
|
getContent(<Node> target, <String> format)
Gets the content of a document or a node as a string. |
<static> String
|
getDoctypeDeclaration()
The DOCTYPE declaration for the document, if there is one. |
<static> String
|
getProcessingInstructions()
The Processing Instructions for the document, if there are any. |
<static> String
|
getXMLDeclaration()
The XML declaration for the document, if there is one. |
<static> Boolean
|
isSaved()
Determines whether the document has been saved in its current state. |
<static> Boolean
|
save()
Saves the document using the current mozile.save.method.save(). |
<static> Boolean
|
saveAs()
Saves the document using the current mozile.save.method.saveAs(). |
<static> String
|
toLowerCase(<String> content)
Converts the element names of an XML string to lower case. |
<static> String
|
toUpperCase(<String> content)
Converts the element names of an XML string to upper case. |
Field Detail |
<static> mozile.save.Method display
<static> String format
<static> Object method
<static> mozile.save.Method post
<static> mozile.edit.State savedState
<static> Node target
<static> Boolean warn
Method Detail |
<static> String cleanContent(<String> content)
content
- The string to clean.
<static> String cleanDOM(<Node> target)
target
- The node to clean.
<static> String cleanMarkup(<String> content)
content
- The string to clean.
<static> String getContent(<Node> target, <String> format)
target
- Optional. Get the content of this node. If no node is given the documentElement is used.
format
- Optional. The format of the string. Can be "uppercase" or "lowercase". If none is given no formatting is done.
<static> String getDoctypeDeclaration()
<static> String getProcessingInstructions()
<static> String getXMLDeclaration()
<static> Boolean isSaved()
<static> Boolean save()
<static> Boolean saveAs()
<static> String toLowerCase(<String> content)
content
-
<static> String toUpperCase(<String> content)
content
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |