org.xwiki.appwithinminutes.test.po
Class ApplicationHomeEditPage

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.BasePage
          extended by org.xwiki.test.ui.po.ViewPage
              extended by org.xwiki.test.ui.po.InlinePage
                  extended by org.xwiki.appwithinminutes.test.po.ApplicationHomeEditPage

public class ApplicationHomeEditPage
extends InlinePage

Represents the actions available when editing the application home page. This is also the third step of the App Within Minutes wizard, in which the presentation of the application home page is customized.

Since:
4.2M1
Version:
$Id: 6ce1beca1168392b181882f1f80f7b374190f050 $

Constructor Summary
ApplicationHomeEditPage()
           
 
Method Summary
 void addLiveTableColumn(String columnLabel)
          Adds a new live table column.
 ApplicationHomePage clickFinish()
          Clicks on the Finish button.
 ApplicationClassEditPage clickPreviousStep()
          Clicks on the Previous Step button.
 void clickSaveAndContinue()
           
<T extends ViewPage>
T
clickSaveAndView()
           
protected
<T extends ViewPage>
T
createViewPage()
           
 String getIcon()
           
 boolean hasLiveTableColumn(String columnLabel)
           
 boolean isDeprecatedLiveTableColumnsWarningDisplayed()
           
 boolean isLiveTableColumnDeprecated(String columnLabel)
           
 void moveLiveTableColumnBefore(String columnToMove, String beforeColumn)
          Reorders the live table columns by moving one column before another.
 void removeAllDeprecatedLiveTableColumns(boolean yes)
          Removes all deprecated columns or simply hides the warning message based on the given boolean value.
 void removeLiveTableColumn(String columnLabel)
          Removes the live table column with the specified label.
 void setDescription(String description)
          Sets the application description.
 void setIcon(String icon)
          Sets the application icon.
 ApplicationHomeEditPage waitUntilPageIsLoaded()
           
 
Methods inherited from class org.xwiki.test.ui.po.InlinePage
clickCancel, clickPreview, getContent, getForm
 
Methods inherited from class org.xwiki.test.ui.po.ViewPage
canDelete, clickBreadcrumbLink, clickWantedLink, copy, createPage, createSpace, delete, editSection, exists, getBreadcrumbContent, getCurrentUser, getDocumentTitle, hasBreadcrumbContent, hasLoginLink, isInlinePage, login, logout, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, register, waitForDocExtraPaneActive, waitUntilContent, watchDocument, watchSpace
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
clickContentMenuEditSubMenuEntry, clickContentMenuTopEntry, createInlinePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getEditURL, getMetaDataValue, getPageTitle, getPageURL, isAuthenticated, isNewDocument, sendKeys
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationHomeEditPage

public ApplicationHomeEditPage()
Method Detail

clickPreviousStep

public ApplicationClassEditPage clickPreviousStep()
Clicks on the Previous Step button.

Returns:
the page that represents the previous step of the App Within Minutes wizard

clickFinish

public ApplicationHomePage clickFinish()
Clicks on the Finish button.

Returns:
the page that represents the application home page

clickSaveAndView

public <T extends ViewPage> T clickSaveAndView()
Overrides:
clickSaveAndView in class InlinePage

clickSaveAndContinue

public void clickSaveAndContinue()
Overrides:
clickSaveAndContinue in class InlinePage

createViewPage

protected <T extends ViewPage> T createViewPage()
Overrides:
createViewPage in class InlinePage

setDescription

public void setDescription(String description)
Sets the application description.

Parameters:
description - the new application description

setIcon

public void setIcon(String icon)
Sets the application icon.

Parameters:
icon - the icon to set

getIcon

public String getIcon()
Returns:
the application icon

addLiveTableColumn

public void addLiveTableColumn(String columnLabel)
Adds a new live table column.

Parameters:
columnLabel - the label of the live table column to be added

removeLiveTableColumn

public void removeLiveTableColumn(String columnLabel)
Removes the live table column with the specified label.

Parameters:
columnLabel - the label of the live table column to be removed

moveLiveTableColumnBefore

public void moveLiveTableColumnBefore(String columnToMove,
                                      String beforeColumn)
Reorders the live table columns by moving one column before another.

Parameters:
columnToMove - the label of the live table column to be moved
beforeColumn - the label of the reference column

hasLiveTableColumn

public boolean hasLiveTableColumn(String columnLabel)
Parameters:
columnLabel - the label of the live table column to check for
Returns:
true if the specified column was selected (i.e. included in the live table), false otherwise

isLiveTableColumnDeprecated

public boolean isLiveTableColumnDeprecated(String columnLabel)
Parameters:
columnLabel - the label of a live table column
Returns:
true if the specified column is displayed as deprecated in the list of selected live table columns, false otherwise

removeAllDeprecatedLiveTableColumns

public void removeAllDeprecatedLiveTableColumns(boolean yes)
Removes all deprecated columns or simply hides the warning message based on the given boolean value.

Parameters:
yes - true to remove all deprecated columns, false to just hide the warning message

isDeprecatedLiveTableColumnsWarningDisplayed

public boolean isDeprecatedLiveTableColumnsWarningDisplayed()
Returns:
true if the warning message about deprecated live table columns is displayed, false otherwise

waitUntilPageIsLoaded

public ApplicationHomeEditPage waitUntilPageIsLoaded()
Overrides:
waitUntilPageIsLoaded in class BasePage


Copyright © 2004-2013 XWiki. All Rights Reserved.