public class DateParametersEditorHelper extends Object
| Constructor and Description |
|---|
DateParametersEditorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDateFormat(Map<String,? extends Object> parameters,
Datebox dateBox)
Determines the date format for the
Datebox. |
protected static String |
getDefaultDateFormat(Datebox datebox) |
static String |
getLenientDefault() |
static boolean |
getLenientFlag(Map<String,? extends Object> parameters)
Determines the lenient flag to used for the Datebox.
|
public static String getDateFormat(Map<String,? extends Object> parameters, Datebox dateBox)
Datebox.
The given date format can be either a custom date format e. g. dd/MM/yyyy (see SimpleDateFormat) or the
following constants for getting a localized date format:
parameters - Datebox or default date Format if format is invalidprotected static String getDefaultDateFormat(Datebox datebox)
public static boolean getLenientFlag(Map<String,? extends Object> parameters)
The flag can specify as parameter.
If no parameter is specified the default value from the project.properties is used.
Returns true if no default and no parameter is used.
parameters - public static String getLenientDefault()
Copyright © 2017 SAP SE. All Rights Reserved.