Class ControlRef

    • Field Detail

      • _id

        protected String _id
        The id of the control
      • _colspan

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

      • ControlRef

        public ControlRef​(String id,
                          int colspan,
                          org.slf4j.Logger logger)
        Creates a control reference
        Parameters:
        id - The id referenced by this control
        colspan - The colspan of this control
        logger - The logger
    • Method Detail

      • _initialize

        private void _initialize​(String id,
                                 int colspan,
                                 org.slf4j.Logger logger)
      • getId

        public String getId()
        Get the id of the ControlRef
        Returns:
        The id
      • 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