|
||||||||||
| 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.list.A_CmsListExplorerDialog
public abstract class A_CmsListExplorerDialog
Provides a list dialog for resources.
| Field Summary | |
|---|---|
static String |
LIST_ACTION_LOCKICON
List action id constant. |
static String |
LIST_ACTION_PROJSTATEICON
List action id constant. |
static String |
LIST_ACTION_TYPEICON
List action id constant. |
static String |
LIST_COLUMN_DATECREATE
List column id constant. |
static String |
LIST_COLUMN_DATEEXP
List column id constant. |
static String |
LIST_COLUMN_DATELASTMOD
List column id constant. |
static String |
LIST_COLUMN_DATEREL
List column id constant. |
static String |
LIST_COLUMN_LOCKEDBY
List column id constant. |
static String |
LIST_COLUMN_LOCKICON
List column id constant. |
static String |
LIST_COLUMN_NAME
List column id constant. |
static String |
LIST_COLUMN_PERMISSIONS
List column id constant. |
static String |
LIST_COLUMN_PROJSTATEICON
List column id constant. |
static String |
LIST_COLUMN_SIZE
List column id constant. |
static String |
LIST_COLUMN_STATE
List column id constant. |
static String |
LIST_COLUMN_TITLE
List column id constant. |
static String |
LIST_COLUMN_TYPE
List column id constant. |
static String |
LIST_COLUMN_TYPEICON
List column id constant. |
static String |
LIST_COLUMN_USERCREATE
List column id constant. |
static String |
LIST_COLUMN_USERLASTMOD
List column id constant. |
static String |
LIST_DEFACTION_OPEN
List default action id constant. |
static String |
PATH_EXPLORER_LIST
Explorer list JSP path. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
protected |
A_CmsListExplorerDialog(CmsJspActionElement jsp,
String listId,
CmsMessageContainer listName)
Creates a new explorer list ordered and searchable by name. |
protected |
A_CmsListExplorerDialog(CmsJspActionElement jsp,
String listId,
CmsMessageContainer listName,
String sortedColId,
CmsListOrderEnum sortOrder,
String searchableColId)
Default constructor. |
| Method Summary | |
|---|---|
protected void |
applyColumnVisibilities()
Applies the column visibilities. |
protected String |
defaultActionHtmlStart()
Generates the dialog starting html code. |
void |
executeListIndepActions()
This method should handle the default list independent actions, by comparing with the id
of the action to execute. |
protected void |
executeSelectPage()
Select a page, given the action is set to LIST_SELECT_PAGE and
the page to go to is set in the PARAM_PAGE parameter. |
CmsHtmlList |
getList()
Returns the list. |
protected List |
getListItemsFromResources(List resources)
Returns a list of list items from a list of resources. |
protected CmsProject |
getProject()
Returns the project to use as reference. |
CmsResource |
getResource(CmsListItem item)
Returns the resource for the given item. |
protected List |
getResources()
Returns the list of resources to show in the explorer view. |
CmsResourceUtil |
getResourceUtil()
Returns an appropiate initialized resource util object. |
CmsResourceUtil |
getResourceUtil(CmsListItem item)
Returns an appropiate initialized resource util object for the given item. |
protected boolean |
isColumnVisible(int colFlag)
Returns the visibility flag for a given column. |
void |
refreshList()
This method re-read the rows of the list, the user should call this method after executing an action that add or remove rows to the list. |
protected void |
setColumns(CmsListMetadata metadata)
Adds the standard explorer view columns to the list. |
protected void |
setColumnVisibilities()
Sets the default column visibility flags from the user preferences. |
protected void |
setIndependentActions(CmsListMetadata metadata)
Should add the independent actions to the given list metadata object. |
| 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 |
| Field Detail |
|---|
public static final String LIST_ACTION_LOCKICON
public static final String LIST_ACTION_PROJSTATEICON
public static final String LIST_ACTION_TYPEICON
public static final String LIST_COLUMN_DATECREATE
public static final String LIST_COLUMN_DATEEXP
public static final String LIST_COLUMN_DATELASTMOD
public static final String LIST_COLUMN_DATEREL
public static final String LIST_COLUMN_LOCKEDBY
public static final String LIST_COLUMN_LOCKICON
public static final String LIST_COLUMN_NAME
public static final String LIST_COLUMN_PERMISSIONS
public static final String LIST_COLUMN_PROJSTATEICON
public static final String LIST_COLUMN_SIZE
public static final String LIST_COLUMN_STATE
public static final String LIST_COLUMN_TITLE
public static final String LIST_COLUMN_TYPE
public static final String LIST_COLUMN_TYPEICON
public static final String LIST_COLUMN_USERCREATE
public static final String LIST_COLUMN_USERLASTMOD
public static final String LIST_DEFACTION_OPEN
public static final String PATH_EXPLORER_LIST
| Constructor Detail |
|---|
protected A_CmsListExplorerDialog(CmsJspActionElement jsp,
String listId,
CmsMessageContainer listName)
jsp - an initialized JSP action elementlistId - the id of the displayed listlistName - the name of the list
protected A_CmsListExplorerDialog(CmsJspActionElement jsp,
String listId,
CmsMessageContainer listName,
String sortedColId,
CmsListOrderEnum sortOrder,
String searchableColId)
jsp - an initialized JSP action elementlistId - the id of the displayed listlistName - the name of the listsortedColId - the a priory sorted columnsortOrder - the order of the sorted columnsearchableColId - the column to search into| Method Detail |
|---|
public void executeListIndepActions()
A_CmsListDialogA_CmsListDialog.getParamListAction() with the id
of the action to execute.
if you want to handle additional independent actions, override this method,
handling your actions and FINALLY calling super.executeListIndepActions();.
executeListIndepActions in class A_CmsListDialogA_CmsListDialog.executeListIndepActions()public CmsHtmlList getList()
A_CmsListDialog
getList in class A_CmsListDialogA_CmsListDialog.getList()public CmsResource getResource(CmsListItem item)
item - the item
public CmsResourceUtil getResourceUtil()
public CmsResourceUtil getResourceUtil(CmsListItem item)
item - the item representing the resource
public void refreshList()
A_CmsListDialog
refreshList in class A_CmsListDialogA_CmsListDialog.refreshList()protected void applyColumnVisibilities()
protected String defaultActionHtmlStart()
A_CmsListDialog
defaultActionHtmlStart in class A_CmsListDialogA_CmsListDialog.defaultActionHtmlStart()protected void executeSelectPage()
A_CmsListDialogLIST_SELECT_PAGE and
the page to go to is set in the PARAM_PAGE parameter.
executeSelectPage in class A_CmsListDialogA_CmsListDialog.executeSelectPage()protected List getListItemsFromResources(List resources)
resources - a list of CmsResource objects
CmsListItem objectsprotected CmsProject getProject()
protected List getResources()
CmsResource objectsprotected boolean isColumnVisible(int colFlag)
The default behaviour is to show the same columns as the explorer view, but this can be overwritten.
colFlag - some CmsUserSettings.FILELIST_TITLE like value
indentifying the column to get the visibility flag for
protected void setColumns(CmsListMetadata metadata)
setColumns in class A_CmsListDialogmetadata - the list metadataA_CmsListDialog.setColumns(org.opencms.workplace.list.CmsListMetadata)protected void setColumnVisibilities()
protected void setIndependentActions(CmsListMetadata metadata)
A_CmsListDialogThis method will be just executed once, the first time the constructor is called.
setIndependentActions in class A_CmsListDialogmetadata - 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 | |||||||||