|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SkinModelLocator<E extends java.lang.Object & Skin>
A locator the can be provided by SkinList
implementations.
The locator is optionally implemented by a skin list.
Code example:
final SkinList list = ...; final Locator loc = list.getLocator(); if (loc instanceof SkinModelLocator) { final SkinModelLocator locator = (SkinModelLocator) loc; final Skin defaultSkin = locator.getDefaultForTheme(aTheme); }
Method Summary | |
---|---|
ListModel<E> |
getAllInTheme(Theme aTheme)
Returns all skins that belong to the specified theme. |
ListModel<E> |
getAllInThemes(java.util.Iterator<? extends Theme> aThemes)
Returns all skins that belong to the specified themes. |
ListModel<E> |
getAllOfType(SkinType aType)
Deprecated. this method is deprecated without replacement Returns all skins that are of a certain skin type. |
Skin |
getDefaultForTheme(Theme aTheme)
Returns the default skin for the given theme. |
Methods inherited from interface com.ibm.portal.Locator |
---|
findByID, findByUniqueName |
Method Detail |
---|
ListModel<E> getAllOfType(SkinType aType) throws ModelException, DataException
DataException
- if a database error occurs while accessing the data backend
ModelException
- if an error occured while accessing model informationListModel<E> getAllInTheme(Theme aTheme) throws ModelException, DataException
aTheme
- the theme for which to return all associated skins
ModelException
- if an error occured while accessing model information
DataException
- if the default skins cannot be retrieved, due to a database error.ListModel<E> getAllInThemes(java.util.Iterator<? extends Theme> aThemes) throws ModelException, DataException
aThemes
- an iterator holding only themes objects
ModelException
- if an error occured while accessing model information
DataException
- The default skins cannot be retrieved, due to a database error.Skin getDefaultForTheme(Theme aTheme) throws ModelException, DataException
aTheme
- The theme object.
null
if there is no default skin
ModelException
- if an error occured while accessing model information
DataException
- if the default skin cannot be retrieved, due to a database error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |