CmsHtmlWidget
Code IndexAdd Codota to your IDE (free)

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

origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.I_CmsWidget#newInstance()
 */
public I_CmsWidget newInstance() {
  return new CmsHtmlWidget(getConfiguration());
}
origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
 */
public String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) {
  return getEditorWidget(cms, widgetDialog).getDialogWidget(cms, widgetDialog, param);
}
origin: org.opencms/opencms-core

throws JSONException {
  String embeddedImageGalleryOptions = getHtmlWidgetOption().getEmbeddedConfigurations().get("imagegallery");
  String embeddedDownloadGalleryOptions = getHtmlWidgetOption().getEmbeddedConfigurations().get(
    "downloadgallery");
    filterEmbeddedGalleryOptions(downloadJsonObj);
    result.put("downloadGalleryConfig", downloadJsonObj);
    filterEmbeddedGalleryOptions(imageJsonObj);
    result.put("imageGalleryConfig", imageJsonObj);
origin: org.opencms/opencms-core

CmsHtmlWidgetOption widgetOptions = getHtmlWidgetOption();
CmsEditorDisplayOptions options = OpenCms.getWorkplaceManager().getEditorDisplayOptions();
Properties displayOptions = options.getDisplayOptions(cms);
  if (!CmsStringUtil.isEmpty(formatSelectOptions)
    && !widgetOptions.isButtonHidden(CmsHtmlWidgetOption.OPTION_FORMATSELECT)) {
    result.put("block_formats", getTinyMceBlockFormats(formatSelectOptions));
origin: org.opencms/opencms-solr

  editorWidget.setHtmlWidgetOption(getHtmlWidgetOption());
  m_editorWidget = editorWidget;
} else {
origin: org.opencms/opencms-core

/**
 * @see org.opencms.widgets.I_CmsADEWidget#getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)
 */
public String getConfiguration(
  CmsObject cms,
  A_CmsXmlContentValue schemaType,
  CmsMessages messages,
  CmsResource resource,
  Locale contentLocale) {
  JSONObject result = getJSONConfiguration(cms, resource, contentLocale);
  try {
    addEmbeddedGalleryOptions(result, cms, schemaType, messages, resource, contentLocale);
  } catch (JSONException e) {
    LOG.error(e.getLocalizedMessage(), e);
  }
  return result.toString();
}
origin: org.opencms/opencms-core

  editorWidget.setHtmlWidgetOption(getHtmlWidgetOption());
  m_editorWidget = editorWidget;
} else {
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.widgets.I_CmsWidget#newInstance()
 */
public I_CmsWidget newInstance() {
  return new CmsHtmlWidget(getConfiguration());
}
origin: org.opencms/opencms-core

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

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
 */
public String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) {
  return getEditorWidget(cms, widgetDialog).getDialogWidget(cms, widgetDialog, param);
}
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 getEditorWidget(cms, widgetDialog).getDialogIncludes(cms, widgetDialog);
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.widgets.I_CmsWidget#getDialogInitCall(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)
 */
@Override
public String getDialogInitCall(CmsObject cms, I_CmsWidgetDialog widgetDialog) {
  return getEditorWidget(cms, widgetDialog).getDialogInitCall(cms, widgetDialog);
}
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) {
  return getEditorWidget(cms, widgetDialog).getDialogInitMethod(cms, widgetDialog);
}
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 getEditorWidget(cms, widgetDialog).getDialogIncludes(cms, widgetDialog);
}
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) {
  return getEditorWidget(cms, widgetDialog).getDialogInitMethod(cms, widgetDialog);
}
org.opencms.widgetsCmsHtmlWidget

Javadoc

Provides a widget that creates a rich input field using the matching component, for use on a widget dialog.

The matching component is determined by checking the installed editors for the best matching component to use.

Most used methods

  • <init>
    Creates a new html editing widget with the given configuration.
  • getConfiguration
  • getEditorWidget
    Returns the editor widget to use depending on the current users settings, current browser and instal
  • getHtmlWidgetOption
  • addEmbeddedGalleryOptions
    Adds the configuration for embedded gallery widgets the the JSON object.
  • filterEmbeddedGalleryOptions
    Removes all keys from the given JSON object which do not directly result from the embedded gallery c
  • getJSONConfiguration
    Returns the WYSIWYG editor configuration as a JSON object.
  • getTinyMceBlockFormats
    Gets the block format configuration string for TinyMCE from the configured format select options.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Menu (java.awt)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JTable (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)