FormFieldFacade

Inheritance: java.lang.Object

public final class FormFieldFacade

Class for representing field properties.

Constructors

ConstructorDescription
FormFieldFacade()

Fields

FieldDescription
BORDER_WIDTH_UNDIFIEDUndefined border width.
BORDER_WIDTH_UNDEFINEDUndefined border width.
BORDER_WIDTH_THINDefines a thin border width.
BORDER_WIDTH_MEDIUMDefines a medium border width.
BORDER_WIDTH_THICKDefines a thick border width.
BORDER_STYLE_SOLIDDefines a solid border style.
BORDER_STYLE_DASHEDDefines a dashed border style.
BORDER_STYLE_BEVELEDDefines a beveled border style.
BORDER_STYLE_INSETDefines an inseted border style.
BORDER_STYLE_UNDERLINEDefines an underlined border style.
BORDER_STYLE_UNDEFINEDUndefined border style.
ALIGN_LEFTDefines aglignment to left style.
ALIGN_CENTERDefines aglignment to center style.
ALIGN_RIGHTDefines aglignment to right style.
ALIGN_UNDEFINEDUndefined aglignment style.
ALIGN_JUSTIFIEDDefines text justification alignment style.
ALIGN_TOPDefines vertical aglignment as top style.
ALIGN_MIDDLEDefines vertical aglignment as middle style.
ALIGN_BOTTOMDefines vertical aglignment as bottom style.
CHECK_BOX_STYLE_CIRCLEDefines a circle check box style.
CHECK_BOX_STYLE_CHECKDefines the shape of a check box field when it checked.
CHECK_BOX_STYLE_CROSSDefines a cross check box style.
CHECK_BOX_STYLE_DIAMONDDefines a diamond check box style.
CHECK_BOX_STYLE_STARDefines a star check box style.
CHECK_BOX_STYLE_SQUAREDefines a square check box style.
CHECK_BOX_STYLE_UNDEFINEDDefines an undefined check box style.

Methods

MethodDescription
getBorderColor()Gets color of a field border.
setBorderColor(Color value)Sets color of a field border.
getBorderStyle()Gets style of a field border.
setBorderStyle(int value)Sets style of a field border.
getBorderWidth()Get width of a field border.
setBorderWidth(float value)Set width of a field border.
getFont()Gets the font style type of a field text.
setFont(FontStyle value)Sets the font style type of a field text.
getCustomFont()Gets the name of the font when this is non-standart (other then 14 standard fonts).
setCustomFont(String value)Sets the name of the font when this is non-standart (other then 14 standard fonts).
getFontSize()Gets the size of a field text.
setFontSize(float value)Sets the size of a field text.
getTextColor()Get the color of the field text.
setTextColor(Color value)Set the color of the field text.
getTextEncoding()Get the text encoding type of the field text.
setTextEncoding(int value)Set the EncodingType text encoding type of the field text.
getAlignment()Get the alignment of a field text, default is left alignment.
setAlignment(int value)Set the alignment of a field text, default is left alignment.
getRotation()Get the rotation of a field text.
setRotation(int value)Set the rotation of a field text.
getCaption()Get the normal caption of form field.
setCaption(String value)Set the normal caption of form field.
getButtonStyle()Get the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
setButtonStyle(int value)Set the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
getBox()Get a rectangle object holding field’s location.
setBox(Rectangle value)Set a rectangle object holding field’s location.
getPosition()Get a rectangle object holding field’s location.
setPosition(float[] value)Set a rectangle object holding field’s location.
getPageNumber()Get an integer value holding the number of page on which field locates.
setPageNumber(int value)Set an integer value holding the number of page on which field locates.
getItems()Get an array of string, each representing an option of a combo box/list/radio box field.
setItems(String[] value)Set an array of string, each representing an option of a combo box/list/radio box field.
getExportItems()Get the options for adding a list/combo/radio box
setExportItems(String[][] value)Set the options for adding a list/combo/radio box
getBackgroundColor()Get the color of a field background, default is white.
setBackgroundColor(Color value)Set the color of a field background, default is white.
reset()Reset all visual attribtues to empty value.
getBackgroudColor()Obsolete property.
setBackgroudColor(Color value)Obsolete property.

FormFieldFacade()

public FormFieldFacade()

