|
||||||||||
| 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
public abstract class 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 | |
|---|---|
String |
deactivatedEmphasizedButtonHtml(String name,
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 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 String |
getOriginalSource()
Returns the text to compare as original. |
String |
getParamMode()
Returns the parameter value for the Mode. |
String |
getTwoButtonsHtml(String label1,
String label2,
String onClick1,
String onClick2,
boolean firstActive)
Returns the html for two buttons, whereby the third parameter determines which one is active. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
void |
setMode(CmsDiffViewMode mode)
Sets the mode. |
void |
setParamMode(String mode)
Sets the parameter value for the Mode. |
protected abstract void |
validateParamaters()
Validates the parameters. |
protected String |
wrapLinesWithUnchangedStyle(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 element| Method Detail |
|---|
public void displayDialog()
throws Exception
Exception - if writing to the JSP out fails
public String getTwoButtonsHtml(String label1,
String label2,
String onClick1,
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 String deactivatedEmphasizedButtonHtml(String name,
String iconPath)
name - the label of the buttoniconPath - the path to the icon
public CmsDiffViewMode getMode()
public String getParamMode()
public void setMode(CmsDiffViewMode mode)
mode - the mode to setpublic void setParamMode(String mode)
mode - the parameter value for the Mode to setprotected abstract String getCopySource()
protected abstract int getLinesBeforeSkip()
protected abstract String getOriginalSource()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsDialogsettings - the workplace settingsrequest - the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected abstract void validateParamaters()
throws Exception
Exception - if something goes wrong
protected String wrapLinesWithUnchangedStyle(String diff)
throws IOException
diff - the text to wrap with CSS formatting
IOException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||