Java Doc for A_CmsListDialog.java in  » Content-Management-System » opencms » org » opencms » workplace » list » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » opencms » org.opencms.workplace.list 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.opencms.workplace.tools.CmsToolDialog
   org.opencms.workplace.CmsDialog
      org.opencms.workplace.list.A_CmsListDialog

All known Subclasses:   org.opencms.workplace.tools.workplace.broadcast.CmsSessionsList,  org.opencms.workplace.tools.accounts.A_CmsRoleUsersList,  org.opencms.workplace.tools.accounts.A_CmsUserGroupsList,  org.opencms.workplace.commons.CmsUserSelectionList,  org.opencms.workplace.tools.accounts.A_CmsOrgUnitUsersList,  org.opencms.workplace.tools.accounts.CmsGroupDependenciesList,  org.opencms.workplace.tools.accounts.CmsGroupTransferList,  org.opencms.workplace.tools.projects.CmsProjectHistoryList,  org.opencms.workplace.tools.searchindex.CmsSearchIndexSourceControlList,  org.opencms.workplace.demos.list.CmsListDemo3,  org.opencms.workplace.commons.CmsDeletedResourcesList,  org.opencms.workplace.demos.list.CmsListDemo13,  org.opencms.workplace.tools.accounts.CmsUserDependenciesList,  org.opencms.workplace.demos.list.CmsListDemo10,  org.opencms.workplace.tools.projects.CmsProjectsList,  org.opencms.workplace.demos.list.CmsListDemo7,  org.opencms.workplace.list.A_CmsListExplorerDialog,  org.opencms.workplace.commons.A_CmsResourceCategoriesList,  org.opencms.workplace.tools.searchindex.CmsSearchIndexList,  org.opencms.workplace.demos.list.CmsListDemo16b,  org.opencms.workplace.tools.accounts.A_CmsRolesList,  org.opencms.workplace.commons.CmsHistoryList,  org.opencms.workplace.demos.list.CmsListDemo4,  org.opencms.workplace.commons.CmsPrincipalSelectionList,  org.opencms.workplace.tools.scheduler.CmsSchedulerList,  org.opencms.workplace.demos.list.CmsListDemo15b,  org.opencms.workplace.comparison.CmsPropertyComparisonList,  org.opencms.workplace.demos.list.CmsListDemo11,  org.opencms.workplace.tools.modules.CmsModulesList,  org.opencms.workplace.demos.list.CmsListDemo9a,  org.opencms.workplace.tools.accounts.A_CmsOrgUnitsList,  org.opencms.workplace.demos.list.CmsListDemo8,  org.opencms.workplace.commons.CmsGroupSelectionList,  org.opencms.workplace.tools.accounts.CmsUserTransferList,  org.opencms.workplace.tools.accounts.A_CmsGroupsList,  org.opencms.workplace.tools.modules.CmsExportpointsList,  org.opencms.workplace.demos.list.CmsListDemo14,  org.opencms.workplace.tools.publishqueue.CmsPublishQueuePersonalList,  org.opencms.workplace.tools.modules.CmsModulesDependenciesList,  org.opencms.workplace.tools.accounts.A_CmsUsersList,  org.opencms.workplace.tools.searchindex.A_CmsEmbeddedListDialog,  org.opencms.workplace.demos.list.CmsListDemo15a,  org.opencms.workplace.demos.list.CmsListDemo5,  org.opencms.workplace.tools.accounts.A_CmsGroupUsersList,  org.opencms.workplace.list.A_CmsListResourceTypeDialog,  org.opencms.workplace.comparison.CmsElementComparisonList,  org.opencms.workplace.demos.list.CmsListDemo1,  org.opencms.workplace.demos.list.CmsListDemo16a,  org.opencms.workplace.commons.CmsOrgUnitSelectionList,  org.opencms.workplace.tools.publishqueue.CmsPublishQueueList,  org.opencms.workplace.demos.list.CmsListDemo2,  org.opencms.workplace.demos.list.CmsListDemo6,  org.opencms.workplace.demos.list.CmsListDemo12,  org.opencms.workplace.tools.searchindex.CmsSearchFieldConfigurationList,  org.opencms.workplace.demos.list.CmsListDemo9,
A_CmsListDialog
abstract public class A_CmsListDialog extends CmsDialog (Code)
Provides a dialog with a list widget.


author:
   Michael Moossen
version:
   $Revision: 1.39 $
since:
   6.0.0