BORDER_WIDTH_UNDIFIED

public static final float BORDER_WIDTH_UNDIFIED

Undefined border width.

BORDER_WIDTH_UNDEFINED

public static final float BORDER_WIDTH_UNDEFINED

Undefined border width.

BORDER_WIDTH_THIN

public static final float BORDER_WIDTH_THIN

Defines a thin border width.

BORDER_WIDTH_MEDIUM

public static final float BORDER_WIDTH_MEDIUM

Defines a medium border width.

BORDER_WIDTH_THICK

public static final float BORDER_WIDTH_THICK

Defines a thick border width.

BORDER_STYLE_SOLID

public static final int BORDER_STYLE_SOLID

Defines a solid border style.

BORDER_STYLE_DASHED

public static final int BORDER_STYLE_DASHED

Defines a dashed border style.

BORDER_STYLE_BEVELED

public static final int BORDER_STYLE_BEVELED

Defines a beveled border style.

BORDER_STYLE_INSET

public static final int BORDER_STYLE_INSET

Defines an inseted border style.

BORDER_STYLE_UNDERLINE

public static final int BORDER_STYLE_UNDERLINE

Defines an underlined border style.

BORDER_STYLE_UNDEFINED

public static final int BORDER_STYLE_UNDEFINED

Undefined border style.

ALIGN_LEFT

public static final int ALIGN_LEFT

Defines aglignment to left style.

ALIGN_CENTER

public static final int ALIGN_CENTER

Defines aglignment to center style.

ALIGN_RIGHT

public static final int ALIGN_RIGHT

Defines aglignment to right style.

ALIGN_UNDEFINED

public static final int ALIGN_UNDEFINED

Undefined aglignment style.

ALIGN_JUSTIFIED

public static final int ALIGN_JUSTIFIED

Defines text justification alignment style.

ALIGN_TOP

public static final int ALIGN_TOP

Defines vertical aglignment as top style.

ALIGN_MIDDLE

public static final int ALIGN_MIDDLE

Defines vertical aglignment as middle style.

ALIGN_BOTTOM

public static final int ALIGN_BOTTOM

Defines vertical aglignment as bottom style.

CHECK_BOX_STYLE_CIRCLE

public static final int CHECK_BOX_STYLE_CIRCLE

Defines a circle check box style.

CHECK_BOX_STYLE_CHECK

public static final int CHECK_BOX_STYLE_CHECK

Defines the shape of a check box field when it checked.

CHECK_BOX_STYLE_CROSS

public static final int CHECK_BOX_STYLE_CROSS

Defines a cross check box style.

CHECK_BOX_STYLE_DIAMOND

public static final int CHECK_BOX_STYLE_DIAMOND

Defines a diamond check box style.

CHECK_BOX_STYLE_STAR

public static final int CHECK_BOX_STYLE_STAR

Defines a star check box style.

CHECK_BOX_STYLE_SQUARE

public static final int CHECK_BOX_STYLE_SQUARE

Defines a square check box style.

CHECK_BOX_STYLE_UNDEFINED

public static final int CHECK_BOX_STYLE_UNDEFINED

Defines an undefined check box style.

getBorderColor()

public Color getBorderColor()

Gets color of a field border.

Returns: Color - color of a field border.

setBorderColor(Color value)

public void setBorderColor(Color value)

Sets color of a field border.

Parameters:

ParameterTypeDescription
valuejava.awt.Colorcolor of a field border.

getBorderStyle()

public int getBorderStyle()

Gets style of a field border.

Returns: int - style of a field border.

setBorderStyle(int value)

public void setBorderStyle(int value)

Sets style of a field border.

Parameters:

ParameterTypeDescription
valueintstyle of a field border.

getBorderWidth()

public float getBorderWidth()

Get width of a field border.

Returns: float - width of a field border.

setBorderWidth(float value)

public void setBorderWidth(float value)

Set width of a field border.

Parameters:

ParameterTypeDescription
valuefloatwidth of a field border.

getFont()

public FontStyle getFont()

Gets the font style type of a field text.

Returns: FontStyle - FontStyle element

setFont(FontStyle value)

public void setFont(FontStyle value)

Sets the font style type of a field text.

Parameters:

ParameterTypeDescription
valueFontStyleFontStyle

getCustomFont()

public String getCustomFont()

