com.atlassian.confluence.pageobjects.component.theme
Class ChooseThemeComponent

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.theme.ChooseThemeComponent
All Implemented Interfaces:
PageComponent

public class ChooseThemeComponent
extends ConfluenceAbstractPageComponent

Models the theme selection UI that is available under the Confluence administration console (for selecting the site-wide theme) and the Space admin tools (for selecting the active theme at a space level). Note that the theme selection UI is a pretty old part of Confluence that uses a non-semantic table layout, so the selectors used to bind page elements are less than ideal.


Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
ChooseThemeComponent()
           
 
Method Summary
 java.lang.String getActiveThemeName()
          Returns the textual name of the currently active theme (see also AvailableTheme.getName().
 java.util.Collection<AvailableTheme> getAvailableThemes()
          Returns a collection of installed themes which may be selected as the new active theme.
 boolean setTheme(AvailableTheme theme)
          Chooses a new theme from the list of available themes (see getAvailableThemes() and submits the Form.
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChooseThemeComponent

public ChooseThemeComponent()
Method Detail

getActiveThemeName

public java.lang.String getActiveThemeName()
Returns the textual name of the currently active theme (see also AvailableTheme.getName().


getAvailableThemes

public java.util.Collection<AvailableTheme> getAvailableThemes()
Returns a collection of installed themes which may be selected as the new active theme. Note that the currently active theme (as returned by getActiveThemeName()) is not included in this list.


setTheme

public boolean setTheme(@Nonnull
                        AvailableTheme theme)
Chooses a new theme from the list of available themes (see getAvailableThemes() and submits the Form.



Copyright © 2003-2014 Atlassian. All Rights Reserved.