|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.themes.DefaultStylesheetManager
public class DefaultStylesheetManager
| Constructor Summary | |
|---|---|
DefaultStylesheetManager()
|
|
| Method Summary | |
|---|---|
void |
addGlobalStylesheet(String style)
Adds a global stylesheet to customize the look and feel of Confluence |
void |
addSpaceStylesheet(String spaceKey,
String style)
Adds a space stylesheet to customize the look and feel of a single space within Confluence. |
String |
getGlobalStylesheet()
Retrieve the custom global stylesheet |
String |
getSpaceStylesheet(String spaceKey)
Retrieve the custom stylesheet that has been stored against a space. |
String |
getSpaceStylesheet(String spaceKey,
boolean shouldLookGlobal)
Retrieve the custom stylesheet that has been stored against a space. |
void |
removeGlobalStylesheet()
removes the global Confluence stylesheet |
void |
removeSpaceStylesheet(String spaceKey)
Removes a space specific stylesheet |
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setThemeManager(ThemeManager themeManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultStylesheetManager()
| Method Detail |
|---|
public String getSpaceStylesheet(String spaceKey)
StylesheetManagerIf no stylesheet is stored against the space, the global stylesheet will be applied if one exists. However, if a space theme is set, the global styles will be ignored.
getSpaceStylesheet in interface StylesheetManagerspaceKey - The key of the Confluence space for which you want to retrieve the style
public String getSpaceStylesheet(String spaceKey,
boolean shouldLookGlobal)
StylesheetManager
getSpaceStylesheet in interface StylesheetManagerspaceKey - The key of the Confluence space for which you want to retrieve the styleshouldLookGlobal - determines whether it should look for a global style if no space style exists
public String getGlobalStylesheet()
StylesheetManager
getGlobalStylesheet in interface StylesheetManagerpublic void addGlobalStylesheet(String style)
StylesheetManager
addGlobalStylesheet in interface StylesheetManagerstyle - A String representing the css styles for Confluence
public void addSpaceStylesheet(String spaceKey,
String style)
StylesheetManager
addSpaceStylesheet in interface StylesheetManagerspaceKey - The key of the Confluence space to which the syle should be appliedstyle - A String representing the css styles for the spacepublic void removeSpaceStylesheet(String spaceKey)
StylesheetManager
removeSpaceStylesheet in interface StylesheetManagerspaceKey - The key of the Confluence space from which to remove the stylepublic void removeGlobalStylesheet()
StylesheetManager
removeGlobalStylesheet in interface StylesheetManagerpublic void setThemeManager(ThemeManager themeManager)
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
public void setEventManager(com.atlassian.event.EventManager eventManager)
public void setSpaceManager(SpaceManager spaceManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||