Java Doc for ItemForm.java in  » Groupware » ivatagroupware » com » ivata » groupware » business » library » struts » 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 » Groupware » ivatagroupware » com.ivata.groupware.business.library.struts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.groupware.business.library.struts.LibraryForm
   com.ivata.groupware.business.library.struts.ItemForm

ItemForm
public class ItemForm extends LibraryForm (Code)

This form is used both to display and to submit a library item


since:
   2003-02-19
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.3 $



Constructor Summary
public  ItemForm(Library library, MaskFactory maskFactory)
    

Method Summary
protected  voidclear()
    
final public  StringgetComment()
    
final public  StringgetDeleteFileButton()
    
final public  StringgetDisplayIncludePage()
    
final public  intgetDisplayPage()
    
public  ListgetFileList()
    
final public  LibraryItemDOgetItem()
    
final public  StringgetLinkPage()
    

Defines the page to link to.

final public  StringgetNewPage()
    
final public  StringgetNewPoint(int index)
    

TRICK storing index of button which was click in submiting page of Meeting or Faq.

final public  StringgetNextPageLink()
    
final public  StringgetPageLinks()
    
final public  StringgetPreviousPageLink()
    
final public  ObjectgetSelectedAttachedFilesIds(String key)
    
final public  String[]getSelectedNewFilesIds()
    
final public  StringgetSubmitIncludePage()
    
final public  StringgetSummaryPromptKey()
    
final public  StringgetSummaryThemeName()
    
final public  StringgetSummaryTitleKey()
    
final public  StringgetThemeName()
    
final public  MapgetTopicCaptions()
    
final public  SetgetTopicIds()
    
final public  MapgetTopicImages()
    
public  ListgetUploadingFileList()
    
public  voidreset(ActionMapping mapping, HttpServletRequest request)
    

Reset all bean properties to their default state.

final public  voidsetComment(String comment)
    
final public  voidsetDeleteFileButton(String deleteFileButton)
    
final public  voidsetDisplayIncludePage(String displayIncludePage)
    
final public  voidsetDisplayPage(int displayPage)
    
final public  voidsetFileList(List fileList)
    
final public  voidsetItem(LibraryItemDO item)
    
final public  voidsetLinkPage(String linkPage)
    

Defines the page to link to.

final public  voidsetNewPage(String newPage)
    
final public  voidsetNewPoint(int index, String value)
    

TRICK storing index of button which was click in submiting page of Meeting or Faq.

final public  voidsetNextPageLink(String nextPageLink)
    
final public  voidsetPageLinks(String pageLinks)
    
final public  voidsetPreviousPageLink(String previousPageLink)
    
final public  voidsetSelectedAttachedFilesIds(String key, Object value)
    
final public  voidsetSelectedNewFilesIds(String[] selectedNewFilesIds)
    
final public  voidsetSubmitIncludePage(String submitIncludePage)
    
final public  voidsetSummaryPromptKey(String summaryPromptKey)
    
final public  voidsetSummaryThemeName(String summaryThemeName)
    
final public  voidsetSummaryTitleKey(String summaryTitleKey)
    
final public  voidsetThemeName(String themeName)
    
final public  voidsetTopicCaptions(Map topicCaptions)
    
final public  voidsetTopicIds(Set topicIds)
    
final public  voidsetTopicImages(Map topicImages)
    
final public  voidsetUploadingFileList(List uploadingFileList)
    
public  ValidationErrorsvalidate(HttpServletRequest request, HttpSession session)
     Validate the properties that have been set for this HTTP request, and return an ActionMessages object that encapsulates any validation errors that have been found.


Constructor Detail
ItemForm
public ItemForm(Library library, MaskFactory maskFactory)(Code)

Parameters:
  library -
Parameters:
  maskParam - Refer to ItemForm.getMask.
Parameters:
  baseClassParam - Refer to ItemForm.getBaseClass.




Method Detail
clear
protected void clear()(Code)
TODO
See Also:   com.ivata.mask.web.struts.MaskForm.clear



getComment
final public String getComment()(Code)

Version control comment

the comment



getDeleteFileButton
final public String getDeleteFileButton()(Code)

Button for deleting attached files to item.

the current value of deleteFileButton.



getDisplayIncludePage
final public String getDisplayIncludePage()(Code)

Page to include with extra fields for this document type, on display.

the current value of displayIncludePage.



getDisplayPage
final public int getDisplayPage()(Code)

