Class CSSGroup
java.lang.Object
ro.sync.exml.workspace.api.editor.page.author.css.CSSGroup
Represents a group of CSS resources that will all be used at once to style the Author interface.
For example if the XML also refers to a CSS directly in the content and the document type configuration states that the directly
referenced CSS should be merged with the one coming from the document type configuration, the group will contain both of them.
- Since:
- 17
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addURL
(CSSResource cssRes) Add a new css resource to the list.void
addURLs
(CSSResource[] urlsList) Add CSSResource(s).boolean
getTitle()
getUrls()
Get the list of CSS resources to be used.int
hashCode()
boolean
Check if this is a main CSS styles source.void
removeURL
(CSSResource cssRes) Add remove new css resource to the list.void
setPreferred
(boolean isMainSource) Set this list of CSSs as a main list of CSSs.void
Set the title for this CSSgroup.toString()
-
Constructor Details
-
CSSGroup
Constructor.- Parameters:
title
- The merged css title.isMainSource
-true
if this is a main source of CSS styles. The Styles drop down allows users to choose only one main source.false
if this is an alternate source of CSS styles. The Styles drop down allows users to apply multiple alternate styles over a main source.
-
-
Method Details
-
setTitle
Set the title for this CSSgroup.- Parameters:
title
- The new title.- Since:
- 17.1
-
isMainSource
public boolean isMainSource()Check if this is a main CSS styles source.- Returns:
- Returns
true
if this is a main source of CSS styles. The Styles drop down allows users to choose only one main source.false
if this is an alternate source of CSS styles. The Styles drop down allows users to apply multiple alternate styles over a main source.
-
getTitle
- Returns:
- Returns the title.
-
getUrls
Get the list of CSS resources to be used.- Returns:
- Returns the list of CSS resources.
-
addURLs
Add CSSResource(s).- Parameters:
urlsList
- The CSSResource(s) to be added.
-
addURL
Add a new css resource to the list.- Parameters:
cssRes
- The CSS resource to add.
-
removeURL
Add remove new css resource to the list.- Parameters:
cssRes
- The CSS resource to add.
-
setPreferred
public void setPreferred(boolean isMainSource) Set this list of CSSs as a main list of CSSs.- Parameters:
isMainSource
-true
if this is a main source of CSS styles. The Styles drop down allows users to choose only one main source.false
if this is an alternate source of CSS styles. The Styles drop down allows users to apply multiple alternate styles over a main source.
-
equals
-
hashCode
public int hashCode() -
toString
-