Codota Logo
I_CmsWidgetDialog.getLocale
Code IndexAdd Codota to your IDE (free)

How to use
getLocale
method
in
org.opencms.widgets.I_CmsWidgetDialog

Best Java code snippets using org.opencms.widgets.I_CmsWidgetDialog.getLocale (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)
 */
@Override
public String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog) {
  return calendarIncludes(widgetDialog.getLocale());
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)
 */
@Override
public String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog) {
  return calendarIncludes(widgetDialog.getLocale());
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogInitMethod(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)
 */
@Override
public String getDialogInitMethod(CmsObject cms, I_CmsWidgetDialog widgetDialog) {
  StringBuffer result = new StringBuffer(128);
  result.append("function initColorPicker() {\n");
  result.append("\tcolorPicker.title = \"");
  result.append(Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_DIALOG_COLOR_TITLE_0));
  result.append("\";\n");
  result.append("\tcolorPicker.url=\"");
  result.append(CmsWorkplace.getSkinUri());
  result.append("components/js_colorpicker/index.html\";\n");
  result.append("}\n");
  return result.toString();
}
origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogInitMethod(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)
 */
@Override
public String getDialogInitMethod(CmsObject cms, I_CmsWidgetDialog widgetDialog) {
  StringBuffer result = new StringBuffer(128);
  result.append("function initColorPicker() {\n");
  result.append("\tcolorPicker.title = \"");
  result.append(Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_DIALOG_COLOR_TITLE_0));
  result.append("\";\n");
  result.append("\tcolorPicker.url=\"");
  result.append(CmsWorkplace.getSkinUri());
  result.append("components/js_colorpicker/index.html\";\n");
  result.append("}\n");
  return result.toString();
}
origin: org.opencms/opencms-core

boolean booleanValue = Boolean.valueOf(value).booleanValue();
if (booleanValue) {
  localizedValue = Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_LABEL_TRUE_0);
} else {
  localizedValue = Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_LABEL_FALSE_0);
origin: org.opencms/opencms-solr

boolean booleanValue = Boolean.valueOf(value).booleanValue();
if (booleanValue) {
  localizedValue = Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_LABEL_TRUE_0);
} else {
  localizedValue = Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_LABEL_FALSE_0);
origin: org.opencms/opencms-core

boolean booleanValue = Boolean.valueOf(value).booleanValue();
if (booleanValue) {
  localizedValue = Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_LABEL_TRUE_0);
} else {
  localizedValue = Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_LABEL_FALSE_0);
origin: org.opencms/opencms-core

Locale contentLocale = widgetDialog.getLocale();
try {
  I_CmsXmlContentValue value = (I_CmsXmlContentValue)param;
origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.A_CmsWidget#getWidgetStringValue(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
 */
@Override
public String getWidgetStringValue(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) {
  String result = param.getStringValue(cms);
  if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(result) && !"0".equals(result)) {
    try {
      result = getCalendarLocalizedTime(
        widgetDialog.getLocale(),
        widgetDialog.getMessages(),
        Long.parseLong(result));
    } catch (NumberFormatException e) {
      if (!CmsMacroResolver.isMacro(result, CmsMacroResolver.KEY_CURRENT_TIME)) {
        // neither long nor macro, show empty value
        result = "";
      }
    }
  } else {
    result = "";
  }
  return result;
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.widgets.A_CmsWidget#getWidgetStringValue(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
 */
@Override
public String getWidgetStringValue(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) {
  String result = param.getStringValue(cms);
  if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(result) && !"0".equals(result)) {
    try {
      result = getCalendarLocalizedTime(
        widgetDialog.getLocale(),
        widgetDialog.getMessages(),
        Long.parseLong(result));
    } catch (NumberFormatException e) {
      if (!CmsMacroResolver.isMacro(result, CmsMacroResolver.KEY_CURRENT_TIME)) {
        // neither long nor macro, show empty value
        result = "";
      }
    }
  } else {
    result = "";
  }
  return result;
}
origin: org.opencms/opencms-solr

    levels.add(options);
    options.add(new CmsSelectWidgetOption("", true, Messages.get().getBundle(
      widgetDialog.getLocale()).key(Messages.GUI_CATEGORY_SELECT_0)));
"",
true,
Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_CATEGORY_SELECT_0)));
origin: org.opencms/opencms-solr

  + paramId
  + "');openLinkDialog('"
  + Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_BUTTON_LINKTO_0)
  + "');", null, "link", "button.linkto", widgetDialog.getButtonStyle()));
buttonsActive = true;
  + paramId
  + "');openAnchorDialog('"
  + Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.ERR_EDITOR_MESSAGE_NOSELECTION_0)
  + "');", null, "anchor", Messages.GUI_BUTTON_ANCHOR_0, widgetDialog.getButtonStyle()));
buttonsActive = true;
origin: org.opencms/opencms-core

      "",
      true,
      Messages.get().getBundle(widgetDialog.getLocale()).key(
        Messages.GUI_CATEGORY_SELECT_0)));
"",
true,
Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_CATEGORY_SELECT_0)));
origin: org.opencms/opencms-core

  + paramId
  + "');openLinkDialog('"
  + Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_BUTTON_LINKTO_0)
  + "');",
null,
  + paramId
  + "');openAnchorDialog('"
  + Messages.get().getBundle(widgetDialog.getLocale()).key(
    Messages.ERR_EDITOR_MESSAGE_NOSELECTION_0)
  + "');",
origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.A_CmsSelectWidget#parseSelectOptions(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
 */
@Override
protected List<CmsSelectWidgetOption> parseSelectOptions(
  CmsObject cms,
  I_CmsWidgetDialog widgetDialog,
  I_CmsWidgetParameter param) {
  List<CmsSelectWidgetOption> options = new ArrayList<CmsSelectWidgetOption>();
  String myPath = getResourcePath(cms, widgetDialog);
  Map<CmsUUID, CmsElementView> views = OpenCms.getADEManager().getElementViews(cms);
  for (CmsElementView view : views.values()) {
    if (shouldIgnore(view, views, myPath)) {
      continue;
    }
    String value = "";
    if (view.getResource() != null) {
      value = cms.getSitePath(view.getResource());
    } else if ((view.getId() != null) && !view.getId().isNullUUID()) {
      // synthetic view
      value = "view://" + view.getId();
    }
    options.add(new CmsSelectWidgetOption(value, false, view.getTitle(cms, widgetDialog.getLocale())));
  }
  if (isSelectParent()) {
    //
    options.add(new CmsSelectWidgetOption(CmsElementView.PARENT_NONE, true, "--"));
  }
  return options;
}
org.opencms.widgetsI_CmsWidgetDialoggetLocale

Javadoc

Returns the current users locale setting.

Popular methods of I_CmsWidgetDialog

  • getMessages
    Returns a messages object used to render localized keys for the widget dialog.
  • button
    Generates a button for the widget dialog.
  • buttonBar
    Returns the html for a button bar.
  • buttonBarHorizontalLine
    Generates a horizontal button bar separator line with maximum width.
  • buttonBarStartTab
    Generates a button bar starter tab.
  • dialogHorizontalSpacer
    Builds an invisible horiziontal spacer with the specified width.
  • getButtonStyle
    Returns the style setting to use when generating buttons for this widget dialog.
  • getHelpMessageIds
    Returns a set of help messages ids that are already included on the widget dialog. This is used to p
  • getUserAgent
    Returns the "user-agent" of the current request, or null in case no request is available.
  • useNewStyle
    Tests if we are working with the new administration dialog style. This param is not intended for ext

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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