com.crionics.jpdf.forms
Class ListBoxField

java.lang.Object
  extended by PdfObjectContainer
      extended by com.crionics.jpdf.forms.AbstractField
          extended by com.crionics.jpdf.forms.AbstractChoiceField
              extended by com.crionics.jpdf.forms.ListBoxField

public class ListBoxField
extends AbstractChoiceField

Form ListBox


Method Summary
static ListBoxField createInstance(PdfDocument doc, java.lang.String name, int pageIndex, java.awt.Rectangle rect)
           
 boolean isMultipleSelection()
          Returns the current status of the Multi-Select flag.
 void setMultipleSelection(boolean flag)
          Set/Clear the Multi-Select Flag of this Field, which allows multiple entries to be selected at the same time on a PDF Viewer applications.
 
Methods inherited from class com.crionics.jpdf.forms.AbstractChoiceField
getDefaultValue, getPossibleValues, getValue, isSorted, setDefaultValue, setDefaultValue, setPossibleValues, setSorted, setValue, setValue
 
Methods inherited from class com.crionics.jpdf.forms.AbstractField
getAssociatedPageIndex, getBorderColor, getBorderStyle, getBorderWidth, getFillColor, getName, getOrientation, getPosition, getTextColor, getTextFont, getTextSize, getToolTip, isHidden, isPrintable, isReadOnly, setBorderColor, setBorderStyle, setBorderWidth, setFillColor, setHidden, setOrientation, setPosition, setPrintable, setReadOnly, setTextColor, setTextFont, setTextFont, setTextSize, setToolTip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInstance

public static ListBoxField createInstance(PdfDocument doc,
                                          java.lang.String name,
                                          int pageIndex,
                                          java.awt.Rectangle rect)
                                   throws PdfException,
                                          java.io.IOException
Throws:
PdfException
java.io.IOException

isMultipleSelection

public boolean isMultipleSelection()
Returns the current status of the Multi-Select flag.
If this flag is set, this Field will allow the selection of multiple entries at the same time on a PDF Viewer applications.

Returns:
true it the Flag is set, false otherwise.

setMultipleSelection

public void setMultipleSelection(boolean flag)
                          throws PdfException,
                                 java.io.IOException
Set/Clear the Multi-Select Flag of this Field, which allows multiple entries to be selected at the same time on a PDF Viewer applications.

Parameters:
flag - true to activate it, false otherwise.
Throws:
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.


Copyright © 1999-2007 Crionics. All Rights Reserved.