public class Toolbar extends Object implements List<Toolbar.Item>
Toolbar...| Modifier and Type | Class and Description |
|---|---|
static class |
Toolbar.Button
Represents a toolbar button
|
static class |
Toolbar.Custom |
static interface |
Toolbar.Item |
static class |
Toolbar.Label |
static class |
Toolbar.Separator |
| Constructor and Description |
|---|
Toolbar()
Creates an empty toolbar
|
Toolbar(Collection<? extends Toolbar.Item> items)
Creates a new toolbar and adds the given items to it.
|
Toolbar(Toolbar.Item... items)
Creates a new toolbar and adds the given items to it.
|
Toolbar(Toolbar toolbar)
Creates an unmodifiable copy of the given toolbar.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Toolbar.Item element) |
boolean |
add(Toolbar.Item o) |
boolean |
addAll(Collection<? extends Toolbar.Item> c) |
boolean |
addAll(int index,
Collection<? extends Toolbar.Item> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
Toolbar.Item |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Toolbar.Item> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Toolbar.Item> |
listIterator() |
ListIterator<Toolbar.Item> |
listIterator(int index) |
Toolbar.Item |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Toolbar.Item |
set(int index,
Toolbar.Item element) |
int |
size() |
List<Toolbar.Item> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
void |
write(JSONWriter writer,
String key) |
getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic Toolbar()
public Toolbar(Toolbar.Item... items)
items - items to addpublic Toolbar(Collection<? extends Toolbar.Item> items)
items - items to addpublic Toolbar(Toolbar toolbar)
toolbar - base toolbarpublic void write(JSONWriter writer, String key) throws JSONException
JSONExceptionpublic int size()
size in interface Collection<Toolbar.Item>size in interface List<Toolbar.Item>public boolean isEmpty()
isEmpty in interface Collection<Toolbar.Item>isEmpty in interface List<Toolbar.Item>public boolean contains(Object o)
contains in interface Collection<Toolbar.Item>contains in interface List<Toolbar.Item>public Iterator<Toolbar.Item> iterator()
iterator in interface Iterable<Toolbar.Item>iterator in interface Collection<Toolbar.Item>iterator in interface List<Toolbar.Item>public Object[] toArray()
toArray in interface Collection<Toolbar.Item>toArray in interface List<Toolbar.Item>public <T> T[] toArray(T[] a)
toArray in interface Collection<Toolbar.Item>toArray in interface List<Toolbar.Item>public boolean add(Toolbar.Item o)
add in interface Collection<Toolbar.Item>add in interface List<Toolbar.Item>public boolean remove(Object o)
remove in interface Collection<Toolbar.Item>remove in interface List<Toolbar.Item>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Toolbar.Item>containsAll in interface List<Toolbar.Item>public boolean addAll(Collection<? extends Toolbar.Item> c)
addAll in interface Collection<Toolbar.Item>addAll in interface List<Toolbar.Item>public boolean addAll(int index,
Collection<? extends Toolbar.Item> c)
addAll in interface List<Toolbar.Item>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Toolbar.Item>removeAll in interface List<Toolbar.Item>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Toolbar.Item>retainAll in interface List<Toolbar.Item>public void clear()
clear in interface Collection<Toolbar.Item>clear in interface List<Toolbar.Item>public boolean equals(Object o)
equals in interface Collection<Toolbar.Item>equals in interface List<Toolbar.Item>equals in class Objectpublic int hashCode()
hashCode in interface Collection<Toolbar.Item>hashCode in interface List<Toolbar.Item>hashCode in class Objectpublic Toolbar.Item get(int index)
get in interface List<Toolbar.Item>public Toolbar.Item set(int index, Toolbar.Item element)
set in interface List<Toolbar.Item>public void add(int index,
Toolbar.Item element)
add in interface List<Toolbar.Item>public Toolbar.Item remove(int index)
remove in interface List<Toolbar.Item>public int indexOf(Object o)
indexOf in interface List<Toolbar.Item>public int lastIndexOf(Object o)
lastIndexOf in interface List<Toolbar.Item>public ListIterator<Toolbar.Item> listIterator()
listIterator in interface List<Toolbar.Item>public ListIterator<Toolbar.Item> listIterator(int index)
listIterator in interface List<Toolbar.Item>public List<Toolbar.Item> subList(int fromIndex, int toIndex)
subList in interface List<Toolbar.Item>Copyright © 2010 - 2020 Adobe. All Rights Reserved