public final class FormFieldFacade extends Object
Class for representing field properties.
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_BOTTOM
Defines vertical aglignment as bottom style.
|
static int |
ALIGN_CENTER
Defines aglignment to center style.
|
static int |
ALIGN_JUSTIFIED
Defines text justification alignment style.
|
static int |
ALIGN_LEFT
Defines aglignment to left style.
|
static int |
ALIGN_MIDDLE
Defines vertical aglignment as middle style.
|
static int |
ALIGN_RIGHT
Defines aglignment to right style.
|
static int |
ALIGN_TOP
Defines vertical aglignment as top style.
|
static int |
ALIGN_UNDEFINED
Undefined aglignment style.
|
static int |
BORDER_STYLE_BEVELED
Defines a beveled border style.
|
static int |
BORDER_STYLE_DASHED
Defines a dashed border style.
|
static int |
BORDER_STYLE_INSET
Defines an inseted border style.
|
static int |
BORDER_STYLE_SOLID
Defines a solid border style.
|
static int |
BORDER_STYLE_UNDEFINED
Undefined border style.
|
static int |
BORDER_STYLE_UNDERLINE
Defines an underlined border style.
|
static float |
BORDER_WIDTH_MEDIUM
Defines a medium border width.
|
static float |
BORDER_WIDTH_THICK
Defines a thick border width.
|
static float |
BORDER_WIDTH_THIN
Defines a thin border width.
|
static float |
BORDER_WIDTH_UNDEFINED
Undefined border width.
|
static float |
BORDER_WIDTH_UNDIFIED
Deprecated.
|
static int |
CHECK_BOX_STYLE_CHECK
Defines the shape of a check box field when it checked.
|
static int |
CHECK_BOX_STYLE_CIRCLE
Defines a circle check box style.
|
static int |
CHECK_BOX_STYLE_CROSS
Defines a cross check box style.
|
static int |
CHECK_BOX_STYLE_DIAMOND
Defines a diamond check box style.
|
static int |
CHECK_BOX_STYLE_SQUARE
Defines a square check box style.
|
static int |
CHECK_BOX_STYLE_STAR
Defines a star check box style.
|
static int |
CHECK_BOX_STYLE_UNDEFINED
Defines an undefined check box style.
|
Constructor and Description |
---|
FormFieldFacade() |
Modifier and Type | Method and Description |
---|---|
int |
getAlignment()
Get the alignment of a field text, default is left alignment.
|
Color |
getBackgroudColor()
Deprecated.
|
Color |
getBackgroundColor()
Get the color of a field background, default is white.
|
Color |
getBorderColor()
Gets color of a field border.
|
int |
getBorderStyle()
Gets style of a field border.
|
float |
getBorderWidth()
Get width of a field border.
|
Rectangle |
getBox()
Get a rectangle object holding field's location.
|
int |
getButtonStyle()
Get the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
|
String |
getCaption()
Get the normal caption of form field.
|
String |
getCustomFont()
Gets the name of the font when this is non-standart (other then 14 standard fonts).
|
String[][] |
getExportItems()
Get the options for adding a list/combo/radio box
|
int |
getFont()
Gets the font style type of a field text.
|
float |
getFontSize()
Gets the size of a field text.
|
String[] |
getItems()
Get an array of string, each representing an option of a combo box/list/radio box field.
|
int |
getPageNumber()
Get an integer value holding the number of page on which field locates.
|
float[] |
getPosition()
Get a rectangle object holding field's location.
|
int |
getRotation()
Get the rotation of a field text.
|
Color |
getTextColor()
Get the color of the field text.
|
int |
getTextEncoding()
Get the text encoding type of the field text.
|
void |
reset()
Reset all visual attribtues to empty value.
|
void |
setAlignment(int value)
Set the alignment of a field text, default is left alignment.
|
void |
setBackgroudColor(Color value)
Deprecated.
|
void |
setBackgroundColor(Color value)
Set the color of a field background, default is white.
|
void |
setBorderColor(Color value)
Sets color of a field border.
|
void |
setBorderStyle(int value)
Sets style of a field border.
|
void |
setBorderWidth(float value)
Set width of a field border.
|
void |
setBox(Rectangle value)
Set a rectangle object holding field's location.
|
void |
setButtonStyle(int value)
Set the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
|
void |
setCaption(String value)
Set the normal caption of form field.
|
void |
setCustomFont(String value)
Sets the name of the font when this is non-standart (other then 14 standard fonts).
|
void |
setExportItems(String[][] value)
Set the options for adding a list/combo/radio box
|
void |
setFont(int value)
Sets the font style type of a field text.
|
void |
setFontSize(float value)
Sets the size of a field text.
|
void |
setItems(String[] value)
Set an array of string, each representing an option of a combo box/list/radio box field.
|
void |
setPageNumber(int value)
Set an integer value holding the number of page on which field locates.
|
void |
setPosition(float[] value)
Set a rectangle object holding field's location.
|
void |
setRotation(int value)
Set the rotation of a field text.
|
void |
setTextColor(Color value)
Set the color of the field text.
|
void |
setTextEncoding(int value)
Set the
EncodingType text encoding type of the field text. |
@Deprecated public static final float BORDER_WIDTH_UNDIFIED
Undefined border width.
public static final float BORDER_WIDTH_UNDEFINED
Undefined border width.
public static final float BORDER_WIDTH_THIN
Defines a thin border width.
public static final float BORDER_WIDTH_MEDIUM
Defines a medium border width.
public static final float BORDER_WIDTH_THICK
Defines a thick border width.
public static final int BORDER_STYLE_SOLID
Defines a solid border style.
public static final int BORDER_STYLE_DASHED
Defines a dashed border style.
public static final int BORDER_STYLE_BEVELED
Defines a beveled border style.
public static final int BORDER_STYLE_INSET
Defines an inseted border style.
public static final int BORDER_STYLE_UNDERLINE
Defines an underlined border style.
public static final int BORDER_STYLE_UNDEFINED
Undefined border style.
public static final int ALIGN_LEFT
Defines aglignment to left style.
public static final int ALIGN_CENTER
Defines aglignment to center style.
public static final int ALIGN_RIGHT
Defines aglignment to right style.
public static final int ALIGN_UNDEFINED
Undefined aglignment style.
public static final int ALIGN_JUSTIFIED
Defines text justification alignment style.
public static final int ALIGN_TOP
Defines vertical aglignment as top style.
public static final int ALIGN_MIDDLE
Defines vertical aglignment as middle style.
public static final int ALIGN_BOTTOM
Defines vertical aglignment as bottom style.
public static final int CHECK_BOX_STYLE_CIRCLE
Defines a circle check box style.
public static final int CHECK_BOX_STYLE_CHECK
Defines the shape of a check box field when it checked.
public static final int CHECK_BOX_STYLE_CROSS
Defines a cross check box style.
public static final int CHECK_BOX_STYLE_DIAMOND
Defines a diamond check box style.
public static final int CHECK_BOX_STYLE_STAR
Defines a star check box style.
public static final int CHECK_BOX_STYLE_SQUARE
Defines a square check box style.
public static final int CHECK_BOX_STYLE_UNDEFINED
Defines an undefined check box style.
public Color getBorderColor()
Gets color of a field border.
public void setBorderColor(Color value)
Sets color of a field border.
value
- color of a field border.public int getBorderStyle()
Gets style of a field border.
public void setBorderStyle(int value)
Sets style of a field border.
value
- style of a field border.public float getBorderWidth()
Get width of a field border.
public void setBorderWidth(float value)
Set width of a field border.
value
- width of a field border.public int getFont()
Gets the font style type of a field text.
FontStyle
public void setFont(int value)
Sets the font style type of a field text.
value
- FontStyleFontStyle
public String getCustomFont()
Gets the name of the font when this is non-standart (other then 14 standard fonts).
public void setCustomFont(String value)
Sets the name of the font when this is non-standart (other then 14 standard fonts).
value
- String valuepublic float getFontSize()
Gets the size of a field text.
public void setFontSize(float value)
Sets the size of a field text.
value
- float valuepublic Color getTextColor()
Get the color of the field text.
public void setTextColor(Color value)
Set the color of the field text.
value
- Color elementpublic int getTextEncoding()
Get the text encoding type of the field text.
EncodingType
public void setTextEncoding(int value)
Set the EncodingType
text encoding type of the field text.
value
- EncodingType elementEncodingType
public int getAlignment()
Get the alignment of a field text, default is left alignment.
public void setAlignment(int value)
Set the alignment of a field text, default is left alignment.
value
- int valuepublic int getRotation()
Get the rotation of a field text.
public void setRotation(int value)
Set the rotation of a field text.
value
- int valuepublic String getCaption()
Get the normal caption of form field.
public void setCaption(String value)
Set the normal caption of form field.
value
- String valuepublic int getButtonStyle()
Get the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
public void setButtonStyle(int value)
Set the style of check box or radio box field, defined by FormFieldFacade.CheckBoxStyle*.
value
- int valuepublic Rectangle getBox()
Get a rectangle object holding field's location.
public void setBox(Rectangle value)
Set a rectangle object holding field's location.
value
- Rectangle elementpublic float[] getPosition()
Get a rectangle object holding field's location.
public void setPosition(float[] value)
Set a rectangle object holding field's location.
value
- array of float valuepublic int getPageNumber()
Get an integer value holding the number of page on which field locates.
public void setPageNumber(int value)
Set an integer value holding the number of page on which field locates.
value
- int valuepublic String[] getItems()
Get an array of string, each representing an option of a combo box/list/radio box field.
public void setItems(String[] value)
Set an array of string, each representing an option of a combo box/list/radio box field.
value
- array of String valuepublic String[][] getExportItems()
Get the options for adding a list/combo/radio box
public void setExportItems(String[][] value)
Set the options for adding a list/combo/radio box
value
- array of String valuepublic Color getBackgroundColor()
Get the color of a field background, default is white.
public void setBackgroundColor(Color value)
Set the color of a field background, default is white.
value
- Color elementpublic void reset()
Reset all visual attribtues to empty value.
@Deprecated public Color getBackgroudColor()
Obsolete property. Use BackgroundColor. This method is Deprecated.
@Deprecated public void setBackgroudColor(Color value)
Obsolete property. Use BackgroundColor. This method is Deprecated.
value
- background color