Class BrandingPageStyleValidator
java.lang.Object
io.meeds.layout.util.BrandingPageStyleValidator
The vocabulary of the page fields of the branding, as the Page drawer
writes them: a width from 100 to 3000 pixels or the full width, a hex
colour, one gradient function, and keywords for the background options.
Every page field is
written into the style of every page's body, and the branding service
validates none of them against a grammar of its own.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAccepted(String field, String value) static booleanisAcceptedEffect(String value)
-
Field Details
-
MIN_WIDTH_PX
public static final int MIN_WIDTH_PX- See Also:
-
MAX_WIDTH_PX
public static final int MAX_WIDTH_PX- See Also:
-
FULL_WIDTH
- See Also:
-
-
Method Details
-
isAccepted
- Parameters:
field- one of the page fields ofThemeOptions.PAGE_FIELDSvalue- the value to write- Returns:
- true when the value is in the drawer's vocabulary for the field
-
isAcceptedEffect
- Parameters:
value- the value to write in a background image option, of the page or of a theme area- Returns:
- true when the value is none or exactly one gradient function, as the drawers' background input writes it: a url function anywhere in the value, in any case, or a second layer, is refused
-