|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
org.opencms.workplace.CmsDialog
org.opencms.workplace.comparison.A_CmsDiffViewDialog
Provides a GUI for the configuration file comparison dialog.
Field Summary |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
protected |
A_CmsDiffViewDialog(CmsJspActionElement jsp)
Default constructor. |
Method Summary | |
java.lang.String |
deactivatedEmphasizedButtonHtml(java.lang.String name,
java.lang.String iconPath)
Returns the html code for a deactivated empfasized button. |
void |
displayDialog()
Performs the dialog actions depending on the initialized action and displays the dialog form. |
protected abstract java.lang.String |
getCopySource()
Returns the text to compare as copy. |
protected abstract int |
getLinesBeforeSkip()
Returns the number of lines to show before they are skipped. |
CmsDiffViewMode |
getMode()
Returns the mode. |
protected abstract java.lang.String |
getOriginalSource()
Returns the text to compare as original. |
java.lang.String |
getParamMode()
Returns the parameter value for the Mode. |
java.lang.String |
getTwoButtonsHtml(java.lang.String label1,
java.lang.String label2,
java.lang.String onClick1,
java.lang.String onClick2,
boolean firstActive)
Returns the html for two buttons, whereby the third parameter determines which one is active. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
void |
setMode(CmsDiffViewMode mode)
Sets the mode. |
void |
setParamMode(java.lang.String mode)
Sets the parameter value for the Mode. |
protected abstract void |
validateParamaters()
Validates the parameters. |
protected java.lang.String |
wrapLinesWithUnchangedStyle(java.lang.String diff)
Returns a diff text wrapped with formatting style. |
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamPath, setParamRoot, setParamStyle, useNewStyle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected A_CmsDiffViewDialog(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementMethod Detail |
public void displayDialog() throws java.lang.Exception
java.lang.Exception
- if writing to the JSP out failspublic java.lang.String getTwoButtonsHtml(java.lang.String label1, java.lang.String label2, java.lang.String onClick1, java.lang.String onClick2, boolean firstActive)
label1
- the label for the first buttonlabel2
- the label for the second buttonfirstActive
- a flag indicating wheter the first or second button is activeonClick1
- the action to be performed if the first button is clickedonClick2
- the action to be performed if the second button is clicked
public java.lang.String deactivatedEmphasizedButtonHtml(java.lang.String name, java.lang.String iconPath)
name
- the label of the buttoniconPath
- the path to the icon
public CmsDiffViewMode getMode()
public java.lang.String getParamMode()
public void setMode(CmsDiffViewMode mode)
mode
- the mode to setpublic void setParamMode(java.lang.String mode)
mode
- the parameter value for the Mode to setprotected abstract java.lang.String getCopySource()
protected abstract int getLinesBeforeSkip()
protected abstract java.lang.String getOriginalSource()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsDialog
CmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected abstract void validateParamaters() throws java.lang.Exception
java.lang.Exception
- if something goes wrongprotected java.lang.String wrapLinesWithUnchangedStyle(java.lang.String diff) throws java.io.IOException
diff
- the text to wrap with CSS formatting
java.io.IOException
- if something goes wrong
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |