/** * Returns if the given container is a nested container.<p> * * @return <code>true</code> if the given container is a nested container */ public boolean isNestedContainer() { return CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_parentInstanceId); }
/** * Sets the attribute.<p> * * @param attribute the attribute to set */ public void setAttribute(String attribute) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(attribute)) { m_attribute = attribute; } }
/** * Returns if there a URL available to call for the preview.<p> * * @return if there a URL available to call for the preview */ public boolean hasPreviewUrl() { return CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_previewUrl); }
/** * Sets the element.<p> * * @param element the element to set */ public void setElement(String element) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(element)) { m_element = element; } }
/** * Sets the file name.<p> * * @param file the file name */ public void setFile(String file) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(file)) { m_propertyFile = file; } }
/** * Sets the background color of the foot frame.<p> * * @param backgroundColor the background color of the foot frame */ public void setBackgroundColor(String backgroundColor) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(backgroundColor)) { m_backgroundColor = backgroundColor; } }
/** * Returns if preview HTML content is available to display directly.<p> * * @return if preview HTML content is available to display directly */ public boolean hasPreviewContent() { return CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_previewContent); }
/** * @see org.opencms.search.fields.I_CmsSearchFieldMapping#setDefaultValue(java.lang.String) */ public void setDefaultValue(String defaultValue) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(defaultValue)) { m_defaultValue = defaultValue.trim(); } else { m_defaultValue = null; } }
/** * @see org.opencms.search.fields.I_CmsSearchFieldMapping#setParam(java.lang.String) */ public void setParam(String param) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(param)) { m_param = param.trim(); } else { m_param = null; } }
/** * Sets the default value to use if no content for this field was collected.<p> * * @param defaultValue the default value to set */ public void setDefaultValue(String defaultValue) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(defaultValue)) { m_defaultValue = defaultValue.trim(); } else { m_defaultValue = null; } }
/** * Sets the name of the variable under which the content access bean is saved in the page context.<p> * * @param var the name of the variable under which the content access bean is saved in the page context */ public void setVar(String var) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(var)) { m_variable = var.trim(); } }
/** * Sets the (optional) resource for the navigation.<p> * * @param resource the (optional) resource for the navigation */ public void setResource(String resource) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(resource)) { m_resource = resource.trim(); } }
/** * Sets the suffix.<p> * * @param suffix the suffix to set */ public void setSuffix(String suffix) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(suffix)) { m_suffix = suffix.toLowerCase(); } } }
/** * Sets the name for the optional attribute that provides direct access to the content value map.<p> * * @param val the name for the optional attribute that provides direct access to the content value map */ public void setVal(String val) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(val)) { m_value = val.trim(); } } }
/** * Sets the include groups flag.<p> * * Include groups is <code>false</code> by default.<p> * * @param includeGroups the flag to set */ public void setIncludegroups(String includeGroups) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(includeGroups)) { m_includegroups = Boolean.valueOf(includeGroups).booleanValue(); } }
/** * Sets the editable flag.<p> * * Editable is <code>false</code> by default.<p> * * @param editable the flag to set */ public void setEditable(String editable) { if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(editable)) { m_editable = Boolean.valueOf(editable).booleanValue(); } }
/** * Checks if the given key is provided in the configuration file.<p> * * @param key the key to check * @return true if the given key is provided in the configuration file, otherwise false */ protected boolean hasConfigValue(String key) { return CmsStringUtil.isNotEmptyOrWhitespaceOnly(getConfigValue(key)); }
/** * @see org.opencms.workplace.explorer.menu.I_CmsMenuItemRule#matches(org.opencms.file.CmsObject, org.opencms.workplace.explorer.CmsResourceUtil[]) */ public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil) { String context = (String)cms.getRequestContext().getAttribute(I_CmsMenuItemRule.ATTR_CONTEXT_INFO); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(context)) { return context.toLowerCase().equals(I_CmsMenuItemRule.CONTEXT_SITEMAP); } return false; } }
/** * Sets the text.<p> * * @param text the text to set */ public void setText(String text) { m_text = text; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(text)) { setQuery(createTextQuery(text)); } }
/** * Clears the left toolbar buttons.<p> */ public void clearButtonsLeft() { m_itemsLeft.removeAllComponents(); m_leftButtons.removeAllComponents(); // in case the app title is set, make sure to keep the label in the button bar if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_appIndicator.getValue())) { m_itemsLeft.addComponent(m_appIndicator); } updateFoldingThreshhold(); }