public interface IText
The Text interface supports internationalization and retrieving texts with different lengths for different GUI purposes.
There is no fix definition of the text lengths. The three text length types are only a hint. The idea is of cause that short <= medium <= long is true.
There is an optional fallback onto a technical constructed name if there is no resource bundle at all. The normal behavior is to throw a MissingResourceException.
Copyright: Copyright (c) 2002 Company: SAP Portals
Modifier and Type | Field and Description |
---|---|
static boolean |
FALLBACK
flag for fallback
|
static boolean |
NO_FALLBACK
flag for no fallback
|
Modifier and Type | Method and Description |
---|---|
String |
getLongText(Locale aLocale)
returns a locale specific long version of the text.
|
String |
getLongText(Locale aLocale,
boolean fallback)
returns a locale specific long version of the text.
|
String |
getMediumText(Locale aLocale)
returns a locale specific medium version of the text.
|
String |
getMediumText(Locale aLocale,
boolean fallback)
returns a locale specific medium version of the text.
|
String |
getShortText(Locale aLocale)
returns a locale specific short version of the text.
|
String |
getShortText(Locale aLocale,
boolean fallback)
returns a locale specific short version of the text.
|
String |
getText(Locale aLocale,
int aLengthType,
boolean fallback)
returns a locale specific version of the text.
|
static final boolean FALLBACK
static final boolean NO_FALLBACK
String getText(Locale aLocale, int aLengthType, boolean fallback)
aLocale
- the locale for the textaLengthType
- one of the length types defined in TextBundlefallback
- true, if a technical name should be contructed whenString getShortText(Locale aLocale)
aLocale
- the locale for the textString getShortText(Locale aLocale, boolean fallback)
aLocale
- the locale for the textfallback
- true, if a technical name should be contructed whenString getMediumText(Locale aLocale)
aLocale
- the locale for the textString getMediumText(Locale aLocale, boolean fallback)
aLocale
- the locale for the textfallback
- true, if a technical name should be contructed whenString getLongText(Locale aLocale)
aLocale
- the locale for the textString getLongText(Locale aLocale, boolean fallback)
aLocale
- the locale for the textfallback
- true, if a technical name should be contructed whenAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/util
|
api
|
EP-KM-COL
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice