Codota Logo
OgemaLocale.getLocale
Code IndexAdd Codota 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)

  • Common ways to obtain OgemaLocale
private void myMethod () {
OgemaLocale o =
  • Codota IconOgemaHttpRequest ogemaHttpRequest;ogemaHttpRequest.getLocale()
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now