at.knowcenter.wag.egov.egiz.web
Class FormFields

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.web.FormFields

public abstract class FormFields
extends Object

Helper class that provides methods and constants for creating and dealing with the various form fields.

Author:
wprinz

Field Summary
static String FIELD_CONNECTOR
           
static String FIELD_DOWNLOAD
           
static String FIELD_MODE
           
static String FIELD_PREVIEW
           
static String FIELD_RAW_DOCUMENT_TEXT
           
static String FIELD_SIGNATURE_TYPE
           
static String FIELD_UPLOAD
           
static String FIELD_VERIFY_WHICH
           
static String PARAMETER_FREE_TEXT_ENTRY
           
protected static String STYLE_CLASS_FIELD
           
static String VALUE_DOWNLOAD_ATTACHMENT
           
static String VALUE_DOWNLOAD_INLINE
           
static String VALUE_FALSE
           
static String VALUE_MODE_BINARY
           
static String VALUE_MODE_DETACHED
           
static String VALUE_MODE_TEXTUAL
           
static String VALUE_TRUE
           
static String VALUE_VERIFY_WHICH_ALL
           
 
Constructor Summary
FormFields()
           
 
Method Summary
static String generateConnectorSelectBox()
          Generates the HTML snippet of a FIELD_CONNECTOR select box that allows to choose a connector.
static String generateTypeSelectBox()
          Generates a HTML snippet of a FIELD_SIGNATURE_TYPE select box that allows to choose the signature type.
protected static PdfASID translateSignatureModeToPdfASID(String signature_mode)
          Translates the form field to a PDF-AS-ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_FREE_TEXT_ENTRY

public static final String PARAMETER_FREE_TEXT_ENTRY
See Also:
Constant Field Values

FIELD_UPLOAD

public static final String FIELD_UPLOAD
See Also:
Constant Field Values

FIELD_CONNECTOR

public static final String FIELD_CONNECTOR
See Also:
Constant Field Values

FIELD_MODE

public static final String FIELD_MODE
See Also:
Constant Field Values

FIELD_PREVIEW

public static final String FIELD_PREVIEW
See Also:
Constant Field Values

FIELD_RAW_DOCUMENT_TEXT

public static final String FIELD_RAW_DOCUMENT_TEXT
See Also:
Constant Field Values

FIELD_SIGNATURE_TYPE

public static final String FIELD_SIGNATURE_TYPE
See Also:
Constant Field Values

FIELD_VERIFY_WHICH

public static final String FIELD_VERIFY_WHICH
See Also:
Constant Field Values

FIELD_DOWNLOAD

public static final String FIELD_DOWNLOAD
See Also:
Constant Field Values

VALUE_TRUE

public static final String VALUE_TRUE
See Also:
Constant Field Values

VALUE_FALSE

public static final String VALUE_FALSE
See Also:
Constant Field Values

VALUE_MODE_BINARY

public static final String VALUE_MODE_BINARY
See Also:
Constant Field Values

VALUE_MODE_TEXTUAL

public static final String VALUE_MODE_TEXTUAL
See Also:
Constant Field Values

VALUE_MODE_DETACHED

public static final String VALUE_MODE_DETACHED
See Also:
Constant Field Values

VALUE_VERIFY_WHICH_ALL

public static final String VALUE_VERIFY_WHICH_ALL
See Also:
Constant Field Values

VALUE_DOWNLOAD_INLINE

public static final String VALUE_DOWNLOAD_INLINE
See Also:
Constant Field Values

VALUE_DOWNLOAD_ATTACHMENT

public static final String VALUE_DOWNLOAD_ATTACHMENT
See Also:
Constant Field Values

STYLE_CLASS_FIELD

protected static final String STYLE_CLASS_FIELD
See Also:
Constant Field Values
Constructor Detail

FormFields

public FormFields()
Method Detail

translateSignatureModeToPdfASID

protected static PdfASID translateSignatureModeToPdfASID(String signature_mode)
Translates the form field to a PDF-AS-ID.

Parameters:
signature_mode - The signator mode form field.
Returns:
Returns the corresponding PDFASID.

generateConnectorSelectBox

public static String generateConnectorSelectBox()
                                         throws SettingsException,
                                                ConnectorFactoryException
Generates the HTML snippet of a FIELD_CONNECTOR select box that allows to choose a connector.

Returns:
Returns the HTML snippet.
Throws:
SettingsException - Forwarded exception.
ConnectorFactoryException - Forwarded exception.

generateTypeSelectBox

public static String generateTypeSelectBox()
                                    throws ServletException
Generates a HTML snippet of a FIELD_SIGNATURE_TYPE select box that allows to choose the signature type.

Returns:
Returns the HTML snippet.
Throws:
ServletException - Forwarded exception.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.