Field Summary
final public static  intACTION_LIST_INDEPENDENT_ACTION
     Value for the action: execute a list item independent action of the list.
final public static  intACTION_LIST_MULTI_ACTION
     Value for the action: execute an multi action of the list.
final public static  intACTION_LIST_SEARCH
     Value for the action: search the list.
final public static  intACTION_LIST_SELECT_PAGE
     Value for the action: go to a page.
final public static  intACTION_LIST_SINGLE_ACTION
     Value for the action: execute a single action of the list.
final public static  intACTION_LIST_SORT
     Value for the action: sort the list.
final public static  StringICON_ACTIVE
     Standard list button location.
final public static  StringICON_ADD
     Standard list button location.
final public static  StringICON_DELETE
     Standard list button location.
final public static  StringICON_DETAILS_HIDE
     Standard list button location.
final public static  StringICON_DETAILS_SHOW
     Standard list button location.
final public static  StringICON_DISABLED
     Standard list button location.
final public static  StringICON_INACTIVE
     Standard list button location.
final public static  StringICON_MINUS
     Standard list button location.
final public static  StringICON_MULTI_ACTIVATE
     Standard list button location.
final public static  StringICON_MULTI_ADD
     Standard list button location.
final public static  StringICON_MULTI_DEACTIVATE
     Standard list button location.
final public static  StringICON_MULTI_DELETE
     Standard list button location.
final public static  StringICON_MULTI_MINUS
     Standard list button location.
final public static  StringLIST_INDEPENDENT_ACTION
     Request parameter value for the list action: a list item independent action has been triggered.
final public static  StringLIST_MULTI_ACTION
     Request parameter value for the list action: a multi action has been triggered.
final public static  StringLIST_SEARCH
     Request parameter value for the list action: search/filter.
final public static  StringLIST_SELECT_PAGE
     Request parameter value for the list action: select a page.
final public static  StringLIST_SINGLE_ACTION
     Request parameter value for the list action: a single action has been triggered.
final public static  StringLIST_SORT
     Request parameter value for the list action: sort.
final public static  StringPARAM_FORMNAME
     Request parameter key for the requested page.
final public static  StringPARAM_LIST_ACTION
     Request parameter key for the list action.
final public static  StringPARAM_PAGE
     Request parameter key for the requested page.
final public static  StringPARAM_SEARCH_FILTER
     Request parameter key for search the filter.
final public static  StringPARAM_SEL_ITEMS
     Request parameter key for the selected item(s).
final public static  StringPARAM_SORT_COL
     Request parameter key for the column to sort the list.

Constructor Summary
protected  A_CmsListDialog(CmsJspActionElement jsp, String listId, CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId)
    

Method Summary
public  voidactionDialog()
    
protected  StringcustomHtmlEnd()
    
protected  StringcustomHtmlStart()
    
public  StringdefaultActionHtml()
    
protected  StringdefaultActionHtmlContent()
    
protected  StringdefaultActionHtmlEnd()
    
protected  StringdefaultActionHtmlStart()
    
public  voiddisplayDialog()
    
public  voiddisplayDialog(boolean writeLater)
    
public  voidexecuteDefaultActions()
    
public  voidexecuteListIndepActions()
    
abstract public  voidexecuteListMultiActions()
    
abstract public  voidexecuteListSingleActions()
    
protected  voidexecuteSearch()
    
protected  voidexecuteSelectPage()
    
protected  voidexecuteSort()
    
abstract protected  voidfillDetails(String detailId)
    
protected  voidfillList()
    
public  CmsHtmlListgetList()
    
final public  StringgetListId()
    
abstract protected  ListgetListItems()
    
public static  CmsHtmlListgetListObject(Class listDialog, CmsWorkplaceSettings settings)
    
protected  CmsListStategetListState()
    
public static  CmsListMetadatagetMetadata(String listDialogName)
    
protected synchronized  CmsListMetadatagetMetadata(String listDialogName, String listId)
    
public  StringgetParamFormName()
    
public  StringgetParamListAction()
    
public  StringgetParamPage()
    
public  StringgetParamSearchFilter()
    
public  StringgetParamSelItems()
    
public  StringgetParamSortCol()
    
public  CmsListItemgetSelectedItem()
    
public  ListgetSelectedItems()
    
protected  voidinitWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)
    
protected  voidinitializeDetail(String detailId)
    
public  booleanisActive()
    
protected synchronized  voidlistRecovery(String listId)
    
protected synchronized  voidlistSave()
    
public synchronized  voidrefreshList()
    
