Class LocalizeController
- java.lang.Object
-
- org.teichert.databaseexplorer.controllers.LocalizeController
-
public final class LocalizeController extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalizeController
getInstance()
String
getLocalizeById(String localId, String defaulVal)
Translates the give localId or returns the defaulValue if no translation exists.String
getLocalizeByIdReplace(String localId, String defaulVal, Object... objects)
Translates the give localId or returns the defaulValue if no translation exists and replaces all placeholder marks with the given objects in the order of the array's-index.void
localize(javafx.scene.layout.Region parent)
Translates from the givenRegion
itseld and all child components recursively.
-
-
-
Method Detail
-
getInstance
public static LocalizeController getInstance()
-
localize
public void localize(javafx.scene.layout.Region parent)
Translates from the givenRegion
itseld and all child components recursively.- Parameters:
parent
-
-
getLocalizeById
public String getLocalizeById(String localId, String defaulVal)
Translates the give localId or returns the defaulValue if no translation exists.- Parameters:
localId
-defaulVal
-- Returns:
-
getLocalizeByIdReplace
public String getLocalizeByIdReplace(String localId, String defaulVal, Object... objects)
Translates the give localId or returns the defaulValue if no translation exists and replaces all placeholder marks with the given objects in the order of the array's-index.- Parameters:
localId
-defaulVal
-objects
-- Returns:
- See Also:
StringHelper.replaceVariables(java.lang.String, java.lang.Object...)
-
-