Tabnine Logo
OgemaLocale.getLocale
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocale
method
in
de.iwes.widgets.api.widgets.localisation.OgemaLocale

Best Java code snippets using de.iwes.widgets.api.widgets.localisation.OgemaLocale.getLocale (Showing top 7 results out of 315)

origin: org.ogema.widgets/ogema-gui-api

public OgemaLocale getLocale() { // initialized only when needed; not synchronized, but should be irrelevant
  if (locale == null) {
    locale = OgemaLocale.getLocale(localeString);
    if (locale == null)
      locale = OgemaLocale.ENGLISH;
  }
  return locale;
}
 
origin: org.ogema.widgets/ogema-gui-api

public String getLanguage() {
  return getLocale().getLanguage();
}
 
origin: org.ogema.widgets/ogema-gui-api

/**
 * Override in derived class if necessary
 * @return Browser path to Icon
 */
public String getIcon() {
  return BASE_PATH + "/" + correctIconCode(getLocale().getLanguage().toUpperCase()) + ".png";
}
 
origin: org.ogema.widgets/widget-extended

@Override
public JSONObject retrieveGETData(OgemaHttpRequest req) {
  updateOnGET(req.getLocale().getLocale());
  return super.retrieveGETData(req);
}
 
origin: org.ogema.widgets/widget-extended

@Override
public JSONObject retrieveGETData(OgemaHttpRequest req) {
  updateOnGET(req.getLocale().getLocale());
  return super.retrieveGETData(req);
}
 
origin: org.ogema.widgets/widget-extended

@SuppressWarnings("unchecked")
@Override
public JSONObject retrieveGETData(OgemaHttpRequest req) {
  String newValue;
  if (selectedResource == null)
    newValue = ((ResourceLabel<?>) widget).getEmptyLabel(req.getLocale().getLocale()) ;
  else
    newValue = ((ResourceLabel<T>) widget).format(selectedResource, req.getLocale().getLocale());
  super.setText(newValue);
  return super.retrieveGETData(req);
}
origin: org.ogema.widgets/ogema-js-bundle

OgemaLocale locale = OgemaLocale.getLocale(lang);
if (locale == null) {
de.iwes.widgets.api.widgets.localisationOgemaLocalegetLocale

Popular methods of OgemaLocale

  • getJson
  • getLanguage
  • correctIconCode
  • getAllLocales
  • getIcon
    Override in derived class if necessary

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now