Class Toolbar

    • Constructor Detail

      • Toolbar

        public Toolbar()
        Creates an empty toolbar
      • Toolbar

        public Toolbar​(Toolbar.Item... items)
        Creates a new toolbar and adds the given items to it.
        Parameters:
        items - items to add
      • Toolbar

        public Toolbar​(java.util.Collection<? extends Toolbar.Item> items)
        Creates a new toolbar and adds the given items to it.
        Parameters:
        items - items to add
      • Toolbar

        public Toolbar​(Toolbar toolbar)
        Creates an unmodifiable copy of the given toolbar.
        Parameters:
        toolbar - base toolbar
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Toolbar.Item>
        Specified by:
        size in interface java.util.List<Toolbar.Item>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<Toolbar.Item>
        Specified by:
        isEmpty in interface java.util.List<Toolbar.Item>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<Toolbar.Item>
        Specified by:
        contains in interface java.util.List<Toolbar.Item>
      • iterator

        public java.util.Iterator<Toolbar.Item> iterator()
        Specified by:
        iterator in interface java.util.Collection<Toolbar.Item>
        Specified by:
        iterator in interface java.lang.Iterable<Toolbar.Item>
        Specified by:
        iterator in interface java.util.List<Toolbar.Item>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<Toolbar.Item>
        Specified by:
        toArray in interface java.util.List<Toolbar.Item>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<Toolbar.Item>
        Specified by:
        toArray in interface java.util.List<Toolbar.Item>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<Toolbar.Item>
        Specified by:
        remove in interface java.util.List<Toolbar.Item>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<Toolbar.Item>
        Specified by:
        containsAll in interface java.util.List<Toolbar.Item>
      • addAll

        public boolean addAll​(java.util.Collection<? extends Toolbar.Item> c)
        Specified by:
        addAll in interface java.util.Collection<Toolbar.Item>
        Specified by:
        addAll in interface java.util.List<Toolbar.Item>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends Toolbar.Item> c)
        Specified by:
        addAll in interface java.util.List<Toolbar.Item>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<Toolbar.Item>
        Specified by:
        removeAll in interface java.util.List<Toolbar.Item>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<Toolbar.Item>
        Specified by:
        retainAll in interface java.util.List<Toolbar.Item>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<Toolbar.Item>
        Specified by:
        clear in interface java.util.List<Toolbar.Item>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<Toolbar.Item>
        Specified by:
        equals in interface java.util.List<Toolbar.Item>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<Toolbar.Item>
        Specified by:
        hashCode in interface java.util.List<Toolbar.Item>
        Overrides:
        hashCode in class java.lang.Object
      • add

        public void add​(int index,
                        Toolbar.Item element)
        Specified by:
        add in interface java.util.List<Toolbar.Item>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<Toolbar.Item>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<Toolbar.Item>
      • listIterator

        public java.util.ListIterator<Toolbar.Item> listIterator()
        Specified by:
        listIterator in interface java.util.List<Toolbar.Item>
      • listIterator

        public java.util.ListIterator<Toolbar.Item> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<Toolbar.Item>
      • subList

        public java.util.List<Toolbar.Item> subList​(int fromIndex,
                                                    int toIndex)
        Specified by:
        subList in interface java.util.List<Toolbar.Item>