com.atlassian.confluence.themes.events
Class ThemeChangedEvent

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

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


Copyright © 2003-2012 Atlassian. All Rights Reserved.