com.atlassian.confluence.pageobjects.component.theme
Class ChooseThemeComponent
java.lang.Object
com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChooseThemeComponent
public ChooseThemeComponent()
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.