Package org.ametys.web.skin
Class SkinModel
java.lang.Object
org.ametys.web.skin.SkinModel
A skin
Do not mistake with
SkinParametersModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Abstract representation of a menu itemclass
Bean representing a item of css styleclass
Item representing a separatorclass
Bean representing a theme -
Field Summary
Modifier and TypeFieldDescriptionprotected I18nizableText
The skin descriptionprotected Path
The skin directoryprotected String
The skin id (e.g.protected I18nizableText
The skin nameprotected String
The skin thumbnail 48x48protected long
The last time the file was loadedprotected String
The skin thumbnail 32x32protected boolean
Is the skin modifiableprotected String
The skin thumbnail 16x16 -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
The configuration default values (if configuration file does not exist or is unreadable)Get the default colors of this themeGet the default colors of this modelGet the default color themeGet model default valuesThe skin descriptiongetId()
The skin idgetLabel()
The skin labelThe large image file uriThe medium image file urigetPath()
Get the skin's file directoryThe small image file uriGet all style items of this modelgetStyleItems
(String styleId) Get the items of this css styleGet a theme of this modelGet color themes of this modelboolean
Is the model modifiable?void
Refresh the conf values
-
Field Details
-
_id
The skin id (e.g. the directory name) -
_file
The skin directory -
_label
The skin name -
_description
The skin description -
_smallImage
The skin thumbnail 16x16 -
_mediumImage
The skin thumbnail 32x32 -
_largeImage
The skin thumbnail 48x48 -
_lastConfUpdate
The last time the file was loaded -
_modifiable
Is the skin modifiable
-
-
Constructor Details
-
SkinModel
Creates a skin- Parameters:
id
- The id of the skin (e.g. the directory name)file
- The skin filemodifiable
- Is this model modifiable?
-
-
Method Details
-
_defaultValues
The configuration default values (if configuration file does not exist or is unreadable) -
isModifiable
Is the model modifiable?- Returns:
- true if modifiable
-
refreshValues
Refresh the conf values -
getDefaultColorTheme
Get the default color theme- Returns:
- The default color theme or
null
-
getThemes
Get color themes of this model- Returns:
- color themes of this model
-
getTheme
Get a theme of this model- Parameters:
themeId
- the theme id- Returns:
- the theme
-
getDefaultColors
Get the default colors of this model- Returns:
- The default colors of this model
-
getColors
Get the default colors of this theme- Parameters:
themeId
- The theme id- Returns:
- the default colors of this theme
-
getStyleItems
Get all style items of this model- Returns:
- the list of items of css style
-
getStyleItems
Get the items of this css style- Parameters:
styleId
- The css style id- Returns:
- the list of items of css style
-
getDefaultValues
Get model default values- Returns:
- The default values
-
getId
The skin id- Returns:
- the id
-
getLabel
The skin label- Returns:
- The label
-
getDescription
The skin description- Returns:
- The description. Can not be null but can be empty
-
getSmallImage
The small image file uri- Returns:
- The small image file uri
-
getMediumImage
The medium image file uri- Returns:
- The medium image file uri
-
getLargeImage
The large image file uri- Returns:
- The large image file uri
-
getPath
Get the skin's file directory- Returns:
- the skin's file directory
-