public class IssueTrackingField
extends java.lang.Object
Issue is created (or altered).
Fields may have a predefined list of values to select (e.g. fields of type SELECT_FIELD) or free text to enter.
Fields may depend on each other which means that the values of one field can depend on the selected value of another field.| Modifier and Type | Field and Description |
|---|---|
static int |
BROWSE_FILE_FIELD |
static int |
BROWSE_FOLDER_FIELD |
static int |
CHECKBOX
Check-box field.
|
static int |
DATE_FIELD
For later version.
|
static int |
INT_FIELD
For later version.
|
static int |
LABEL_NO_FIELD
Only a label without any input data.
|
static int |
MULTI_SELECT
For later version.
|
static int |
OPEN_MULTI_SELECT
For later version.
|
static int |
OPEN_SELECT_FIELD
The user may select an item from the choice list or type in a new value.
|
static int |
SELECT_FIELD
Single-line SelectBox.
|
static int |
TEXTAREA
Multi-line free text.
|
static int |
TEXTFIELD
Single-line free text.
|
| Constructor and Description |
|---|
IssueTrackingField(java.lang.String name,
int type,
java.lang.String[] value,
java.lang.String[] options,
java.lang.String label,
boolean required,
int maxLength,
boolean visible) |
IssueTrackingField(java.lang.String name,
int type,
java.lang.String value,
java.lang.String[] options,
java.lang.String label,
boolean required,
int maxLength) |
IssueTrackingField(java.lang.String name,
int type,
java.lang.String value,
java.lang.String[] options,
java.lang.String label,
boolean isRequired,
int maxLength,
boolean visible) |
IssueTrackingField(java.lang.String name,
int type,
java.lang.String value,
java.lang.String[] options,
java.lang.String label,
int maxLength,
boolean visible) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependentField(IssueTrackingField field)
Add a field whose value depends on the value of this field.
|
java.util.List<IssueTrackingField> |
getDependentFields()
Get all fields that depend on this field.
|
int |
getFieldLength()
The maximum number of characters the user may enter.
|
java.lang.String |
getLabel()
The label that will be displayed in the GUI.
|
java.lang.String |
getName()
A unique name for internal use.
|
java.lang.String[] |
getOptions() |
int |
getType()
|
java.lang.String |
getValue()
Get the entered/set value of this field.
|
java.lang.String[] |
getValues()
Get values from fields with multi-select values.
|
boolean |
hasDependentFields() |
boolean |
isRequired()
Specifies if the user has to enter a value for the field.
|
boolean |
isVisible()
Invisible fields are not displayed in the GUI, but can contain any data.
|
void |
setFieldLength(int fieldLength) |
void |
setLabel(java.lang.String label)
Set the label shown in the GUI for this field.
|
void |
setName(java.lang.String name) |
void |
setOptions(java.lang.String[] options) |
void |
setRequired(boolean required)
Set if a value has to be entered for this field.
|
void |
setType(int type) |
void |
setValue(java.lang.String value)
Set the value of this field.
|
void |
setValue(java.lang.String[] values)
Set selected values for multi-select fields.
|
void |
setVisible(boolean visible) |
public static final int SELECT_FIELD
public static final int CHECKBOX
public static final int TEXTFIELD
public static final int TEXTAREA
TEXTFIELD.public static final int MULTI_SELECT
SELECT_FIELD.public static final int INT_FIELD
TEXTFIELD.public static final int DATE_FIELD
TEXTFIELD.public static final int OPEN_SELECT_FIELD
SELECT_FIELD.public static final int OPEN_MULTI_SELECT
SELECT_FIELD.public static final int BROWSE_FOLDER_FIELD
public static final int BROWSE_FILE_FIELD
public static final int LABEL_NO_FIELD
public IssueTrackingField(java.lang.String name,
int type,
java.lang.String value,
java.lang.String[] options,
java.lang.String label,
boolean required,
int maxLength)
public IssueTrackingField(java.lang.String name,
int type,
java.lang.String value,
java.lang.String[] options,
java.lang.String label,
int maxLength,
boolean visible)
public IssueTrackingField(java.lang.String name,
int type,
java.lang.String value,
java.lang.String[] options,
java.lang.String label,
boolean isRequired,
int maxLength,
boolean visible)
public IssueTrackingField(java.lang.String name,
int type,
java.lang.String[] value,
java.lang.String[] options,
java.lang.String label,
boolean required,
int maxLength,
boolean visible)
name - A unique name for the field (ID).type - The type of the field.value - The current value of the field.options - The options for a field with selectable values.label - The label for the field shown in the dialog.required - Defines if the user has to enter a value for this field or if it can be left blank.maxLength - The maximum number of characters that can be entered in a TextField or TextArea .visible - Invisible fields are not displayed in the GUI, but can contain any data.public java.lang.String getName()
public void setName(java.lang.String name)
public int getType()
public void setType(int type)
public java.lang.String[] getValues()
public void setValue(java.lang.String[] values)
values - public java.lang.String getValue()
public void setValue(java.lang.String value)
value - public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The label shown in the GUI for this field.public boolean isRequired()
public void setRequired(boolean required)
required - public int getFieldLength()
public void setFieldLength(int fieldLength)
fieldLength - The maximum number of characters the user may enter.public java.lang.String[] getOptions()
SELECT_FIELD.public void setOptions(java.lang.String[] options)
options - the selectable options for a field with type SELECT_FIELD.public void addDependentField(IssueTrackingField field)
SELECT_FIELD.field - that should be updated if the value changes.public boolean hasDependentFields()
public java.util.List<IssueTrackingField> getDependentFields()
IssueTrackingFields depending on this field.public boolean isVisible()
public void setVisible(boolean visible)
Copyright © Micro Focus 2004-2019. All rights reserved.