Class Menu.Heading

    • Field Detail

      • children

        protected List children
    • Constructor Detail

      • Heading

        public Heading​(TopicIF topic)
    • Method Detail

      • getIsHeading

        public boolean getIsHeading()
        Check whether this is a Heading.
        Specified by:
        getIsHeading in interface Menu.ChildIF
        Returns:
        true, since it is a Heading.
      • getIsItem

        public boolean getIsItem()
        Check whether this is an Item.
        Specified by:
        getIsItem in interface Menu.ChildIF
        Returns:
        false, since it is not an Item.
      • moveOneUp

        public void moveOneUp()
        Moves this Heading one step up the list of children on its parent. has no effect if it is already first
        Specified by:
        moveOneUp in interface Menu.ChildIF
      • moveOneDown

        public void moveOneDown()
        Moves this Heading one step down the list of children on its parent. Has no effect if it is already last.
        Specified by:
        moveOneDown in interface Menu.ChildIF
      • createItem

        public Menu.Item createItem​(String title)
        Create new Item as child of this Heading.
        Specified by:
        createItem in interface Menu.ParentIF
        Returns:
        The item that was created.
      • delete

        public void delete()
        Delete this Heading with all its descendants.
        Specified by:
        delete in interface Menu.MenuObjectIF