public class WorkflowUtilities extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
EVENT_FIELD_ONPOPULATE |
Fires for each field when building the form.
|
static int |
EVENT_FIELD_ONPOSTSUBMIT |
Fires after all data is submitted to the db for all fields.
|
static int |
EVENT_FIELD_ONPRESUBMIT |
Fires after validation, but before the data is committed to the database.
|
static int |
EVENT_FIELD_ONSETDEFAULT |
Fires to set the current value of a form field.
|
static int |
EVENT_FIELD_ONSORT |
NOT CURRENTLY IMPLEMENTED.
|
static int |
EVENT_FIELD_ONVALIDATE |
Fires on validation of the form field.
|
Constructor | Description |
---|---|
WorkflowUtilities() |
Modifier and Type | Method | Description |
---|---|---|
static String |
getEventName(int value,
Locale locale) |
Returns a title of workflow event, according to selected locale.
|
static String |
getEventName(String value,
Locale locale) |
|
static NameValuePair[] |
getEvents(Locale locale) |
Returns an array of pairs (eventName, eventId), where eventName
is an event title, according to selected locale.
|
static List<NameValuePair> |
getListOptions(Map<Integer,List<NameValuePair>> listOptions,
int fieldId) |
Select a list of NameValuePair objects from provided map object according
to fieldId selector.
|
static List<NameValuePair> |
getListOptions(Map listOptions,
Integer fieldId) |
Select a list of NameValuePair objects from provided map object according
to fieldId selector.
|
public static final int EVENT_FIELD_ONPOPULATE
public static final int EVENT_FIELD_ONSORT
public static final int EVENT_FIELD_ONSETDEFAULT
public static final int EVENT_FIELD_ONVALIDATE
public static final int EVENT_FIELD_ONPRESUBMIT
public static final int EVENT_FIELD_ONPOSTSUBMIT
public static String getEventName(int value, Locale locale)
value
- is an identifier of incoming event.locale
- is a selected locale.public static NameValuePair[] getEvents(Locale locale)
locale
- is a selected locale.public static List<NameValuePair> getListOptions(Map<Integer,List<NameValuePair>> listOptions, int fieldId)
listOptions
- is a map, with stored NameValuePair objects lists
associated with specific integer id.fieldId
- is a selector from map.public static List<NameValuePair> getListOptions(Map listOptions, Integer fieldId)
listOptions
- is a map, with stored NameValuePair objects lists
associated with specific integer id.fieldId
- is a selector from map.Copyright © 2002–2019 itracker. All rights reserved.