Package overit.geocall.lang
Class LangType
java.lang.Object
overit.geocall.lang.LangType
- All Implemented Interfaces:
Serializable
The class collects all the configuration parameters for the
Lang, that must be defined with the attribute
type, used as a StringGetter- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringstatic final StringDefines the full translation type; when the language is defined as full, the omissions are markedstatic final StringDefines that the shortcuts are not shown for the languagestatic final StringDefines the partial translation type; when the language is defined as partial, the omissions are not markedstatic final StringDefines the parameter that must be used in the setup to set the shortcut type of the languagestatic final StringDefines the parameter that must be used in the setup to set the translation type of the languagestatic final StringDefines that the shortcuts must be managed using the standard mechanism (if in the translated string there is the same character used as shortcut, then the shortcut letter remain the same, inside the string; otherwise the letterwill be shown between the brackets, outside the translated string) ) -
Constructor Summary
ConstructorsConstructorDescriptionLangType()Creates a default LangType, that uses theFULL_TRANSLATIONandVISIBLE_SHORTCUTCreates a LangType instance with the desired configuration parameters -
Method Summary
Modifier and TypeMethodDescriptionReturns the shortcut type of the languageReturns the translation type of the languagevoidSets the shortcut type for the languagevoidSets the translation type for the language
-
Field Details
-
TRANSLATION
Defines the parameter that must be used in the setup to set the translation type of the language- See Also:
-
FULL_TRANSLATION
Defines the full translation type; when the language is defined as full, the omissions are marked- See Also:
-
PARTIAL_TRANSLATION
Defines the partial translation type; when the language is defined as partial, the omissions are not marked- See Also:
-
_translationType
-
SHORTCUT
Defines the parameter that must be used in the setup to set the shortcut type of the language- See Also:
-
VISIBLE_SHORTCUT
Defines that the shortcuts must be managed using the standard mechanism (if in the translated string there is the same character used as shortcut, then the shortcut letter remain the same, inside the string; otherwise the letterwill be shown between the brackets, outside the translated string) )- See Also:
-
HIDDEN_SHORTCUT
Defines that the shortcuts are not shown for the language- See Also:
-
_shortcutType
-
-
Constructor Details
-
LangType
public LangType()Creates a default LangType, that uses theFULL_TRANSLATIONandVISIBLE_SHORTCUT -
LangType
Creates a LangType instance with the desired configuration parameters- Parameters:
translationType- One ofFULL_TRANSLATIONorPARTIAL_TRANSLATIONshortcutType- One ofVISIBLE_SHORTCUTorHIDDEN_SHORTCUT
-
-
Method Details
-
setTranslationType
Sets the translation type for the language- Parameters:
s- The string that defines the tranlsation type, ieFULL_TRANSLATIONorPARTIAL_TRANSLATION
-
getTranslationType
Returns the translation type of the language- Returns:
- The string that defines the tranlsation type, ie
FULL_TRANSLATIONorPARTIAL_TRANSLATION
-
setShortcutType
Sets the shortcut type for the language- Parameters:
s- The string that defines the shortcut type, ieVISIBLE_SHORTCUTorHIDDEN_SHORTCUT
-
getShortcutType
Returns the shortcut type of the language- Returns:
- The string that defines the shortcut type, ie
VISIBLE_SHORTCUTorHIDDEN_SHORTCUT
-