PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.interaction.forms
Class ChoiceItems

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfArray>
      extended by it.stefanochizzolini.clown.documents.interaction.forms.ChoiceItems
All Implemented Interfaces:
Iterable<ChoiceItem>, Collection<ChoiceItem>, List<ChoiceItem>

public class ChoiceItems
extends PdfObjectWrapper<PdfArray>
implements List<ChoiceItem>

Field options [PDF:1.6:8.6.3].

Since:
0.0.7
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
ChoiceItems(Document context)
           
ChoiceItems(PdfDirectObject baseObject, PdfIndirectObject container)
           
 
Method Summary
 boolean add(ChoiceItem value)
           
 void add(int index, ChoiceItem value)
           
 ChoiceItem add(int index, String value)
           
 ChoiceItem add(String value)
           
 boolean addAll(Collection<? extends ChoiceItem> values)
           
 boolean addAll(int index, Collection<? extends ChoiceItem> values)
           
 void clear()
           
 ChoiceItems clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 boolean contains(Object value)
           
 boolean containsAll(Collection<?> values)
           
 boolean equals(Object object)
           
 ChoiceItem get(int index)
           
 int hashCode()
           
 int indexOf(Object value)
           
 boolean isEmpty()
           
 Iterator<ChoiceItem> iterator()
           
 int lastIndexOf(Object value)
           
 ListIterator<ChoiceItem> listIterator()
           
 ListIterator<ChoiceItem> listIterator(int index)
           
 ChoiceItem remove(int index)
           
 boolean remove(Object value)
           
 boolean removeAll(Collection<?> values)
           
 boolean retainAll(Collection<?> values)
           
 ChoiceItem set(int index, ChoiceItem value)
           
 int size()
           
 List<ChoiceItem> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] values)
           
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceItems

public ChoiceItems(Document context)

ChoiceItems

public ChoiceItems(PdfDirectObject baseObject,
                   PdfIndirectObject container)
Method Detail

add

public ChoiceItem add(String value)

add

public ChoiceItem add(int index,
                      String value)

clone

public ChoiceItems clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Specified by:
clone in class PdfObjectWrapper<PdfArray>
Parameters:
context - Which document the clone has to be registered in.

add

public void add(int index,
                ChoiceItem value)
Specified by:
add in interface List<ChoiceItem>

addAll

public boolean addAll(int index,
                      Collection<? extends ChoiceItem> values)
Specified by:
addAll in interface List<ChoiceItem>

get

public ChoiceItem get(int index)
Specified by:
get in interface List<ChoiceItem>

indexOf

public int indexOf(Object value)
Specified by:
indexOf in interface List<ChoiceItem>

lastIndexOf

public int lastIndexOf(Object value)
Specified by:
lastIndexOf in interface List<ChoiceItem>

listIterator

public ListIterator<ChoiceItem> listIterator()
Specified by:
listIterator in interface List<ChoiceItem>

listIterator

public ListIterator<ChoiceItem> listIterator(int index)
Specified by:
listIterator in interface List<ChoiceItem>

remove

public ChoiceItem remove(int index)
Specified by:
remove in interface List<ChoiceItem>

set

public ChoiceItem set(int index,
                      ChoiceItem value)
Specified by:
set in interface List<ChoiceItem>

subList

public List<ChoiceItem> subList(int fromIndex,
                                int toIndex)
Specified by:
subList in interface List<ChoiceItem>

add

public boolean add(ChoiceItem value)
Specified by:
add in interface Collection<ChoiceItem>
Specified by:
add in interface List<ChoiceItem>

addAll

public boolean addAll(Collection<? extends ChoiceItem> values)
Specified by:
addAll in interface Collection<ChoiceItem>
Specified by:
addAll in interface List<ChoiceItem>

clear

public void clear()
Specified by:
clear in interface Collection<ChoiceItem>
Specified by:
clear in interface List<ChoiceItem>

contains

public boolean contains(Object value)
Specified by:
contains in interface Collection<ChoiceItem>
Specified by:
contains in interface List<ChoiceItem>

containsAll

public boolean containsAll(Collection<?> values)
Specified by:
containsAll in interface Collection<ChoiceItem>
Specified by:
containsAll in interface List<ChoiceItem>

equals

public boolean equals(Object object)
Specified by:
equals in interface Collection<ChoiceItem>
Specified by:
equals in interface List<ChoiceItem>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<ChoiceItem>
Specified by:
hashCode in interface List<ChoiceItem>
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<ChoiceItem>
Specified by:
isEmpty in interface List<ChoiceItem>

remove

public boolean remove(Object value)
Specified by:
remove in interface Collection<ChoiceItem>
Specified by:
remove in interface List<ChoiceItem>

removeAll

public boolean removeAll(Collection<?> values)
Specified by:
removeAll in interface Collection<ChoiceItem>
Specified by:
removeAll in interface List<ChoiceItem>

retainAll

public boolean retainAll(Collection<?> values)
Specified by:
retainAll in interface Collection<ChoiceItem>
Specified by:
retainAll in interface List<ChoiceItem>

size

public int size()
Specified by:
size in interface Collection<ChoiceItem>
Specified by:
size in interface List<ChoiceItem>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<ChoiceItem>
Specified by:
toArray in interface List<ChoiceItem>

toArray

public <T> T[] toArray(T[] values)
Specified by:
toArray in interface Collection<ChoiceItem>
Specified by:
toArray in interface List<ChoiceItem>

iterator

public Iterator<ChoiceItem> iterator()
Specified by:
iterator in interface Iterable<ChoiceItem>
Specified by:
iterator in interface Collection<ChoiceItem>
Specified by:
iterator in interface List<ChoiceItem>

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.