Class CssRequest
java.lang.Object
de.xima.fc.gui.designer.form.model.params.CssRequest
- All Implemented Interfaces:
Serializable
Client-side model for requesting info about a CSS file. Can be either a URI or some CSS content. Note: This class
must be serializable / deserializable via JSON.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CssRequeststatic CssRequestgetType()getValue()inthashCode()voidsetSourceUrl(URI sourceUri) voidsetType(ECssRequestType type) voidtoString()
-
Constructor Details
-
CssRequest
public CssRequest()
-
-
Method Details
-
equals
-
getSourceUrl
- Returns:
- Absolute location of the stylesheet.
-
getType
- Returns:
- The type of the CSS request, either a URI or literal CSS content.
-
getValue
- Returns:
- The CSS data, either a URI or literal CSS content, depending on
getType().
-
hashCode
public int hashCode() -
setSourceUrl
- Parameters:
sourceUri- Absolute location of the stylesheet.
-
setType
- Parameters:
type- The type of the CSS request, either a URI or literal CSS content.
-
setValue
- Parameters:
value- The CSS data, either a URI or literal CSS content, depending ongetType().
-
toString
-
forInline
- Parameters:
content- Content of the CSS file.sourceUrl- Absolute URL of the stylesheet.- Returns:
- A new CSS request for the given content.
-
forUri
- Parameters:
uri- URI to the CSS file.baseUrl- Absolute base URL relative to which to interpret the given URI.- Returns:
- A new CSS request for the given URI.
-