public  voidremoveList()
    
abstract protected  voidsetColumns(CmsListMetadata metadata)
    
abstract protected  voidsetIndependentActions(CmsListMetadata metadata)
    
public  voidsetList(CmsHtmlList list)
    
public  voidsetListObject(Class listDialog, CmsHtmlList listObject)
    
abstract protected  voidsetMultiActions(CmsListMetadata metadata)
    
public  voidsetParamFormName(String formName)
    
public  voidsetParamListAction(String listAction)
    
public  voidsetParamPage(String page)
    
public  voidsetParamSearchFilter(String searchFilter)
    
public  voidsetParamSelItems(String paramSelItems)
    
public  voidsetParamSortCol(String sortCol)
    
protected  voidsetSearchAction(CmsListMetadata metadata, String columnId)
    
protected  voidthrowListUnsupportedActionException()
    
protected  voidvalidateParamaters()
    
public  voidwriteDialog()
    

Field Detail
ACTION_LIST_INDEPENDENT_ACTION
final public static int ACTION_LIST_INDEPENDENT_ACTION(Code)
Value for the action: execute a list item independent action of the list.



ACTION_LIST_MULTI_ACTION
final public static int ACTION_LIST_MULTI_ACTION(Code)
Value for the action: execute an multi action of the list.



ACTION_LIST_SEARCH
final public static int ACTION_LIST_SEARCH(Code)
Value for the action: search the list.



ACTION_LIST_SELECT_PAGE
final public static int ACTION_LIST_SELECT_PAGE(Code)
Value for the action: go to a page.



ACTION_LIST_SINGLE_ACTION
final public static int ACTION_LIST_SINGLE_ACTION(Code)
Value for the action: execute a single action of the list.



ACTION_LIST_SORT
final public static int ACTION_LIST_SORT(Code)
Value for the action: sort the list.



ICON_ACTIVE
final public static String ICON_ACTIVE(Code)
Standard list button location.



ICON_ADD
final public static String ICON_ADD(Code)
Standard list button location.



ICON_DELETE
final public static String ICON_DELETE(Code)
Standard list button location.



ICON_DETAILS_HIDE
final public static String ICON_DETAILS_HIDE(Code)
Standard list button location.



ICON_DETAILS_SHOW
final public static String ICON_DETAILS_SHOW(Code)
Standard list button location.



ICON_DISABLED
final public static String ICON_DISABLED(Code)
Standard list button location.



ICON_INACTIVE
final public static String ICON_INACTIVE(Code)
Standard list button location.



ICON_MINUS
final public static String ICON_MINUS(Code)
Standard list button location.



ICON_MULTI_ACTIVATE
final public static String ICON_MULTI_ACTIVATE(Code)
Standard list button location.



ICON_MULTI_ADD
final public static String ICON_MULTI_ADD(Code)
Standard list button location.



ICON_MULTI_DEACTIVATE
final public static String ICON_MULTI_DEACTIVATE(Code)
Standard list button location.



ICON_MULTI_DELETE
final public static String ICON_MULTI_DELETE(Code)
Standard list button location.



ICON_MULTI_MINUS
final public static String ICON_MULTI_MINUS(Code)
Standard list button location.



LIST_INDEPENDENT_ACTION
final public static String LIST_INDEPENDENT_ACTION(Code)
Request parameter value for the list action: a list item independent action has been triggered.



LIST_MULTI_ACTION
final public static String LIST_MULTI_ACTION(Code)
Request parameter value for the list action: a multi action has been triggered.



LIST_SEARCH
final public static String LIST_SEARCH(Code)
Request parameter value for the list action: search/filter.



LIST_SELECT_PAGE
final public static String LIST_SELECT_PAGE(Code)
Request parameter value for the list action: select a page.



LIST_SINGLE_ACTION
final public static String LIST_SINGLE_ACTION(Code)
Request parameter value for the list action: a single action has been triggered.



LIST_SORT
final public static String LIST_SORT(Code)
Request parameter value for the list action: sort.



PARAM_FORMNAME
final public static String PARAM_FORMNAME(Code)
Request parameter key for the requested page.



PARAM_LIST_ACTION
final public static String PARAM_LIST_ACTION(Code)
Request parameter key for the list action.



PARAM_PAGE
final public static String PARAM_PAGE(Code)
Request parameter key for the requested page.



PARAM_SEARCH_FILTER
final public static String PARAM_SEARCH_FILTER(Code)
Request parameter key for search the filter.



