Class Toolbar

    • Field Detail

      • _colspan

        protected int _colspan
        Number of columns used by the control upon some layouts. 1 is the common and default value
    • Constructor Detail

      • Toolbar

        public Toolbar​(org.slf4j.Logger logger,
                       int colspan)
        Creates an empty toolbar of controls
        Parameters:
        logger - The logger
        colspan - The toolbar colspan
    • Method Detail

      • getColumns

        public int getColumns()
        Description copied from interface: Element
        Get the size taken by this element, in columns
        Specified by:
        getColumns in interface Element
        Returns:
        The size
      • setColumns

        public void setColumns​(int size)
        Description copied from interface: Element
        Set the size to take by this element
        Specified by:
        setColumns in interface Element
        Parameters:
        size - The size in number of columns
      • isSame

        public boolean isSame​(Element element)
        Description copied from interface: Element
        Test if an element is equal to another element
        Specified by:
        isSame in interface Element
        Parameters:
        element - The element to compare to
        Returns:
        True if equals