public class Toolbar extends java.lang.Object implements java.util.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(java.util.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(java.util.Collection<? extends Toolbar.Item> c) |
boolean |
addAll(int index,
java.util.Collection<? extends Toolbar.Item> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
Toolbar.Item |
get(int index) |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<Toolbar.Item> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<Toolbar.Item> |
listIterator() |
java.util.ListIterator<Toolbar.Item> |
listIterator(int index) |
Toolbar.Item |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
Toolbar.Item |
set(int index,
Toolbar.Item element) |
int |
size() |
java.util.List<Toolbar.Item> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
void |
write(JSONWriter writer,
java.lang.String key) |
public Toolbar()
public Toolbar(Toolbar.Item... items)
items
- items to addpublic Toolbar(java.util.Collection<? extends Toolbar.Item> items)
items
- items to addpublic Toolbar(Toolbar toolbar)
toolbar
- base toolbarpublic void write(JSONWriter writer, java.lang.String key) throws JSONException
JSONException
public int size()
size
in interface java.util.Collection<Toolbar.Item>
size
in interface java.util.List<Toolbar.Item>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<Toolbar.Item>
isEmpty
in interface java.util.List<Toolbar.Item>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<Toolbar.Item>
contains
in interface java.util.List<Toolbar.Item>
public java.util.Iterator<Toolbar.Item> iterator()
iterator
in interface java.lang.Iterable<Toolbar.Item>
iterator
in interface java.util.Collection<Toolbar.Item>
iterator
in interface java.util.List<Toolbar.Item>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<Toolbar.Item>
toArray
in interface java.util.List<Toolbar.Item>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<Toolbar.Item>
toArray
in interface java.util.List<Toolbar.Item>
public boolean add(Toolbar.Item o)
add
in interface java.util.Collection<Toolbar.Item>
add
in interface java.util.List<Toolbar.Item>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<Toolbar.Item>
remove
in interface java.util.List<Toolbar.Item>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<Toolbar.Item>
containsAll
in interface java.util.List<Toolbar.Item>
public boolean addAll(java.util.Collection<? extends Toolbar.Item> c)
addAll
in interface java.util.Collection<Toolbar.Item>
addAll
in interface java.util.List<Toolbar.Item>
public boolean addAll(int index, java.util.Collection<? extends Toolbar.Item> c)
addAll
in interface java.util.List<Toolbar.Item>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<Toolbar.Item>
removeAll
in interface java.util.List<Toolbar.Item>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<Toolbar.Item>
retainAll
in interface java.util.List<Toolbar.Item>
public void clear()
clear
in interface java.util.Collection<Toolbar.Item>
clear
in interface java.util.List<Toolbar.Item>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<Toolbar.Item>
equals
in interface java.util.List<Toolbar.Item>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<Toolbar.Item>
hashCode
in interface java.util.List<Toolbar.Item>
hashCode
in class java.lang.Object
public Toolbar.Item get(int index)
get
in interface java.util.List<Toolbar.Item>
public Toolbar.Item set(int index, Toolbar.Item element)
set
in interface java.util.List<Toolbar.Item>
public void add(int index, Toolbar.Item element)
add
in interface java.util.List<Toolbar.Item>
public Toolbar.Item remove(int index)
remove
in interface java.util.List<Toolbar.Item>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<Toolbar.Item>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<Toolbar.Item>
public java.util.ListIterator<Toolbar.Item> listIterator()
listIterator
in interface java.util.List<Toolbar.Item>
public java.util.ListIterator<Toolbar.Item> listIterator(int index)
listIterator
in interface java.util.List<Toolbar.Item>
public java.util.List<Toolbar.Item> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Toolbar.Item>
Copyright © 2010 - 2020 Adobe. All Rights Reserved