PARAM_SEL_ITEMS
final public static String PARAM_SEL_ITEMS(Code)
Request parameter key for the selected item(s).



PARAM_SORT_COL
final public static String PARAM_SORT_COL(Code)
Request parameter key for the column to sort the list.




Constructor Detail
A_CmsListDialog
protected A_CmsListDialog(CmsJspActionElement jsp, String listId, CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId)(Code)
Public constructor.


Parameters:
  jsp - an initialized JSP action element
Parameters:
  listId - the id of the displayed list
Parameters:
  listName - the name of the list
Parameters:
  sortedColId - the a priory sorted column
Parameters:
  sortOrder - the order of the sorted column
Parameters:
  searchableColId - the column to search into





Method Detail
actionDialog
public void actionDialog() throws JspException, ServletException, IOException(Code)
Performs the dialog actions depending on the initialized action.


throws:
  JspException - if dialog actions fail
throws:
  IOException - in case of errors forwarding to the required result page
throws:
  ServletException - in case of errors forwarding to the required result page




customHtmlEnd
protected String customHtmlEnd()(Code)
Can be overwritten to add some code after the list.

custom html code




customHtmlStart
protected String customHtmlStart()(Code)
Can be overwritten to add some code before the list.

custom html code




defaultActionHtml
public String defaultActionHtml()(Code)
Generates the dialog starting html code.

html code




defaultActionHtmlContent
protected String defaultActionHtmlContent()(Code)
Returns the html code for the default action content.

html code




defaultActionHtmlEnd
protected String defaultActionHtmlEnd()(Code)
Generates the dialog ending html code.

html code




defaultActionHtmlStart
protected String defaultActionHtmlStart()(Code)
Generates the dialog starting html code.

html code




displayDialog
public void displayDialog() throws JspException, IOException, ServletException(Code)
Performs the dialog actions depending on the initialized action and displays the dialog form.


throws:
  JspException - if dialog actions fail
throws:
  IOException - if writing to the JSP out fails, or in case of errors forwarding to the required result page
throws:
  ServletException - in case of errors forwarding to the required result page




displayDialog
public void displayDialog(boolean writeLater) throws JspException, IOException, ServletException(Code)
Performs the dialog actions depending on the initialized action and displays the dialog form if needed.


Parameters:
  writeLater - if true no output is written, you have to call manually the A_CmsListDialog.defaultActionHtml() method.
throws:
  JspException - if dialog actions fail
throws:
  IOException - if writing to the JSP out fails, or in case of errors forwarding to the required result page
throws:
  ServletException - in case of errors forwarding to the required result page




executeDefaultActions
public void executeDefaultActions()(Code)
This method execute the default actions for searching, sorting and paging.




executeListIndepActions
public void executeListIndepActions()(Code)
This method should handle the default list independent actions, by comparing A_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();.




executeListMultiActions
abstract public void executeListMultiActions() throws IOException, ServletException, CmsRuntimeException(Code)
This method should handle every defined list multi action, by comparing A_CmsListDialog.getParamListAction() with the id of the action to execute.


throws:
  IOException - in case of errors when including a required sub-element
throws:
  ServletException - in case of errors when including a required sub-element
throws:
  CmsRuntimeException - to signal that an action is not supported




executeListSingleActions
abstract public void executeListSingleActions() throws IOException, ServletException, CmsRuntimeException(Code)
This method should handle every defined list single action, by comparing A_CmsListDialog.getParamListAction() with the id of the action to execute.


throws:
  IOException - in case of errors when including a required sub-element
throws:
  ServletException - in case of errors when including a required sub-element
throws:
  CmsRuntimeException - to signal that an action is not supported




executeSearch
protected void executeSearch()(Code)
Filter a list, given the action is set to LIST_SEARCH and the filter text is set in the PARAM_SEARCH_FILTER parameter.




executeSelectPage
protected void executeSelectPage()(Code)
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.




executeSort
protected void executeSort()(Code)
Sort the list, given the action is set to LIST_SORT and the sort column is set in the PARAM_SORT_COL parameter.




fillDetails
abstract protected void fillDetails(String detailId)(Code)
Lazy initialization for detail data.

Should fill the given detail column for every list item in CmsHtmlList.getContent Should not throw any kind of exception.


Parameters:
  detailId - the id of the detail to initialize




fillList
protected void fillList()(Code)
Calls the A_CmsListDialog.getListItems method and catches any exception.




getList
public CmsHtmlList getList()(Code)
Returns the list.

the list




