public interface FormField
FormField
is the abstract class that is being extended by all fields such as CheckBoxField
, ChoiceField
, ComboField
,
PushButtonField
, RadioButtonGroupField
, SignatureField
and TextField
.Modifier and Type | Field and Description |
---|---|
static String |
TYPE_BUTTON
This field type designates a button field.
|
static String |
TYPE_CHECKBOX
This field type designates a check box field.
|
static String |
TYPE_COMBOBOX
This field type designates a combo box field.
|
static String |
TYPE_LISTBOX
This field type designates a list box field.
|
static String |
TYPE_RADIOBUTTON
This field type designates a radio button field.
|
static String |
TYPE_SIGNATURE
This field type designates a signature field.
|
static String |
TYPE_TEXT
This field type designates a text field.
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldListener(FieldListener list)
Adds a field listener to this field.
|
void |
addKeyListener(KeyListener list)
Adds a key listener to this field.
|
void |
addMouseListener(MouseListener list)
Adds a mouse listener to this field.
|
void |
flattenField()
Flattens the field into the document's content layer.
|
String |
getAltFieldName()
Returns the alternate field name for this field.
|
String |
getFieldName()
Returns the name of this field.
|
String |
getFieldTypeDesc()
Returns a description of the field type.
|
String |
getFullFieldName()
Returns the full name of the fields.
|
Vector |
getKids()
Gets a list of fields from the kids array.
|
String |
getMapFieldName()
Returns this field's mapping name.
|
TriggerActions |
getTriggerActions()
Gets the TriggerActions associated with the field.
|
String |
getUserName()
Gets this field's user name.
|
Vector |
getWidgets()
Gets a list of any widgets associated with this field.
|
boolean |
isEmpty()
Returns true if the field is not filled.
|
boolean |
isNoExport()
Returns the value of the 'No Export' flag.
|
boolean |
isReadOnly()
Returns the value of the 'Read Only' flag.
|
boolean |
isRequired()
Returns the value of the 'Required' flag.
|
void |
removeFieldListener(FieldListener list)
Removes a field listener from this field.
|
void |
reset()
Resets the field to its default value.
|
void |
setAltFieldName(String altFieldName)
Sets the alternate field name.
|
void |
setComponentVisible(boolean visible)
Sets the visibility of the component(s) associated with this field on the screen.
|
void |
setFieldFlags(int fieldFlags)
Sets the field flags.
|
void |
setFieldName(String fieldName)
Sets the field name.
|
void |
setHidden(boolean hidden)
Sets the HIDDEN flag.
|
void |
setMapFieldName(String mapName)
Sets this field's mapping name.
|
void |
setNoExport(boolean noExport)
Sets the 'No Export' flag.
|
void |
setPrintable(boolean printable)
Sets the PRINTABLE flag for this field.
|
void |
setReadOnly(boolean readOnly)
Sets the value of the 'Read Only' flag.
|
void |
setRequired(boolean required)
Sets the value of the 'Required' flag.
|
void |
setTriggerActions(TriggerActions triggerActions)
Sets the TriggerActions for this field.
|
void |
setUserName(String userName)
Sets this field's user name.
|
static final String TYPE_TEXT
static final String TYPE_COMBOBOX
static final String TYPE_LISTBOX
static final String TYPE_CHECKBOX
static final String TYPE_BUTTON
static final String TYPE_RADIOBUTTON
static final String TYPE_SIGNATURE
String getAltFieldName()
String getFieldName()
String getFieldTypeDesc()
CheckBoxField
"ComboBox" for ComboBoxField
"List" for ListField
"PushButton" for PushButtonField
"RadioButtonGroup" for RadioButtonGroupField
"Signature" for SignatureField
"TextField" for TextField
String getFullFieldName()
String getMapFieldName()
String getUserName()
boolean isNoExport()
boolean isReadOnly()
boolean isRequired()
void reset() throws PDFException
PDFException
void setAltFieldName(String altFieldName)
altFieldName
- The new alternate field name.void setFieldFlags(int fieldFlags)
fieldFlags
- The new value for the flags.void setFieldName(String fieldName)
fieldName
- The new field name.void setMapFieldName(String mapName)
mapName
- The new mapping name.void setNoExport(boolean noExport)
noExport
- The new value of the 'No Export' flag.void setReadOnly(boolean readOnly)
readOnly
- The new value of the 'Read Only' flag.void setRequired(boolean required)
required
- The new value of the 'Required' flag.void setUserName(String userName)
userName
- The new user name.void setPrintable(boolean printable)
printable
- the new invisible setting.void setHidden(boolean hidden)
hidden
- the new hidden setting. True to hide, false to show the field.void setComponentVisible(boolean visible)
visible
- The new value of the components visibility.Vector getWidgets()
void addFieldListener(FieldListener list)
list
- An object that implements FieldListener.void addMouseListener(MouseListener list)
list
- An object that implements MouseListener.void addKeyListener(KeyListener list)
list
- An object that implements KeyListenervoid removeFieldListener(FieldListener list)
list
- The listener to remove.void flattenField() throws PDFException
PDFException
Vector getKids()
TriggerActions getTriggerActions()
void setTriggerActions(TriggerActions triggerActions)
boolean isEmpty()