/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListMultiActions() */ @Override public void executeListMultiActions() { throwListUnsupportedActionException(); }
/** * Returns the parameter value for the Mode.<p> * * @return the parameter value for the Mode */ public String getParamMode() { if (m_mode == null) { return null; } return m_mode.getMode(); }
/** * Sets the parameter value for the Mode.<p> * * @param mode the parameter value for the Mode to set */ public void setParamMode(String mode) { m_mode = CmsDiffViewMode.valueOf(mode); }
/** * Creates a new configuration object.<p> * * @param lines the lines to show before skipping * @param locale the locale to use */ public CmsHtmlDifferenceConfiguration(int lines, Locale locale) { super(new DiffConfiguration(lines, Messages.get().getBundleName(), Messages.GUI_DIFF_SKIP_LINES_1, locale)); setDivStyleNames("df-unc", "df-add", "df-rem", "df-skp"); setSpanStyleNames("df-unc", "df-add", "df-rem"); } }
/** * @see org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest) */ @Override protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) { super.initWorkplaceRequestValues(settings, request); if (CmsStringUtil.isEmptyOrWhitespaceOnly(getParamTextmode())) { // ensure a valid mode is set setParamTextmode(MODE_TEXT); } }
/** * @see com.google.common.base.Predicate#apply(java.lang.Object) */ public boolean apply(CmsAttributeComparison input) { return !Objects.equal(input.getVersion1(), input.getVersion2()); } }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#buttonHtml(org.opencms.workplace.CmsWorkplace) */ @Override public String buttonHtml(CmsWorkplace wp) { return ((CmsAttributeComparisonList)wp).getViewVersionButtonHtml( new CmsUUID(((CmsAttributeComparisonList)wp).getParamId2()), ((CmsAttributeComparisonList)wp).getParamVersion2()); } };
/** * Default constructor.<p> * * @param jsp an initialized JSP action element */ protected A_CmsDiffViewDialog(CmsJspActionElement jsp) { super(jsp); setParamStyle(STYLE_NEW); }
/** * Creates a new element comparison.<p> * * @param locale the locale of the comparison * @param name the name of the element */ public CmsElementComparison(Locale locale, String name) { m_locale = locale; setName(name); }
/** * Displays the difference dialog.<p> * @throws Exception if something goes wrong */ public void displayDifferenceDialog() throws Exception { m_differenceDialog.displayDialog(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListMultiActions() */ @Override public void executeListMultiActions() { throwListUnsupportedActionException(); }
/** * Creates a new configuration object.<p> * * @param lines the lines to show before skipping * @param locale the locale to use */ public CmsHtmlDifferenceConfiguration(int lines, Locale locale) { super(new DiffConfiguration(lines, Messages.get().getBundleName(), Messages.GUI_DIFF_SKIP_LINES_1, locale)); setDivStyleNames("df-unc", "df-add", "df-rem", "df-skp"); setSpanStyleNames("df-unc", "df-add", "df-rem"); } }
/** * @see org.opencms.workplace.CmsWorkplace#initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest) */ @Override protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) { super.initWorkplaceRequestValues(settings, request); if (CmsStringUtil.isEmptyOrWhitespaceOnly(getParamTextmode())) { // ensure a valid mode is set setParamTextmode(MODE_TEXT); } }
/** * Returns the parameter value for the Mode.<p> * * @return the parameter value for the Mode */ public String getParamMode() { if (m_mode == null) { return null; } return m_mode.getMode(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListMultiActions() */ @Override public void executeListMultiActions() { throwListUnsupportedActionException(); }
/** * Sets the parameter value for the Mode.<p> * * @param mode the parameter value for the Mode to set */ public void setParamMode(String mode) { m_mode = CmsDiffViewMode.valueOf(mode); }
/** * Default constructor.<p> * * @param jsp an initialized JSP action element */ protected A_CmsDiffViewDialog(CmsJspActionElement jsp) { super(jsp); setParamStyle(STYLE_NEW); }
/** * Creates a new element comparison.<p> * * @param locale the locale of the comparison * @param name the name of the element */ public CmsElementComparison(Locale locale, String name) { m_locale = locale; setName(name); }
/** * Displays the difference dialog.<p> * @throws Exception if something goes wrong */ public void displayDifferenceDialog() throws Exception { m_differenceDialog.displayDialog(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListMultiActions() */ @Override public void executeListMultiActions() { throwListUnsupportedActionException(); }