接口的使用
org.springframework.ui.context.ThemeSource
使用ThemeSource的程序包 程序包 说明 org.springframework.ui.context Contains classes defining the application context subinterface for UI applications.org.springframework.ui.context.support Classes supporting the org.springframework.ui.context package.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.ui.context中ThemeSource的使用
org.springframework.ui.context中ThemeSource的子接口 修饰符和类型 接口 说明 interfaceHierarchicalThemeSourceSub-interface of ThemeSource to be implemented by objects that can resolve theme messages hierarchically.返回ThemeSource的org.springframework.ui.context中的方法 修饰符和类型 方法 说明 ThemeSourceHierarchicalThemeSource. getParentThemeSource()Return the parent of this ThemeSource, ornullif none.参数类型为ThemeSource的org.springframework.ui.context中的方法 修饰符和类型 方法 说明 voidHierarchicalThemeSource. setParentThemeSource(ThemeSource parent)Set the parent that will be used to try to resolve theme messages that this object can't resolve.org.springframework.ui.context.support中ThemeSource的使用
实现ThemeSource的org.springframework.ui.context.support中的类 修饰符和类型 类 说明 classDelegatingThemeSourceEmpty ThemeSource that delegates all calls to the parent ThemeSource.classResourceBundleThemeSourceThemeSourceimplementation that looks up an individualResourceBundleper theme.返回ThemeSource的org.springframework.ui.context.support中的方法 修饰符和类型 方法 说明 ThemeSourceDelegatingThemeSource. getParentThemeSource()ThemeSourceResourceBundleThemeSource. getParentThemeSource()static ThemeSourceUiApplicationContextUtils. initThemeSource(ApplicationContext context)Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".参数类型为ThemeSource的org.springframework.ui.context.support中的方法 修饰符和类型 方法 说明 voidDelegatingThemeSource. setParentThemeSource(ThemeSource parentThemeSource)voidResourceBundleThemeSource. setParentThemeSource(ThemeSource parent)org.springframework.web.context.support中ThemeSource的使用
实现ThemeSource的org.springframework.web.context.support中的类 修饰符和类型 类 说明 classAbstractRefreshableWebApplicationContextAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classAnnotationConfigWebApplicationContextWebApplicationContextimplementation which accepts component classes as input — in particular@Configuration-annotated classes, but also plain@Componentclasses and JSR-330 compliant classes usingjavax.injectannotations.classGenericWebApplicationContextSubclass ofGenericApplicationContext, suitable for web environments.classGroovyWebApplicationContextWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextStaticWebApplicationContextimplementation for testing.classXmlWebApplicationContextWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader.org.springframework.web.servlet中ThemeSource的使用
返回ThemeSource的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 ThemeSourceDispatcherServlet. getThemeSource()Return this servlet's ThemeSource, if any; else returnnull.org.springframework.web.servlet.support中ThemeSource的使用
返回ThemeSource的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 static ThemeSourceRequestContextUtils. getThemeSource(HttpServletRequest request)Return the ThemeSource that has been bound to the request by the DispatcherServlet.