Class TableFObj

    • Constructor Detail

      • TableFObj

        public TableFObj​(FONode parent)
        Create a TableFObj instance that is a child of the given FONode
        Parameters:
        parent - the parent FONode
    • Method Detail

      • bind

        public void bind​(PropertyList pList)
                  throws FOPException
        Bind property values from the property list to the FO node. Must be overridden in all FObj subclasses that have properties applying to it.
        Overrides:
        bind in class FObj
        Parameters:
        pList - the PropertyList where the properties can be found.
        Throws:
        FOPException - if there is a problem binding the values
      • getBorderPrecedence

        public Numeric getBorderPrecedence​(int side)
        Return the value for the "border-precedence" property for the given side.
        Parameters:
        side - the side for which to return the border precedence
        Returns:
        the "border-precedence" value for the given side
      • getTable

        public Table getTable()
        Convenience method to returns a reference to the base Table instance.
        Returns:
        the base table instance
      • getCommonBorderPaddingBackground

        public abstract CommonBorderPaddingBackground getCommonBorderPaddingBackground()
        Returns:
        the Common Border, Padding, and Background Properties.
      • processNode

        public void processNode​(java.lang.String elementName,
                                org.xml.sax.Locator locator,
                                org.xml.sax.Attributes attlist,
                                PropertyList pList)
                         throws FOPException
        Initialize the node with its name, location information, and attributes The attributes must be used immediately as the sax attributes will be altered for the next element.
        Overrides:
        processNode in class FObj
        Parameters:
        elementName - element name (e.g., "fo:block")
        locator - Locator object (ignored by default)
        attlist - Collection of attributes passed to us from the parser.
        pList - the property list of the parent node
        Throws:
        FOPException - for errors or inconsistencies in the attributes
      • setCollapsedBorders

        protected void setCollapsedBorders()
        Prepares the borders of this element if the collapsing-border model is in use. Conflict resolution with parent elements is done where applicable.
      • createBorder

        private void createBorder​(int side)
        Creates a BorderSpecification from the border set on the given side. If no border is set, a BorderSpecification with border-style none is created.
        Parameters:
        side - one of CommonBorderPaddingBackground.BEFORE|AFTER|START|END