Java Doc for CmsHtmlList.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) 


java.lang.Object
   org.opencms.workplace.list.CmsHtmlList

CmsHtmlList
public class CmsHtmlList (Code)
The main class of the html list widget.


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



Field Summary
final public static  StringICON_LEFT
     Standard list button location.
final public static  StringICON_RIGHT
     Standard list button location.
final public static  StringITEM_SEPARATOR
     Constant for item separator char used for coding/encoding multiselection.
final public static  StringNO_SELECTION_HELP_VAR
     Var name for error message if no item has been selected.
final public static  StringNO_SELECTION_MATCH_HELP_VAR
     Var name for error message if number of selected items does not match.

Constructor Summary
public  CmsHtmlList(String id, CmsMessageContainer name, CmsListMetadata metadata)
    

Method Summary
public  voidclear()
    
public  ListgetAllContent()
    
public  ListgetContent()
    
public  intgetCurrentPage()
    
public  ListgetCurrentPageItems()
    
public  CmsListOrderEnumgetCurrentSortOrder()
    
public  StringgetId()
    
public  CmsListItemgetItem(String id)
    
public  intgetMaxItemsPerPage()
    
public  CmsListMetadatagetMetadata()
    
public  CmsMessageContainergetName()
    
public  intgetNumberOfPages()
    
public  StringgetSearchFilter()
    
public  intgetSize()
    
public  StringgetSortedColumn()
    
public  CmsListStategetState()
    
public  intgetTotalNumberOfPages()
    
public  intgetTotalSize()
    
public  A_CmsListDialoggetWp()
    
public static  StringhtmlPageSelector(int nrPages, int itemsPage, int nrItems, int curPage, Locale locale)
    
public  booleanisBoxed()
    
public  booleanisPrintable()
    
public  booleanisShowTitle()
    
public  StringlistCsv()
    
public synchronized  StringlistHtml()
    
public  StringlistJs()
    
public  CmsListItemnewItem(String id)
    
public  StringprintableHtml()
    
public  voidsetBoxed(boolean isBoxed)
    
public  voidsetContent(Collection listItems)
    
public  voidsetCurrentPage(int currentPage)
    
public  voidsetMaxItemsPerPage(int maxItemsPerPage)
    
 voidsetMetadata(CmsListMetadata metadata)
    
public  voidsetName(CmsMessageContainer name)
    
public  voidsetSearchFilter(String searchFilter)
    
public  voidsetShowTitle(boolean showTitle)
    
public  voidsetSize(int size)
    
public  voidsetSortedColumn(String sortedColumn)
    
public  voidsetState(CmsListState listState)
    
public  voidsetTotalSize(int totalSize)
    
public  voidsetWp(A_CmsListDialog wp)
    

Field Detail
ICON_LEFT
final public static String ICON_LEFT(Code)
Standard list button location.



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



ITEM_SEPARATOR
final public static String ITEM_SEPARATOR(Code)
Constant for item separator char used for coding/encoding multiselection.



NO_SELECTION_HELP_VAR
final public static String NO_SELECTION_HELP_VAR(Code)
Var name for error message if no item has been selected.



NO_SELECTION_MATCH_HELP_VAR
final public static String NO_SELECTION_MATCH_HELP_VAR(Code)
Var name for error message if number of selected items does not match.




Constructor Detail
CmsHtmlList
public CmsHtmlList(String id, CmsMessageContainer name, CmsListMetadata metadata)(Code)
Default Constructor.


Parameters:
  id - unique id of the list, is used as name for controls and js functions and vars
Parameters:
  name - the display name
Parameters:
  metadata - the list's metadata





Method Detail
clear
public void clear()(Code)
This method resets the content of the list (no the metadata).




getAllContent
public List getAllContent()(Code)
Returns all list items in the list, may be not visible and sorted.

all list items




getContent
public List getContent()(Code)
Returns the filtered list of list items.

Equals to CmsHtmlList.getAllContent() if no filter is set.

the filtered list of list items




getCurrentPage
public int getCurrentPage()(Code)
returns the number of the current page.

the number of the current page




getCurrentPageItems
public List getCurrentPageItems()(Code)
Returns all items of the current page.

all items of the current page, a list of CmsListItem objects




getCurrentSortOrder
public CmsListOrderEnum getCurrentSortOrder()(Code)
Returns the current used sort order.

the current used sort order




getId
public String getId()(Code)
Returns the id.

the id




getItem
public CmsListItem getItem(String id)(Code)
This method returns the item identified by the parameter id.

Only current visible item can be retrieved using this method.


Parameters:
  id - the id of the item to look for the requested item or null if not found




getMaxItemsPerPage
public int getMaxItemsPerPage()(Code)
Returns the maximum number of items per page.

the maximum number of items per page




getMetadata
public CmsListMetadata getMetadata()(Code)
Returns the metadata.

the metadata




getName
public CmsMessageContainer getName()(Code)
Returns the name of the list.

the list's name




getNumberOfPages
public int getNumberOfPages()(Code)
Returns the filtered number of pages.

Equals to CmsHtmlList.getTotalNumberOfPages() if no filter is set.

the filtered of pages




getSearchFilter
public String getSearchFilter()(Code)
Returns the search filter.

the search filter




getSize
public int getSize()(Code)
Return the filtered number of items.

Equals to CmsHtmlList.getTotalSize() if no filter is set.

the filtered number of items




getSortedColumn
public String getSortedColumn()(Code)
Returns the sorted column's name.

the sorted column's name




getState
public CmsListState getState()(Code)
Returns a filled list state.

the state of the list




getTotalNumberOfPages
public int getTotalNumberOfPages()(Code)
Returns the total number of pages.

the total number of pages




getTotalSize
public int getTotalSize()(Code)
Return the total number of items.

the total number of items




getWp
public A_CmsListDialog getWp()(Code)
Returns the workplace dialog object.

the workplace dialog object




htmlPageSelector
public static String htmlPageSelector(int nrPages, int itemsPage, int nrItems, int curPage, Locale locale)(Code)
Generates the list of html option elements for a html select control to select a page of a list.


Parameters:
  nrPages - the total number of pages
Parameters:
  itemsPage - the maximum number of items per page
Parameters:
  nrItems - the total number of items
Parameters:
  curPage - the current page
Parameters:
  locale - the locale html code




isBoxed
public boolean isBoxed()(Code)
Returns the isBoxed flag.

If this flag is set the list will be surrounded by a box.

the isBoxed flag




isPrintable
public boolean isPrintable()(Code)
Returns the printable flag.

the printable flag




isShowTitle
public boolean isShowTitle()(Code)
Returns if the list title is shown.

true if the list title is shown, otherwise false




listCsv
public String listCsv()(Code)
Generates the csv output for the list.

csv output




listHtml
public synchronized String listHtml()(Code)
Generates the html code for the list.

html code




listJs
public String listJs()(Code)
Generate the need js code for the list.

js code




newItem
public CmsListItem newItem(String id)(Code)
Returns a new list item for this list.


Parameters:
  id - the id of the item has to be unique a new list item




printableHtml
public String printableHtml()(Code)
Returns html code for printing the list.

html code




setBoxed
public void setBoxed(boolean isBoxed)(Code)
Sets the isBoxed flag.

If this flag is set, the list will be surrounded by a box.


Parameters:
  isBoxed - the isBoxed flag to set




setContent
public void setContent(Collection listItems)(Code)
Sets the list item to display in the list.


Parameters:
  listItems - a collection of CmsListItem objects




setCurrentPage
public void setCurrentPage(int currentPage) throws CmsIllegalArgumentException(Code)
Sets the current page.


Parameters:
  currentPage - the current page to set
throws:
  CmsIllegalArgumentException - if the argument is invalid




setMaxItemsPerPage
public void setMaxItemsPerPage(int maxItemsPerPage)(Code)
Sets the maximum number of items per page.


Parameters:
  maxItemsPerPage - the maximum number of items per page to set




setMetadata
void setMetadata(CmsListMetadata metadata)(Code)
Sets the metadata for this list.

Should only be used by the A_CmsListDialog class for temporaly removing the metadata object while the list is saved in the org.opencms.workplace.CmsWorkplaceSettings .


Parameters:
  metadata - the list metadata




setName
public void setName(CmsMessageContainer name)(Code)
Sets the name of the list.


Parameters:
  name - the name of the list




setSearchFilter
public void setSearchFilter(String searchFilter)(Code)
Sets the search filter.


Parameters:
  searchFilter - the search filter to set




setShowTitle
public void setShowTitle(boolean showTitle)(Code)
Sets if the list title is shown.


Parameters:
  showTitle - true if the list title is shown, otherwise false




setSize
public void setSize(int size)(Code)
Sets the current filtered size, only used if data self managed.


Parameters:
  size - the size to set




setSortedColumn
public void setSortedColumn(String sortedColumn) throws CmsIllegalArgumentException(Code)
Sets the sorted column.


Parameters:
  sortedColumn - the sorted column to set
throws:
  CmsIllegalArgumentException - if the sortedColumn argument is invalid




setState
public void setState(CmsListState listState)(Code)
Sets the list state.

This may involve sorting, filtering and paging.


Parameters:
  listState - the state to be set




setTotalSize
public void setTotalSize(int totalSize)(Code)
Sets the total Size, only used if data self managed.


Parameters:
  totalSize - the total Size to set




setWp
public void setWp(A_CmsListDialog wp)(Code)
Sets the workplace dialog object.


Parameters:
  wp - the workplace dialog object to set




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.