com.atlassian.confluence.themes.events
Class ThemeChangedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.springframework.context.ApplicationEvent
          extended bycom.atlassian.event.Event
              extended bycom.atlassian.confluence.event.events.ConfluenceEvent
                  extended bycom.atlassian.confluence.themes.events.LookAndFeelEvent
                      extended bycom.atlassian.confluence.themes.events.ThemeChangedEvent
All Implemented Interfaces:
Serializable, Updated

public class ThemeChangedEvent
extends LookAndFeelEvent
implements Updated

Fired when a new theme is selected, either globally or for an individual space.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ThemeChangedEvent(Object src, String spaceKey, String oldThemeKey, String newThemeKey)
           
 
Method Summary
 boolean equals(Object o)
           
 String getNewThemeKey()
          Get the theme that is being changed to.
 String getOldThemeKey()
          Get the theme that is being changed from.
 int hashCode()
           
 
Methods inherited from class com.atlassian.confluence.themes.events.LookAndFeelEvent
getSpaceKey, isGlobal
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThemeChangedEvent

public ThemeChangedEvent(Object src,
                         String spaceKey,
                         String oldThemeKey,
                         String newThemeKey)
Method Detail

getOldThemeKey

public String getOldThemeKey()
Get the theme that is being changed from.

Returns:
the plugin module key of the theme that is being changed from, or null if the previous theme was the default

getNewThemeKey

public String getNewThemeKey()
Get the theme that is being changed to.

Returns:
the plugin module key of the theme that is being changed to, or null if the new theme is the default

equals

public boolean equals(Object o)
Overrides:
equals in class LookAndFeelEvent

hashCode

public int hashCode()
Overrides:
hashCode in class LookAndFeelEvent


Confluence is developed by Atlassian.