getListId
final public String getListId()(Code)
Returns the Id of the list.

the list Id




getListItems
abstract protected List getListItems() throws CmsException(Code)
Should generate a list with the list items to be displayed.

a list of CmsListItems
throws:
  CmsException - if something goes wrong




getListObject
public static CmsHtmlList getListObject(Class listDialog, CmsWorkplaceSettings settings)(Code)
Returns the list object for the given list dialog, or null if no list object has been set.


Parameters:
  listDialog - the list dialog class
Parameters:
  settings - the wp settings for accessing the session the list object for this list dialog, or null




getListState
protected CmsListState getListState()(Code)
Returns the current list state.

the current list state




getMetadata
public static CmsListMetadata getMetadata(String listDialogName)(Code)
Returns the list metadata object for the given dialog.


Parameters:
  listDialogName - the dialog class name the list metadata object




getMetadata
protected synchronized CmsListMetadata getMetadata(String listDialogName, String listId)(Code)
Should generate the metadata definition for the list, and return the corresponding CmsListMetadata object.


Parameters:
  listDialogName - the name of the class generating the list
Parameters:
  listId - the id of the list The metadata for the given list




getParamFormName
public String getParamFormName()(Code)
Returns the form name.

the form name




getParamListAction
public String getParamListAction()(Code)
Returns the List Action.

the List Action




getParamPage
public String getParamPage()(Code)
Returns the current Page.

the current Page




getParamSearchFilter
public String getParamSearchFilter()(Code)
Returns the Search Filter.

the Search Filter




getParamSelItems
public String getParamSelItems()(Code)
Returns the selected Items.

the selected Items




getParamSortCol
public String getParamSortCol()(Code)
Returns the sorted Column.

the sorted Column




getSelectedItem
public CmsListItem getSelectedItem()(Code)
Returns the current selected item.

the current selected item




getSelectedItems
public List getSelectedItems()(Code)
Returns a list of current selected items.

a list of current selected items




initWorkplaceRequestValues
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)

See Also:   org.opencms.workplace.CmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettingsjavax.servlet.http.HttpServletRequest)



initializeDetail
protected void initializeDetail(String detailId)(Code)
Lazy details initialization.


Parameters:
  detailId - the id of the detail column




isActive
public boolean isActive()(Code)
Returns the activation flag.

Useful for dialogs with several lists.

Is if the original formname parameter is equals to ${listId}-form.

the activation flag




listRecovery
protected synchronized void listRecovery(String listId)(Code)
Recover the last list instance that is read from the request attributes.

This is required for keep the whole list in memory while you browse a page.


Parameters:
  listId - the id of the expected list




listSave
protected synchronized void listSave()(Code)
Save the state of the list in the session.




refreshList
public synchronized void refreshList()(Code)
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.




removeList
public void removeList()(Code)
Removes the list from the workplace settings.

Next time the list is displayed the list will be reloaded.




setColumns
abstract protected void setColumns(CmsListMetadata metadata)(Code)
Should create the columns and add them to the given list metadata object.

This method will be just executed once, the first time the constructor is called.


Parameters:
  metadata - the list metadata




setIndependentActions
abstract protected void setIndependentActions(CmsListMetadata metadata)(Code)
Should add the independent actions to the given list metadata object.

This method will be just executed once, the first time the constructor is called.


Parameters:
  metadata - the list metadata




setList
public void setList(CmsHtmlList list)(Code)
Sets the list.


Parameters:
  list - the list to set




setListObject
public void setListObject(Class listDialog, CmsHtmlList listObject)(Code)
Stores the given object as "list object" for the given list dialog in the current users session.


Parameters:
  listDialog - the list dialog class
Parameters:
  listObject - the list to store




setMultiActions
abstract protected void setMultiActions(CmsListMetadata metadata)(Code)
Should add the multi actions to the given list metadata object.

This method will be just executed once, the first time the constructor is called.


Parameters:
  metadata - the list metadata




setParamFormName
public void setParamFormName(String formName)(Code)
Sets the form name.


Parameters:
  formName - the form name to set




setParamListAction
public void setParamListAction(String listAction)(Code)
Sets the List Action.


Parameters:
  listAction - the list Action to set




setParamPage
public void setParamPage(String page)(Code)
Sets the current Page.


Parameters:
  page - the current Page to set




setParamSearchFilter
public void setParamSearchFilter(String searchFilter)(Code)
Sets the Search Filter.


Parameters:
  searchFilter - the Search Filter to set




