Package com.day.cq.wcm.api.components
Class Toolbar
java.lang.Object
com.day.cq.wcm.api.components.Toolbar
- All Implemented Interfaces:
Iterable<Toolbar.Item>,Collection<Toolbar.Item>,List<Toolbar.Item>,SequencedCollection<Toolbar.Item>
Toolbar...-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a toolbar buttonstatic classstatic interfacestatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionToolbar()Creates an empty toolbarCreates an unmodifiable copy of the given toolbar.Toolbar(Toolbar.Item... items) Creates a new toolbar and adds the given items to it.Toolbar(Collection<? extends Toolbar.Item> items) Creates a new toolbar and adds the given items to it. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, Toolbar.Item element) booleanadd(Toolbar.Item o) booleanaddAll(int index, Collection<? extends Toolbar.Item> c) booleanaddAll(Collection<? extends Toolbar.Item> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) set(int index, Toolbar.Item element) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) voidwrite(JSONWriter writer, String key) Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
Toolbar
public Toolbar()Creates an empty toolbar -
Toolbar
Creates a new toolbar and adds the given items to it.- Parameters:
items- items to add
-
Toolbar
Creates a new toolbar and adds the given items to it.- Parameters:
items- items to add
-
Toolbar
Creates an unmodifiable copy of the given toolbar.- Parameters:
toolbar- base toolbar
-
-
Method Details
-
write
- Throws:
JSONException
-
size
public int size()- Specified by:
sizein interfaceCollection<Toolbar.Item>- Specified by:
sizein interfaceList<Toolbar.Item>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Toolbar.Item>- Specified by:
isEmptyin interfaceList<Toolbar.Item>
-
contains
- Specified by:
containsin interfaceCollection<Toolbar.Item>- Specified by:
containsin interfaceList<Toolbar.Item>
-
iterator
- Specified by:
iteratorin interfaceCollection<Toolbar.Item>- Specified by:
iteratorin interfaceIterable<Toolbar.Item>- Specified by:
iteratorin interfaceList<Toolbar.Item>
-
toArray
- Specified by:
toArrayin interfaceCollection<Toolbar.Item>- Specified by:
toArrayin interfaceList<Toolbar.Item>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Toolbar.Item>- Specified by:
toArrayin interfaceList<Toolbar.Item>
-
add
- Specified by:
addin interfaceCollection<Toolbar.Item>- Specified by:
addin interfaceList<Toolbar.Item>
-
remove
- Specified by:
removein interfaceCollection<Toolbar.Item>- Specified by:
removein interfaceList<Toolbar.Item>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Toolbar.Item>- Specified by:
containsAllin interfaceList<Toolbar.Item>
-
addAll
- Specified by:
addAllin interfaceCollection<Toolbar.Item>- Specified by:
addAllin interfaceList<Toolbar.Item>
-
addAll
- Specified by:
addAllin interfaceList<Toolbar.Item>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Toolbar.Item>- Specified by:
removeAllin interfaceList<Toolbar.Item>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Toolbar.Item>- Specified by:
retainAllin interfaceList<Toolbar.Item>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Toolbar.Item>- Specified by:
clearin interfaceList<Toolbar.Item>
-
equals
- Specified by:
equalsin interfaceCollection<Toolbar.Item>- Specified by:
equalsin interfaceList<Toolbar.Item>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Toolbar.Item>- Specified by:
hashCodein interfaceList<Toolbar.Item>- Overrides:
hashCodein classObject
-
get
- Specified by:
getin interfaceList<Toolbar.Item>
-
set
- Specified by:
setin interfaceList<Toolbar.Item>
-
add
- Specified by:
addin interfaceList<Toolbar.Item>
-
remove
- Specified by:
removein interfaceList<Toolbar.Item>
-
indexOf
- Specified by:
indexOfin interfaceList<Toolbar.Item>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Toolbar.Item>
-
listIterator
- Specified by:
listIteratorin interfaceList<Toolbar.Item>
-
listIterator
- Specified by:
listIteratorin interfaceList<Toolbar.Item>
-
subList
- Specified by:
subListin interfaceList<Toolbar.Item>
-