Gets the name of the font when this is non-standart (other then 14 standard fonts).

Returns: java.lang.String - String value

setCustomFont(String value)

public void setCustomFont(String value)

Sets the name of the font when this is non-standart (other then 14 standard fonts).

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getFontSize()

public float getFontSize()

Gets the size of a field text.

Returns: float - float value

setFontSize(float value)

public void setFontSize(float value)

Sets the size of a field text.

Parameters:

ParameterTypeDescription
valuefloatfloat value

getTextColor()

public Color getTextColor()

Get the color of the field text.

Returns: Color - Color element

setTextColor(Color value)

public void setTextColor(Color value)

Set the color of the field text.

Parameters:

ParameterTypeDescription
valuejava.awt.ColorColor element

getTextEncoding()

public int getTextEncoding()

Get the text encoding type of the field text.

Returns: int - EncodingType element

setTextEncoding(int value)

public void setTextEncoding(int value)

Set the EncodingType text encoding type of the field text.

Parameters:

ParameterTypeDescription
valueintEncodingType element

getAlignment()

public int getAlignment()

Get the alignment of a field text, default is left alignment.

Returns: int - int value

setAlignment(int value)

public void setAlignment(int value)

Set the alignment of a field text, default is left alignment.

Parameters:

ParameterTypeDescription
valueintint value

getRotation()

public int getRotation()

Get the rotation of a field text.

Returns: int - int value

setRotation(int value)

public void setRotation(int value)

Set the rotation of a field text.

Parameters:

ParameterTypeDescription
valueintint value

getCaption()

public String getCaption()

Get the normal caption of form field.

Returns: java.lang.String - String value

setCaption(String value)

public void setCaption(String value)

Set the normal caption of form field.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getButtonStyle()

public int getButtonStyle()

Get the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.

Returns: int - int value

setButtonStyle(int value)

public void setButtonStyle(int value)

Set the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.

Parameters:

ParameterTypeDescription
valueintint value

getBox()

public Rectangle getBox()

Get a rectangle object holding field’s location.

Returns: Rectangle - Rectangle element

setBox(Rectangle value)

public void setBox(Rectangle value)

Set a rectangle object holding field’s location.

Parameters:

ParameterTypeDescription
valuejava.awt.RectangleRectangle element

getPosition()

public float[] getPosition()

Get a rectangle object holding field’s location.

Returns: float[] - array of float value

setPosition(float[] value)

public void setPosition(float[] value)

Set a rectangle object holding field’s location.

Parameters:

ParameterTypeDescription
valuefloat[]array of float value

getPageNumber()

public int getPageNumber()

Get an integer value holding the number of page on which field locates.

Returns: int - int value

setPageNumber(int value)

public void setPageNumber(int value)

Set an integer value holding the number of page on which field locates.

Parameters:

ParameterTypeDescription
valueintint value

getItems()

public String[] getItems()

Get an array of string, each representing an option of a combo box/list/radio box field.

Returns: java.lang.String[] - array of String value

setItems(String[] value)

public void setItems(String[] value)

Set an array of string, each representing an option of a combo box/list/radio box field.

Parameters:

ParameterTypeDescription
valuejava.lang.String[]array of String value

getExportItems()

public String[][] getExportItems()

Get the options for adding a list/combo/radio box

Returns: java.lang.String[][] - array of String value

setExportItems(String[][] value)

public void setExportItems(String[][] value)

Set the options for adding a list/combo/radio box

Parameters:

ParameterTypeDescription
valuejava.lang.String[][]array of String value

getBackgroundColor()

public Color getBackgroundColor()

Get the color of a field background, default is white.

Returns: Color - Color element

setBackgroundColor(Color value)

public void setBackgroundColor(Color value)

Set the color of a field background, default is white.

Parameters:

ParameterTypeDescription
valuejava.awt.ColorColor element

reset()

public void reset()

Reset all visual attribtues to empty value.

getBackgroudColor()

public Color getBackgroudColor()

Obsolete property. Use BackgroundColor. This method is Deprecated.

Returns: Color - background color

setBackgroudColor(Color value)

public void setBackgroudColor(Color value)

Obsolete property. Use BackgroundColor. This method is Deprecated.

Parameters:

ParameterTypeDescription
valuejava.awt.Colorbackground color