Interface Element

All Known Implementing Classes:
ControlRef, Layout, Separator, Toolbar

public interface Element
An element in the ribbon
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve the list of children elements in this element.
    int
    Get the size taken by this element, in columns
    boolean
    isSame(Element element)
    Test if an element is equal to another element
    void
    setColumns(int size)
    Set the size to take by this element
    void
    Sax the the configuration of the element.
  • Method Details

    • getChildren

      Retrieve the list of children elements in this element.
      Returns:
      The list of elements.
    • toSAX

      void toSAX(ContentHandler handler) throws SAXException
      Sax the the configuration of the element.
      Parameters:
      handler - The content handler where to sax
      Throws:
      SAXException - if an error occurs
    • isSame

      boolean isSame(Element element)
      Test if an element is equal to another element
      Parameters:
      element - The element to compare to
      Returns:
      True if equals
    • getColumns

      int getColumns()
      Get the size taken by this element, in columns
      Returns:
      The size
    • setColumns

      void setColumns(int size)
      Set the size to take by this element
      Parameters:
      size - The size in number of columns