-
Notifications
You must be signed in to change notification settings - Fork 162
Themes
l0rdn1kk0n edited this page Jul 22, 2012
·
9 revisions
public interface ThemeProvider {
Theme byName(final String name);
List<Theme> available();
Theme defaultTheme();
}
public interface ActiveThemeProvider {
/**
* returns the current active theme (can user/session specific). If none is
* set a default theme should be returned (implementation specific).
* There is a session scoped implementation: {@code SessionThemeProvider}
*
* @return the current active theme
*/
Theme getActiveTheme();
/**
* sets the active theme by its name.
*
* @param themeName the theme name
*/
void setActiveTheme(String themeName);
/**
* sets the active theme
*
* @param theme the theme to set
*/
void setActiveTheme(Theme theme);
}
``
Copyright 2012 AgileCoders.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.