Class CSSGroup
- java.lang.Object
-
- ro.sync.exml.workspace.api.editor.page.author.css.CSSGroup
-
@API(type=EXTENDABLE, src=PUBLIC) public class CSSGroup extends java.lang.Object
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 Constructor Description CSSGroup(java.lang.String title, boolean isMainSource)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(CSSResource cssRes)
Add a new css resource to the list.void
addURLs(CSSResource[] urlsList)
Add CSSResource(s).boolean
equals(java.lang.Object obj)
java.lang.String
getTitle()
java.util.List<CSSResource>
getUrls()
Get the list of CSS resources to be used.int
hashCode()
boolean
isMainSource()
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
setTitle(java.lang.String title)
Set the title for this CSSgroup.java.lang.String
toString()
-
-
-
Constructor Detail
-
CSSGroup
public CSSGroup(java.lang.String title, boolean isMainSource)
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 Detail
-
setTitle
public void setTitle(java.lang.String title)
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
public java.lang.String getTitle()
- Returns:
- Returns the title.
-
getUrls
public java.util.List<CSSResource> getUrls()
Get the list of CSS resources to be used.- Returns:
- Returns the list of CSS resources.
-
addURLs
public void addURLs(CSSResource[] urlsList)
Add CSSResource(s).- Parameters:
urlsList
- The CSSResource(s) to be added.
-
addURL
public void addURL(CSSResource cssRes)
Add a new css resource to the list.- Parameters:
cssRes
- The CSS resource to add.
-
removeURL
public void removeURL(CSSResource cssRes)
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
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-