Package org.apache.wiki.pages.haddock
Class EditWikiPage
java.lang.Object
org.apache.wiki.pages.haddock.EditWikiPage
- All Implemented Interfaces:
- HaddockPage,- Page
public class EditWikiPage extends java.lang.Object implements HaddockPage
Actions available on the Edit page.
- 
Constructor SummaryConstructors Constructor Description EditWikiPage()
- 
Method SummaryModifier and Type Method Description ViewWikiPagecancel()Press the cancel button and disacrd page Edit.static EditWikiPageopen(java.lang.String pageName)Open a given page for edition.ViewWikiPagesaveText(java.lang.String text)Edits the page with the given text.ViewWikiPagesaveText(java.lang.String text, java.lang.String preview)Edits the page with the given text.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wiki.pages.haddock.HaddockPagewikiPageContent, wikiTitle
- 
Constructor Details- 
EditWikiPagepublic EditWikiPage()
 
- 
- 
Method Details- 
openOpen a given page for edition.- Parameters:
- pageName- Wiki page name to Edit.
- Returns:
- EditWikiPageinstance, to allow chaining of actions.
 
- 
cancelPress the cancel button and disacrd page Edit.- Returns:
- ViewWikiPageinstance, to allow chaining of actions.
 
- 
saveTextEdits the page with the given text. Ensures edition is complete by ensuring the preview pane shows the edited text.- Parameters:
- text- text to edit.
- Returns:
- ViewWikiPageinstance, to allow chaining of actions.
 
- 
saveTextEdits the page with the given text. Ensures edition is complete by ensuring the preview pane shows the preview text.- Parameters:
- text- text text to edit.
- preview- expected text to hsow up on the preview pane (i.e., page directives on edit pane shouldn't show up here).
- Returns:
- ViewWikiPageinstance, to allow chaining of actions.
 
 
-