If in display mode, indicates the page number to currently show.

the current value of displayPage.



getFileList
public List getFileList()(Code)

Defines list of files DO's with are attched with this item.

the current value of fileList.



getItem
final public LibraryItemDO getItem()(Code)

Contains all of the information about the current library item

the current value of item.



getLinkPage
final public String getLinkPage()(Code)

Defines the page to link to. This varies depending on whether the item is being submitted or displayed.

the current value of linkPage.



getNewPage
final public String getNewPage()(Code)

If non-null, indicates a new page should be addes.

the current value of newPage.



getNewPoint
final public String getNewPoint(int index)(Code)

TRICK storing index of button which was click in submiting page of Meeting or Faq. return first field of array, ther is a index of click button. for MEETING it's creating new AgendaPoin in heading with that index. for FAQ it's creating new Question in faq category with that index.

the current index of newPoint



getNextPageLink
final public String getNextPageLink()(Code)

Link to link the next page to, or the empty string if there is no next page.

the current value of nextPageLink.



getPageLinks
final public String getPageLinks()(Code)

Contains the links with appear to the top right of displayed items.

the current value of pageLinks.



getPreviousPageLink
final public String getPreviousPageLink()(Code)

Link to link the previous page to, or the empty string if there is no previous page.

the current value of previoustPageLink.



getSelectedAttachedFilesIds
final public Object getSelectedAttachedFilesIds(String key)(Code)

Geting selected file ID from maped properties.


Parameters:
  key - - which checkBox is selected



getSelectedNewFilesIds
final public String[] getSelectedNewFilesIds()(Code)

All Ids of selected files by user from list of new files.

the current value of selectedNewFilesIds.



getSubmitIncludePage
final public String getSubmitIncludePage()(Code)

Page to include with extra fields for this document type, on submission

the current value of submitIncludePage.



getSummaryPromptKey
final public String getSummaryPromptKey()(Code)

Key to the localized text for the summary field (submit mode).

the current value of summaryPromptKey.



getSummaryThemeName
final public String getSummaryThemeName()(Code)

Specifies the theme name for the document summary section.

the current value of summaryThemeName.



getSummaryTitleKey
final public String getSummaryTitleKey()(Code)

Key to the localized text for the summary window (submit mode).

the current value of summaryTitleKey.



getThemeName
final public String getThemeName()(Code)

Specifies the theme name for the body of the document.

the current value of themeName.



getTopicCaptions
final public Map getTopicCaptions()(Code)

In submit mode, stores all of the captions of the topics we are allowed to see.

the current value of topicCaptions.



getTopicIds
final public Set getTopicIds()(Code)

In submit mode, stores all of the unique identifiers of the topics we are allowed to see.

the current value of topicIds.



getTopicImages
final public Map getTopicImages()(Code)

In submit mode, stores all of the image filenames of the topics we are allowed to see.

the current value of topicImages.



getUploadingFileList
public List getUploadingFileList()(Code)

Defines list of files DO's with are goint to attch with this item.

the current value of uploadingFileList.



reset
public void reset(ActionMapping mapping, HttpServletRequest request)(Code)

Reset all bean properties to their default state. This method is called before the properties are repopulated by the controller servlet.


Parameters:
  mapping - The mapping used to select this instance
Parameters:
  request - The servlet request we are processing



setComment
final public void setComment(String comment)(Code)

Version control comment


Parameters:
  comment - the comment



setDeleteFileButton
final public void setDeleteFileButton(String deleteFileButton)(Code)

Button for deleting attached files to item.


Parameters:
  deleteFileButton - the new value of deleteFileButton.



setDisplayIncludePage
final public void setDisplayIncludePage(String displayIncludePage)(Code)

Page to include with extra fields for this document type, on display.


Parameters:
  displayIncludePage - the new value of displayIncludePage.



setDisplayPage
final public void setDisplayPage(int displayPage)(Code)

If in display mode, indicates the page number to currently show.


Parameters:
  displayPage - the new value of displayPage.



setFileList
final public void setFileList(List fileList)(Code)

Defines list of files DO's with are attched with this item.


Parameters:
  fileList - the new value of fileList.



setItem
final public void setItem(LibraryItemDO item)(Code)

Contains all of the information about the current library item


Parameters:
  item - the new value of item.



setLinkPage
final public void setLinkPage(String linkPage)(Code)

Defines the page to link to. This varies depending on whether the item is being submitted or displayed.


Parameters:
  linkPage - the new value of linkPage.



setNewPage
final public void setNewPage(String newPage)(Code)

If non-null, indicates a new page should be addes.


Parameters:
  newPage - the new value of newPage.



setNewPoint
final public void setNewPoint(int index, String value)(Code)

TRICK storing index of button which was click in submiting page of Meeting or Faq. set first field of array for MEETING it's creating new AgendaPoin in heading with that index. for FAQ it's creating new Question in faq category with that index.


Parameters:
  index - is the index of heading or faq category
Parameters:
  value - is the value of button



setNextPageLink
final public void setNextPageLink(String nextPageLink)(Code)

Link to link the next page to, or the empty string if there is no next page.


Parameters:
  nextPageLink - the new value of nextPageLink.



setPageLinks
final public void setPageLinks(String pageLinks)(Code)

Contains the links with appear to the top right of displayed items.


Parameters:
  pageLinks - the new value of pageLinks.



setPreviousPageLink
final public void setPreviousPageLink(String previousPageLink)(Code)

Link to link the previous page to, or the empty string if there is no previous page.


Parameters:
  previoustPageLink - the new value of previoustPageLink.



setSelectedAttachedFilesIds
final public void setSelectedAttachedFilesIds(String key, Object value)(Code)

Seting selected file ID to maped properties.


Parameters:
  key - - which checkBox is selected
Parameters:
  value - - value which is setTo haspMap with that key



setSelectedNewFilesIds
final public void setSelectedNewFilesIds(String[] selectedNewFilesIds)(Code)

All Ids of selected files by user from list of new files.


Parameters:
  selectedNewFilesIds - the new value of selectedNewFilesIds.



setSubmitIncludePage
final public void setSubmitIncludePage(String submitIncludePage)(Code)

Page to include with extra fields for this document type, on submission


Parameters:
  submitIncludePage - the new value of submitIncludePage.



setSummaryPromptKey
final public void setSummaryPromptKey(String summaryPromptKey)(Code)

Key to the localized text for the summary field (submit mode).


Parameters:
  summaryPromptKey - the new value of summaryPromptKey.



setSummaryThemeName
final public void setSummaryThemeName(String summaryThemeName)(Code)

Specifies the theme name for the document summary section.


Parameters:
  summaryThemeName - the new value of summaryThemeName.



setSummaryTitleKey
final public void setSummaryTitleKey(String summaryTitleKey)(Code)

Key to the localized text for the summary window (submit mode).


Parameters:
  summaryTitleKey - the new value of summaryTitleKey.



setThemeName
final public void setThemeName(String themeName)(Code)

Specifies the theme name for the body of the document.


Parameters:
  themeName - the new value of themeName.



setTopicCaptions
final public void setTopicCaptions(Map topicCaptions)(Code)

In submit mode, stores all of the captions of the topics we are allowed to see.


Parameters:
  topicCaptions - the new value of topicCaptions.



setTopicIds
final public void setTopicIds(Set topicIds)(Code)

In submit mode, stores all of the unique identifiers of the topics we are allowed to see.


Parameters:
  topicIds - the new value of topicIds.



setTopicImages
final public void setTopicImages(Map topicImages)(Code)

In submit mode, stores all of the image filenames of the topics we are allowed to see.


Parameters:
  topicImages - the new value of topicImages.



setUploadingFileList
final public void setUploadingFileList(List uploadingFileList)(Code)

Defines list of files DO's with are goint to attch with this item.


Parameters:
  uploadingFileList - the new value of uploadingFileList.



validate
public ValidationErrors validate(HttpServletRequest request, HttpSession session)(Code)
Validate the properties that have been set for this HTTP request, and return an ActionMessages object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionMessages object with no recorded error messages.

The default ipmlementation performs no validation and returns null. Subclasses must override this method to provide any validation they wish to perform.
Parameters:
  request - The servlet request we are processing.
Parameters:
  session - The sessuib we are processing.
See Also:   com.ivata.mask.web.struts.MaskForm.validate(javax.servlet.http.HttpServletRequestjavax.servlet.http.HttpSession)




Methods inherited from com.ivata.groupware.business.library.struts.LibraryForm
final public Class getBaseClass()(Code)(Java Doc)
final public String getEdit()(Code)(Java Doc)
final public Mask getMask()(Code)(Java Doc)
final public String getPreview()(Code)(Java Doc)
final public void setEdit(String edit)(Code)(Java Doc)
final public void setPreview(String preview)(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.