Package org.ametys.web.clientsideelement
Class SetContentViewMenu.ViewItemConfigurationBuilder
java.lang.Object
org.ametys.web.clientsideelement.SetContentViewMenu.ViewItemConfigurationBuilder
- Enclosing class:
- SetContentViewMenu
Builder to get a view item configuration
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the configurationwithContentType
(String cTypeId) Set the content type.withDescription
(I18nizableText description) Set the item's description.Set the icon.withIconGlyph
(String iconGlyph, String iconDecorator) Set the icon glyph and decorator.withLabel
(I18nizableText label) Set the item's label.Set the view name.Set the skin name.
-
Method Details
-
withName
Set the view name. This parameter is mandatory- Parameters:
viewName
- the view name- Returns:
- this view item configuration
-
withSkin
Set the skin name. May be null for a view common to all skin- Parameters:
skinName
- the skin name- Returns:
- this view item configuration
-
withLabel
Set the item's label. This parameter is mandatory- Parameters:
label
- the label- Returns:
- this view item configuration
-
withDescription
Set the item's description. This parameter is mandatory- Parameters:
description
- the description- Returns:
- this view item configuration
-
withContentType
Set the content type. This parameter is mandatory- Parameters:
cTypeId
- the content type id.- Returns:
- this view item configuration
-
withIconGlyph
public SetContentViewMenu.ViewItemConfigurationBuilder withIconGlyph(String iconGlyph, String iconDecorator) Set the icon glyph and decorator. May be null.- Parameters:
iconGlyph
- the icon glyph. May be null.iconDecorator
- the icon decorator. May be null.- Returns:
- this view item configuration
-
withIcon
public SetContentViewMenu.ViewItemConfigurationBuilder withIcon(String iconSmall, String iconMedium, String iconLarge) Set the icon. May be null.- Parameters:
iconSmall
- the small icon (16x16 pixels)iconMedium
- the medium icon (32x32 pixels)iconLarge
- the large icon (48x48 pixels)- Returns:
- this view item configuration
-
build
Build the configuration- Returns:
- the configuration
-