org.jenkinsci.plugins.uithemes.model
Class UIThemeContribution

java.lang.Object
  extended by org.jenkinsci.plugins.uithemes.model.UIThemeContribution

public class UIThemeContribution
extends Object

UI Theme Contribution.

See README.md.

A given theme "implementation" (UIThemeImplementation) can have multiple resources "contributed" to it by Jenkins core (and/or 0+ plugins). If you think about the "icon" theme and it's "classic" implementation, Jenkins core makes a theme resource contribution that defines the core set of "classic" icons, but each of the plugins can also contribute to that same theme implementation. The same obviously applies for other "icon" themes might be created e.g. a "font-awesome" theme.

Author:
tom.fennelly@gmail.com

Constructor Summary
UIThemeContribution(String contributionName, String themeName, String themeImplName, Class<?> contributor)
           
 
Method Summary
 org.lesscss.Resource createUserLessResource(File userHome, UIThemeImplementation implementation)
           
 String getContributionName()
           
 Class<?> getContributor()
           
 QName getQName()
           
 String getThemeImplName()
           
 String getThemeName()
           
protected  Map<String,String> getUserThemeImplConfig(File userHome)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIThemeContribution

public UIThemeContribution(String contributionName,
                           String themeName,
                           String themeImplName,
                           Class<?> contributor)
Method Detail

getContributionName

public String getContributionName()

getContributor

public Class<?> getContributor()

getThemeName

public String getThemeName()

getThemeImplName

public String getThemeImplName()

createUserLessResource

public org.lesscss.Resource createUserLessResource(File userHome,
                                                   UIThemeImplementation implementation)
                                            throws IOException
Throws:
IOException

getQName

public QName getQName()

toString

public String toString()
Overrides:
toString in class Object

getUserThemeImplConfig

protected Map<String,String> getUserThemeImplConfig(File userHome)
                                             throws IOException
Throws:
IOException


Copyright © 2004-2015. All Rights Reserved.