java.lang.Object
ro.sync.exml.workspace.api.editor.page.author.css.CSSGroup

@API(type=EXTENDABLE, src=PUBLIC) public class CSSGroup extends 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 Details

    • CSSGroup

      public CSSGroup(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 Details

    • setTitle

      public void setTitle(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 String getTitle()
      Returns:
      Returns the title.
    • getUrls

      public 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(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: