Package com.inet.html

Interface CssDocument

All Superinterfaces:
Document
All Known Implementing Classes:
InetHtmlDocument

public interface CssDocument extends Document
View support extension interface.
This Interface has to be implemented by any model, which should be displayed by the HTML views.
  • Method Details

    • createAnnonymousElement

      AbstractDocument.BranchElement createAnnonymousElement(Element parent)
      Creates a implied paragraph element.
      NOTE: Does not change the document model and doesn't need a write lock
      Parameters:
      parent - the parent for the generated element
      Returns:
      a new anonymous branch element
      Since:
      1.05
    • getSiteCount

      int getSiteCount()
      The site counter is increased every time the model is cleared. This happens, if a new page is set or the complete content has been replaced.
      Required, if model changes and layout/painting will run in different threads!
      Returns:
      the current site number
      Since:
      1.05
    • getRevision

      int getRevision()
      The revision increases with every change, that causes an update event.
      Required, if model changes and layout/painting will run in different threads!
      Returns:
      the current revision number
      Since:
      1.05
    • getStyleResolver

      com.inet.html.css.StyleResolver getStyleResolver()
      Returns the style resolver, which is bound to this document to resolve the CSS styles
      Returns:
      the style resolver of this document
      Since:
      1.05
    • readStylesOfVirtualTags

      boolean readStylesOfVirtualTags()
      This flag modifies the the behavior of the default StyleResolver.
      If it returns true, the StyleResolver will read the styles of the virtual elements CONTENT and IMPLIED as well. If false is returned, the styles of these elements will be ignored and it's parents will be searched.
      NOTE: This is important for document structures, which set the styles by the tree structure(like HTML) rather than by the leaf elements(like Javas StyledDocument)
      Returns:
      true, if the styles of CONTENT and IMPLIED will be respected, if false they will be ignored
      Since:
      1.05