setParamSelItems
public void setParamSelItems(String paramSelItems)(Code)
Sets the selected Items.


Parameters:
  paramSelItems - the selected Items to set




setParamSortCol
public void setParamSortCol(String sortCol)(Code)
Sets the sorted Column.


Parameters:
  sortCol - the sorted Column to set




setSearchAction
protected void setSearchAction(CmsListMetadata metadata, String columnId)(Code)
Creates the default search action.

Can be overridden for more sophisticated search.


Parameters:
  metadata - the metadata of the list to do searchable
Parameters:
  columnId - the if of the column to search into




throwListUnsupportedActionException
protected void throwListUnsupportedActionException() throws CmsRuntimeException(Code)
A convenient method to throw a list unsupported action runtime exception.

Should be triggered if your list implementation does not support the A_CmsListDialog.getParamListAction() action.


throws:
  CmsRuntimeException - always to signal that this operation is not supported




validateParamaters
protected void validateParamaters() throws Exception(Code)
Should be overridden for parameter validation.


throws:
  Exception - if the parameters are not valid




writeDialog
public void writeDialog() throws IOException(Code)
Writes the dialog html code, only if the A_CmsListDialog.ACTION_DEFAULT is set.


throws:
  IOException - if writing to the JSP out fails, or in case of errros forwarding to the required result page




Fields inherited from org.opencms.workplace.CmsDialog
final public static int ACTION_CANCEL(Code)(Java Doc)
final public static int ACTION_CLOSEPOPUP(Code)(Java Doc)
final public static int ACTION_CLOSEPOPUP_SAVE(Code)(Java Doc)
final public static int ACTION_CONFIRMED(Code)(Java Doc)
final public static int ACTION_CONTINUE(Code)(Java Doc)
final public static int ACTION_DEFAULT(Code)(Java Doc)
final public static int ACTION_LOCKS_CONFIRMED(Code)(Java Doc)
final public static int ACTION_OK(Code)(Java Doc)
final public static int ACTION_REPORT_BEGIN(Code)(Java Doc)
final public static int ACTION_REPORT_END(Code)(Java Doc)
final public static int ACTION_REPORT_UPDATE(Code)(Java Doc)
final public static int ACTION_SET(Code)(Java Doc)
final public static int ACTION_WAIT(Code)(Java Doc)
final protected static String ATTRIBUTE_THROWABLE(Code)(Java Doc)
final public static int BUTTON_ADVANCED(Code)(Java Doc)
final public static int BUTTON_BACK(Code)(Java Doc)
final public static int BUTTON_CANCEL(Code)(Java Doc)
final public static int BUTTON_CLOSE(Code)(Java Doc)
final public static int BUTTON_CONTINUE(Code)(Java Doc)
final public static int BUTTON_DETAILS(Code)(Java Doc)
final public static int BUTTON_DISCARD(Code)(Java Doc)
final public static int BUTTON_EDIT(Code)(Java Doc)
final public static int BUTTON_OK(Code)(Java Doc)
final public static int BUTTON_OK_NO_SUBMIT(Code)(Java Doc)
final public static int BUTTON_SET(Code)(Java Doc)
final public static String DIALOG_BACK(Code)(Java Doc)
final public static String DIALOG_CANCEL(Code)(Java Doc)
final public static String DIALOG_CONFIRMED(Code)(Java Doc)
final public static String DIALOG_CONTINUE(Code)(Java Doc)
final public static String DIALOG_INITIAL(Code)(Java Doc)
final public static String DIALOG_LOCKS_CONFIRMED(Code)(Java Doc)
final public static String DIALOG_OK(Code)(Java Doc)
final public static String DIALOG_SET(Code)(Java Doc)
final public static String DIALOG_WAIT(Code)(Java Doc)
final public static String PARAM_ACTION(Code)(Java Doc)
final public static String PARAM_CLOSELINK(Code)(Java Doc)
final public static String PARAM_DIALOGTYPE(Code)(Java Doc)
final public static String PARAM_ERRORSTACK(Code)(Java Doc)
final public static String PARAM_FILE(Code)(Java Doc)
final public static String PARAM_FRAMENAME(Code)(Java Doc)
final public static String PARAM_ISPOPUP(Code)(Java Doc)
final public static String PARAM_LOCK(Code)(Java Doc)
final public static String PARAM_MESSAGE(Code)(Java Doc)
final public static String PARAM_ORIGINALPARAMS(Code)(Java Doc)
final public static String PARAM_PREACTIONDONE(Code)(Java Doc)
final public static String PARAM_REDIRECT(Code)(Java Doc)
final public static String PARAM_RESOURCE(Code)(Java Doc)
final public static String PARAM_TARGET(Code)(Java Doc)
final public static String PARAM_THREAD(Code)(Java Doc)
final public static String PARAM_THREAD_HASNEXT(Code)(Java Doc)
final public static String PARAM_TITLE(Code)(Java Doc)
final public static String REPORT_BEGIN(Code)(Java Doc)
final public static String REPORT_END(Code)(Java Doc)
final public static String REPORT_UPDATE(Code)(Java Doc)

Methods inherited from org.opencms.workplace.CmsDialog
public void actionCloseDialog() throws JspException(Code)(Java Doc)
protected String appendDelimiter(String attribute)(Code)(Java Doc)
public String buildAjaxResultContainer(String title)(Code)(Java Doc)
protected String buildAjaxWaitMessage()(Code)(Java Doc)
public String buildLockAdditionalOptions()(Code)(Java Doc)
public String buildLockConfirmationMessageJS()(Code)(Java Doc)
public String buildLockDialog() throws CmsException(Code)(Java Doc)
public String buildLockDialog(CmsLockFilter nonBlockingFilter, CmsLockFilter blockingFilter, int hiddenTimeout, boolean includeRelated) throws CmsException(Code)(Java Doc)
public String buildLockHeaderBox() throws CmsException(Code)(Java Doc)
protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder)(Code)(Java Doc)
protected boolean checkResourcePermissions(CmsPermissionSet required, boolean neededForFolder, CmsMessageContainer errorMessage)(Code)(Java Doc)
protected String computeCurrentFolder()(Code)(Java Doc)
public String dialog(int segment, String attributes)(Code)(Java Doc)
public String dialogBlock(int segment, String headline, boolean error)(Code)(Java Doc)
public String dialogBlockEnd()(Code)(Java Doc)
public String dialogBlockStart(String headline)(Code)(Java Doc)
public String dialogButtonRow(int segment)(Code)(Java Doc)
public String dialogButtonRowEnd()(Code)(Java Doc)
public String dialogButtonRowStart()(Code)(Java Doc)
public String dialogButtons(int[] buttons, String[] attributes)(Code)(Java Doc)
public String dialogButtonsClose()(Code)(Java Doc)
public String dialogButtonsClose(String closeAttribute)(Code)(Java Doc)
public String dialogButtonsCloseDetails(String closeAttribute, String detailsAttribute)(Code)(Java Doc)
protected void dialogButtonsHtml(StringBuffer result, int button, String attribute)(Code)(Java Doc)
public String dialogButtonsOk()(Code)(Java Doc)
public String dialogButtonsOk(String okAttribute)(Code)(Java Doc)
public String dialogButtonsOkCancel()(Code)(Java Doc)
public String dialogButtonsOkCancel(String okAttributes, String cancelAttributes)(Code)(Java Doc)
public String dialogButtonsOkCancelAdvanced(String okAttributes, String cancelAttributes, String advancedAttributes)(Code)(Java Doc)
public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes)(Code)(Java Doc)
public String dialogContent(int segment, String title)(Code)(Java Doc)
public String dialogContentEnd()(Code)(Java Doc)
public String dialogContentStart(String title)(Code)(Java Doc)
public String dialogEnd()(Code)(Java Doc)
public String dialogHead(String title)(Code)(Java Doc)
public String dialogHorizontalSpacer(int width)(Code)(Java Doc)
public String dialogLockButtons()(Code)(Java Doc)
public String dialogRow(int segment)(Code)(Java Doc)
public String dialogRowEnd()(Code)(Java Doc)
public String dialogRowStart()(Code)(Java Doc)
public String dialogScriptSubmit()(Code)(Java Doc)
public String dialogSeparator()(Code)(Java Doc)
public String dialogSpacer()(Code)(Java Doc)
public String dialogStart()(Code)(Java Doc)
public String dialogStart(String attributes)(Code)(Java Doc)
public String dialogSubheadline(String headline)(Code)(Java Doc)
public String dialogToggleStart(String headline, String id, boolean show)(Code)(Java Doc)
public String dialogWhiteBox(int segment)(Code)(Java Doc)
public String dialogWhiteBoxEnd()(Code)(Java Doc)
public String dialogWhiteBoxStart()(Code)(Java Doc)
public int getAction()(Code)(Java Doc)
protected String getAdministrationBackLink()(Code)(Java Doc)
public String getCancelAction()(Code)(Java Doc)
public String getDialogRealUri()(Code)(Java Doc)
public String getDialogUri()(Code)(Java Doc)
public String getOnlineHelpUriCustom()(Code)(Java Doc)
public String getParamAction()(Code)(Java Doc)
public String getParamCloseLink()(Code)(Java Doc)
public String getParamDialogtype()(Code)(Java Doc)
public String getParamFramename()(Code)(Java Doc)
public String getParamIsPopup()(Code)(Java Doc)
public String getParamMessage()(Code)(Java Doc)
public String getParamOriginalParams()(Code)(Java Doc)
public String getParamPreActionDone()(Code)(Java Doc)
public String getParamRedirect()(Code)(Java Doc)
public String getParamResource()(Code)(Java Doc)
public String getParamTitle()(Code)(Java Doc)
public String getState() throws CmsException(Code)(Java Doc)
public boolean hasCorrectLockstate()(Code)(Java Doc)
public boolean hasSiblings()(Code)(Java Doc)
public String htmlStart()(Code)(Java Doc)
public String htmlStart(String helpUrl)(Code)(Java Doc)
public String htmlStart(String helpUrl, String title)(Code)(Java Doc)
public String htmlStartStyle(String title, String stylesheet)(Code)(Java Doc)
public void includeErrorpage(CmsWorkplace wp, Throwable t) throws JspException(Code)(Java Doc)
public static CmsDialog initCmsDialog(PageContext context, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc)
public boolean isPopup()(Code)(Java Doc)
public boolean isPreEditor()(Code)(Java Doc)
public String pageHtml(int segment, String helpUrl)(Code)(Java Doc)
public String pageHtml(int segment, String helpUrl, String title)(Code)(Java Doc)
protected void setAction(int value)(Code)(Java Doc)
public void setOnlineHelpUriCustom(String uri)(Code)(Java Doc)
public void setParamAction(String value)(Code)(Java Doc)
public void setParamCloseLink(String value)(Code)(Java Doc)
public void setParamDialogtype(String value)(Code)(Java Doc)
public void setParamFramename(String value)(Code)(Java Doc)
public void setParamIsPopup(String value)(Code)(Java Doc)
public void setParamMessage(String value)(Code)(Java Doc)
public void setParamOriginalParams(String paramOriginalParams)(Code)(Java Doc)
public void setParamPreActionDone(String paramPreActionDone)(Code)(Java Doc)
public void setParamRedirect(String redirect)(Code)(Java Doc)
public void setParamResource(String value)(Code)(Java Doc)
public void setParamTitle(String value)(Code)(Java Doc)

Fields inherited from org.opencms.workplace.tools.CmsToolDialog
final public static String PARAM_BASE(Code)(Java Doc)
final public static String PARAM_PATH(Code)(Java Doc)
final public static String PARAM_ROOT(Code)(Java Doc)
final public static String PARAM_STYLE(Code)(Java Doc)
final public static String STYLE_NEW(Code)(Java Doc)

Methods inherited from org.opencms.workplace.tools.CmsToolDialog
public String dialogScriptSubmit()(Code)(Java Doc)
public String dialogTitle()(Code)(Java Doc)
public CmsTool getAdminTool()(Code)(Java Doc)
public String getCurrentToolPath()(Code)(Java Doc)
public String getParamBase()(Code)(Java Doc)
public String getParamPath()(Code)(Java Doc)
public String getParamRoot()(Code)(Java Doc)
public String getParamStyle()(Code)(Java Doc)
public String getParentPath()(Code)(Java Doc)
public CmsToolManager getToolManager()(Code)(Java Doc)
public String iconsBlockArea(int segment, String headline)(Code)(Java Doc)
public String iconsBlockAreaEnd()(Code)(Java Doc)
public String iconsBlockAreaStart(String headline)(Code)(Java Doc)
public Map initAdminTool() throws CmsRoleViolationException(Code)(Java Doc)
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)(Java Doc)
public String pageBody(int segment, String className, String parameters)(Code)(Java Doc)
public String pageHtmlStyle(int segment, String title, String stylesheet)(Code)(Java Doc)
public void setParamBase(String paramBase)(Code)(Java Doc)
public void setParamPath(String paramPath)(Code)(Java Doc)
public void setParamRoot(String paramRoot)(Code)(Java Doc)
public void setParamStyle(String paramStyle)(Code)(Java Doc)
public boolean useNewStyle()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.