Class DirectoryModel
-
- All Implemented Interfaces:
public abstract class DirectoryModelRepresents an item in the directory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumDirectoryModel.OrientationRepresents the orientation on the image, VERTICAL and HORIZONTAL
-
Field Summary
Fields Modifier and Type Field Description private Integeridprivate Stringnameprivate StringinfoLinkprivate Categorycategoryprivate LayoutTypeinfoLayoutTypeprivate DirectoryModel.Orientationorientationprivate Stringtypeprivate StringimageLinkprivate RankingDatarankingData
-
Constructor Summary
Constructors Constructor Description DirectoryModel()
-
Method Summary
Modifier and Type Method Description abstract IntegergetId()Unique id for the item, for example the hash of the infoLink abstract UnitsetId(Integer id)Unique id for the item, for example the hash of the infoLink abstract StringgetName()Item name abstract UnitsetName(String name)Item name abstract StringgetInfoLink()Info link used to open the Info page abstract UnitsetInfoLink(String infoLink)Info link used to open the Info page abstract CategorygetCategory()Content category abstract UnitsetCategory(Category category)Content category LayoutTypegetInfoLayoutType()Layout type to be used when loading the info, LayoutType.SINGLE for single items like Category.MOVIE, or LayoutType.MULTIPLE for multiple items like Category.SERIES, by default the system uses the category to decide wich one to use UnitsetInfoLayoutType(LayoutType infoLayoutType)Layout type to be used when loading the info, LayoutType.SINGLE for single items like Category.MOVIE, or LayoutType.MULTIPLE for multiple items like Category.SERIES, by default the system uses the category to decide wich one to use DirectoryModel.OrientationgetOrientation()Image orientation to be used UnitsetOrientation(DirectoryModel.Orientation orientation)Image orientation to be used StringgetType()Optional subtext to be shown UnitsetType(String type)Optional subtext to be shown StringgetImageLink()Item image link UnitsetImageLink(String imageLink)Item image link RankingDatagetRankingData()Optional ranking data UnitsetRankingData(RankingData rankingData)Optional ranking data -
-
Method Detail
-
getInfoLink
abstract String getInfoLink()
Info link used to open the Info page
-
setInfoLink
abstract Unit setInfoLink(String infoLink)
Info link used to open the Info page
-
getCategory
abstract Category getCategory()
Content category
-
setCategory
abstract Unit setCategory(Category category)
Content category
-
getInfoLayoutType
LayoutType getInfoLayoutType()
Layout type to be used when loading the info, LayoutType.SINGLE for single items like Category.MOVIE, or LayoutType.MULTIPLE for multiple items like Category.SERIES, by default the system uses the category to decide wich one to use
-
setInfoLayoutType
Unit setInfoLayoutType(LayoutType infoLayoutType)
Layout type to be used when loading the info, LayoutType.SINGLE for single items like Category.MOVIE, or LayoutType.MULTIPLE for multiple items like Category.SERIES, by default the system uses the category to decide wich one to use
-
getOrientation
DirectoryModel.Orientation getOrientation()
Image orientation to be used
-
setOrientation
Unit setOrientation(DirectoryModel.Orientation orientation)
Image orientation to be used
-
getImageLink
String getImageLink()
Item image link
-
setImageLink
Unit setImageLink(String imageLink)
Item image link
-
getRankingData
RankingData getRankingData()
Optional ranking data
-
setRankingData
Unit setRankingData(RankingData rankingData)
Optional ranking data
-
-
-
-