Class Widget


  • public class Widget
    extends java.lang.Object
    • Constructor Detail

      • Widget

        public Widget​(int id)
      • Widget

        public Widget​(int id,
                      java.lang.Object[] childrenReferences)
    • Method Detail

      • addWidgetChild

        public void addWidgetChild​(int id,
                                   WidgetChild child)
      • getChild

        public WidgetChild getChild​(int id)
        Gets the child of specified ID
        Parameters:
        id - ID of WidgetChild
        Returns:
        WidgetChild of specified ID
      • getChildren

        public java.util.List<WidgetChild> getChildren()
        Gets a List of all the WidgetChild's associated with this Widget
        Returns:
        List of WidgetChild's
      • getChildrenCollection

        public java.util.Collection<WidgetChild> getChildrenCollection()
      • getID

        public int getID()
        Gets the ID of this Widget
        Returns:
        ID of Widget
      • close

        public void close()
        Closes the Widget
      • isVisible

        public boolean isVisible()
        Checks if the Widget is visible
        Returns:
        True if one of its children are visible, else False
      • checkValidity

        public boolean checkValidity​(java.lang.Object[] childrenReferences)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object