Page History
...
Package: info.magnolia.ui.admincentral
Technical insight: This is a custom Vaadin UIProvider. It gets the MagnoliaConfigurationProperties via injection, and checks for property values when queried for widgetset or theme. Vaadin's DefaultUIProvider can only resolve widgetsets and themes either from servlet parameters or via annotation.
Property keys are mostly defined as constants in the SystemProperty (info.magnolia.cms.core) deprecated class. In want of a better location for generic magnolia_ui properties (MagnoliaUiProperties?), the widgetset and theme properties keys are defined hereFor these new properties, we keep their keys where we use them, i.e. in the AdmincentralUIProvider.
Code Block | ||||
---|---|---|---|---|
| ||||
public static final String MAGNOLIAWIDGETSET_UIPROPERTY_VAADIN_WIDGETSETKEY = "magnolia.ui.vaadin.widgetset"; public static final String MAGNOLIATHEME_UIPROPERTY_VAADIN_THEMEKEY = "magnolia.ui.vaadin.theme"; |
...
Code Block | ||||
---|---|---|---|---|
| ||||
public static final String DEFAULT_WIDGETSET_NAME = "info.magnolia.ui.vaadin.gwt.MagnoliaWidgetSet"; public static final String DEFAULT_THEME_NAME = "admincentral"; |