info.magnolia.ui.admincentral
Class AdmincentralUIProvider

java.lang.Object
  extended by com.vaadin.server.UIProvider
      extended by com.vaadin.server.DefaultUIProvider
          extended by info.magnolia.ui.admincentral.AdmincentralUIProvider
All Implemented Interfaces:
Serializable

public class AdmincentralUIProvider
extends com.vaadin.server.DefaultUIProvider

The AdmincentralUIProvider allows for fetching the widgetset and theme names from magnolia.properties rather than annotation or servlet params.

See Also:
Serialized Form

Field Summary
static String DEFAULT_THEME
           
static String DEFAULT_WIDGETSET
           
static String OLD_52_WIDGETSET
           
static String THEME_PROPERTY_KEY
           
static String WIDGETSET_DOCUMENTATION_URL
           
static String WIDGETSET_PROPERTY_KEY
           
 
Constructor Summary
AdmincentralUIProvider(info.magnolia.init.MagnoliaConfigurationProperties magnoliaProperties)
           
 
Method Summary
 String getTheme(com.vaadin.server.UICreateEvent event)
           
 String getWidgetset(com.vaadin.server.UICreateEvent event)
           
 
Methods inherited from class com.vaadin.server.DefaultUIProvider
getUIClass
 
Methods inherited from class com.vaadin.server.UIProvider
createInstance, getAnnotationFor, getPageTitle, getPushMode, getPushTransport, isPreservedOnRefresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDGETSET_PROPERTY_KEY

public static final String WIDGETSET_PROPERTY_KEY
See Also:
Constant Field Values

THEME_PROPERTY_KEY

public static final String THEME_PROPERTY_KEY
See Also:
Constant Field Values

OLD_52_WIDGETSET

public static final String OLD_52_WIDGETSET
See Also:
Constant Field Values

DEFAULT_WIDGETSET

public static final String DEFAULT_WIDGETSET
See Also:
Constant Field Values

DEFAULT_THEME

public static final String DEFAULT_THEME
See Also:
Constant Field Values

WIDGETSET_DOCUMENTATION_URL

public static final String WIDGETSET_DOCUMENTATION_URL
See Also:
Constant Field Values
Constructor Detail

AdmincentralUIProvider

@Inject
public AdmincentralUIProvider(info.magnolia.init.MagnoliaConfigurationProperties magnoliaProperties)
Method Detail

getWidgetset

public String getWidgetset(com.vaadin.server.UICreateEvent event)
Overrides:
getWidgetset in class com.vaadin.server.UIProvider

getTheme

public String getTheme(com.vaadin.server.UICreateEvent event)
Overrides:
getTheme in class com.vaadin.server.UIProvider


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.