|
||||||||
| 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.list.A_CmsListDialog
org.opencms.workplace.comparison.CmsPropertyComparisonList
org.opencms.workplace.comparison.CmsAttributeComparisonList
public class CmsAttributeComparisonList
List for property comparison including columns for property name and the values.
| Field Summary | |
|---|---|
static java.lang.String |
AC_LIST_ID
List id constant. |
| Fields inherited from class org.opencms.workplace.comparison.CmsPropertyComparisonList |
|---|
LIST_ACTION_VIEW1, LIST_ACTION_VIEW2, LIST_COLUMN_ICON, LIST_COLUMN_PROPERTY_NAME, LIST_COLUMN_TYPE, LIST_COLUMN_VERSION_1, LIST_COLUMN_VERSION_2, LIST_DEFACTION_VIEW, LIST_DETAIL_TYPE, LIST_IACTION_SHOW, LIST_ID, PARAM_COMPARE, TRIM_AT_LENGTH |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_ADMIN_PROJECT, PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
|
CmsAttributeComparisonList(CmsJspActionElement jsp)
Public constructor. |
|
CmsAttributeComparisonList(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
protected |
CmsAttributeComparisonList(java.lang.String listId,
CmsJspActionElement jsp)
Protected constructor. |
| Method Summary | |
|---|---|
void |
executeListSingleActions()
This method should handle every defined list single action, by comparing with the id
of the action to execute. |
protected java.util.List<CmsListItem> |
getListItems()
Should generate a list with the list items to be displayed. |
protected java.lang.String |
getViewVersionButtonHtml(CmsUUID structureId,
java.lang.String version)
Returns the html code to display a file version. |
protected static CmsFile |
readFile(CmsObject cms,
CmsUUID structureId,
java.lang.String version)
Returns either the historical file or the offline file, depending on the version number. |
protected void |
setIndependentActions(CmsListMetadata metadata)
Should add the independent actions to the given list metadata object. |
| Methods inherited from class org.opencms.workplace.comparison.CmsPropertyComparisonList |
|---|
executeListMultiActions, fillDetails, getParamId1, getParamId2, getParamVersion1, getParamVersion2, getResource1, getResource2, getResourceType, initWorkplaceRequestValues, setColumns, setMultiActions, setParamId1, setParamId2, setParamVersion1, setParamVersion2 |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
computeUpLevelLink, dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AC_LIST_ID
| Constructor Detail |
|---|
public CmsAttributeComparisonList(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsAttributeComparisonList(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response
protected CmsAttributeComparisonList(java.lang.String listId,
CmsJspActionElement jsp)
listId - the id of the specialized listjsp - an initialized JSP action element| Method Detail |
|---|
public void executeListSingleActions()
throws java.io.IOException,
javax.servlet.ServletException
A_CmsListDialogA_CmsListDialog.getParamListAction() with the id
of the action to execute.
executeListSingleActions in class CmsPropertyComparisonListjava.io.IOException - in case of errors when including a required sub-element
javax.servlet.ServletException - in case of errors when including a required sub-elementA_CmsListDialog.executeListSingleActions()protected java.util.List<CmsListItem> getListItems()
A_CmsListDialog
getListItems in class CmsPropertyComparisonListCmsListItemsA_CmsListDialog.getListItems()
protected java.lang.String getViewVersionButtonHtml(CmsUUID structureId,
java.lang.String version)
structureId - the structure id of the file to be displayedversion - the version of the file to be displayed
protected static CmsFile readFile(CmsObject cms,
CmsUUID structureId,
java.lang.String version)
throws CmsException
cms - the CmsObject to usestructureId - the structure id of the fileversion - the historical version number
CmsException - if something goes wrongprotected void setIndependentActions(CmsListMetadata metadata)
A_CmsListDialogThis method will be just executed once, the first time the constructor is called.
setIndependentActions in class CmsPropertyComparisonListmetadata - the list metadataA_CmsListDialog.setIndependentActions(org.opencms.workplace.list.CmsListMetadata)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||