PDF Clown
0.0.8

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

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary>
      extended by it.stefanochizzolini.clown.documents.interaction.forms.Field
          extended by it.stefanochizzolini.clown.documents.interaction.forms.ChoiceField
Direct Known Subclasses:
ComboBox, ListBox

public abstract class ChoiceField
extends Field

Choice field [PDF:1.6:8.6.3].

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

Nested Class Summary
 
Nested classes/interfaces inherited from class it.stefanochizzolini.clown.documents.interaction.forms.Field
Field.FlagsEnum
 
Constructor Summary
protected ChoiceField(PdfDirectObject baseObject)
           
protected ChoiceField(String name, Widget widget)
          Creates a new choice field within the given document context.
 
Method Summary
 ChoiceField clone(Document context)
          Gets a clone of the object, registered inside the given document context.
 ChoiceItems getItems()
           
 boolean isMultiSelect()
          Gets whether more than one of the field's items may be selected simultaneously.
 boolean isValidatedOnChange()
          Gets whether validation action is triggered as soon as a selection is made, without requiring the user to exit the field.
 void setItems(ChoiceItems value)
           
 void setMultiSelect(boolean value)
           
 void setValidatedOnChange(boolean value)
           
 
Methods inherited from class it.stefanochizzolini.clown.documents.interaction.forms.Field
getActions, getDefaultValue, getFlags, getFullName, getInheritableAttribute, getName, getValue, getWidget, getWidgets, isExportable, isReadOnly, isRequired, setActions, setExportable, setFlags, setName, setReadOnly, setRequired, setValue, wrap
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceField

protected ChoiceField(String name,
                      Widget widget)
Creates a new choice field within the given document context.


ChoiceField

protected ChoiceField(PdfDirectObject baseObject)
Method Detail

clone

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

Overrides:
clone in class Field
Parameters:
context - Which document the clone has to be registered in.

getItems

public ChoiceItems getItems()

isMultiSelect

public boolean isMultiSelect()
Gets whether more than one of the field's items may be selected simultaneously.


isValidatedOnChange

public boolean isValidatedOnChange()
Gets whether validation action is triggered as soon as a selection is made, without requiring the user to exit the field.


setItems

public void setItems(ChoiceItems value)
See Also:
getItems()

setMultiSelect

public void setMultiSelect(boolean value)
See Also:
isMultiSelect()

setValidatedOnChange

public void setValidatedOnChange(boolean value)
See Also:
isValidatedOnChange()

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.