Java Doc for InputMaskForm.java in  » Development » ivatamasks » com » ivata » mask » web » 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 » Development » ivatamasks » com.ivata.mask.web.struts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.mask.web.struts.DialogForm
   com.ivata.mask.web.struts.MaskForm
      com.ivata.mask.web.struts.InputMaskForm

InputMaskForm
public class InputMaskForm extends MaskForm (Code)
This form references a single value object to be displayed.
author:
   Colin MacLeod author:
   href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com
since:
   ivata masks 0.1 (2004-05-09)
version:
   $Revision: 1.16 $


Field Summary
final public static  StringREQUEST_ATTRIBUTE
    

Request attribute under which name this form is stored.


Constructor Summary
public  InputMaskForm(ValueObject valueObjectParam, Mask maskParam, Class baseClassParam)
    

Create a new mask form for the given value object.


Method Summary
protected  voidclear()
    

Clear all bean properties to their default state.The difference between this and reset is that all properties are changed, regardless of current request state.

final public  StringgetInputMaskTabActiveTabKey()
    

Indicates which TAB is active.

final public  StringgetTabForward()
     Get the Struts action forward used to process the tab we are currently showing.
public  ListgetTabKeys()
     Message resource strings for the tab labels.
public  ValueObjectgetValueObject()
     Value object whose values are to be displayed in the mask.
public  booleanisApplyButtonHidden()
    
public  booleanisClearButtonHidden()
    
public  booleanisDeleteButtonHidden()
    
public  booleanisDeleteWithoutWarn()
     Sets whether or not the dialog should warn before deleting a value object.
public  booleanisDisplayOnly()
     If the mask is marked display only, only the text values of the fields are show (i.e.
public  booleanisRefreshOpener()
     For pop-up windows, it is often useful to refresh the page which opened the pop-up, after the pop-up has changed something.
protected  booleanperformReset()
    

Decides whether or not we perform the form reset.

public  voidreset(ActionMapping mapping, HttpServletRequest request)
    
final protected  voidsaveProperty(String propertyNameParam)
     Mark a property to be saved.
final public  voidsetApplyButtonHidden(boolean applyButtonHiddenParam)
    
final public  voidsetClearButtonHidden(boolean clearButtonHiddenParam)
    
final public  voidsetDeleteButtonHidden(boolean deleteButtonHiddenParam)
    
final public  voidsetDeleteWithoutWarn(boolean deleteWithoutWarnParam)
    
final public  voidsetDisplayOnly(boolean displayOnlyParam)
    
final public  voidsetInputMaskTabActiveTabKey(String inputMaskTabActiveTabKeyParam)
    
final public  voidsetRefreshOpener(boolean refreshOpenerParam)
    
final public  voidsetTabForward(String tabForwardParam)
    
public  voidsetValueObject(ValueObject valueObjectParam)
    
public  ValidationErrorsvalidate(HttpServletRequest requestParam, HttpSession sessionParam)
     Overridden to check mandatory fields.

Field Detail
REQUEST_ATTRIBUTE
final public static String REQUEST_ATTRIBUTE(Code)

Request attribute under which name this form is stored.





Constructor Detail
InputMaskForm
public InputMaskForm(ValueObject valueObjectParam, Mask maskParam, Class baseClassParam)(Code)

Create a new mask form for the given value object.


Parameters:
  valueObjectParam - value object to be displayed.
Parameters:
  maskParam - mask containing all the fields definitions to be displayed.
Parameters:
  baseClassParam - base class of all value objects to show in the list associatedwith this mask.




Method Detail
clear
protected void clear() throws OperationNotSupportedException(Code)

Clear all bean properties to their default state.The difference between this and reset is that all properties are changed, regardless of current request state.


See Also:   com.ivata.mask.web.struts.MaskForm.clear
throws:
  OperationNotSupportedException - if the value object does nothave a default constructor.



getInputMaskTabActiveTabKey
final public String getInputMaskTabActiveTabKey()(Code)

Indicates which TAB is active. This name is generated by the tab control and depends on the name of the tab control !!!!!

Returns the key.



getTabForward
final public String getTabForward()(Code)
Get the Struts action forward used to process the tab we are currently showing. Returns the action forward name of the tab page.



getTabKeys
public List getTabKeys()(Code)
Message resource strings for the tab labels. Returns the tab keys.



getValueObject
public ValueObject getValueObject()(Code)
Value object whose values are to be displayed in the mask. Value object to be displayed.



isApplyButtonHidden
public boolean isApplyButtonHidden()(Code)
Should the 'apply' button be shown or hidden? true if the apply button should NOT beshown.



isClearButtonHidden
public boolean isClearButtonHidden()(Code)
Should the 'new' button be shown or hidden? true if the new button should NOT beshown.



isDeleteButtonHidden
public boolean isDeleteButtonHidden()(Code)
Should the 'delete' button be shown or hidden? true if the delete button should NOT beshown.



isDeleteWithoutWarn
public boolean isDeleteWithoutWarn()(Code)
Sets whether or not the dialog should warn before deleting a value object. true if a warning is displayed before deleting.



isDisplayOnly
public boolean isDisplayOnly()(Code)
If the mask is marked display only, only the text values of the fields are show (i.e. display mode), and there are no fields for user input. true if only text field values should be shown.



isRefreshOpener
public boolean isRefreshOpener()(Code)
For pop-up windows, it is often useful to refresh the page which opened the pop-up, after the pop-up has changed something. Returns true if the page which opened this oneshould be refreshed on delete or confirm.



performReset
protected boolean performReset()(Code)

Decides whether or not we perform the form reset. Override this method to determine whether or not we should reset.

This default implementation will reset only if the apply or ok button is pressed.

true if we should reset the form whenreset is called.



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

Parameters:
  mapping -
Parameters:
  request -
See Also:   DialogForm.reset
See Also:   



saveProperty
final protected void saveProperty(String propertyNameParam)(Code)
Mark a property to be saved. By default, the clear method (and hence the reset method) will set all property values to null. By adding your property to the list of those saved here, it will be ignored in the clear method.
Parameters:
  propertyNameParam - name of the property to save.



setApplyButtonHidden
final public void setApplyButtonHidden(boolean applyButtonHiddenParam)(Code)
Refer to InputMaskForm.isApplyButtonHidden .
Parameters:
  applyButtonHiddenParam - Refer to InputMaskForm.isApplyButtonHidden.



setClearButtonHidden
final public void setClearButtonHidden(boolean clearButtonHiddenParam)(Code)
Refer to InputMaskForm.isClearButtonHidden .
Parameters:
  clearButtonHiddenParam - Refer to InputMaskForm.isClearButtonHidden.



setDeleteButtonHidden
final public void setDeleteButtonHidden(boolean deleteButtonHiddenParam)(Code)
Refer to InputMaskForm.isDeleteButtonHidden .
Parameters:
  deleteButtonHiddenParam - Refer to InputMaskForm.isDeleteButtonHidden.



setDeleteWithoutWarn
final public void setDeleteWithoutWarn(boolean deleteWithoutWarnParam)(Code)
Refer to InputMaskForm.isDeleteWithoutWarn .
Parameters:
  deleteWithoutWarnParam - Refer to InputMaskForm.isDeleteWithoutWarn.



setDisplayOnly
final public void setDisplayOnly(boolean displayOnlyParam)(Code)
Refer to InputMaskForm.isDisplayOnly .
Parameters:
  displayOnlyParam - Refer to InputMaskForm.isDisplayOnly.



setInputMaskTabActiveTabKey
final public void setInputMaskTabActiveTabKey(String inputMaskTabActiveTabKeyParam)(Code)
Refer to InputMaskForm.getInputMaskTabActiveTabKey .
Parameters:
  inputMaskTabActiveTabKeyParam - Refer to InputMaskForm.getInputMaskTabActiveTabKey.



setRefreshOpener
final public void setRefreshOpener(boolean refreshOpenerParam)(Code)
Refer to InputMaskForm.isRefreshOpener .
Parameters:
  refreshOpenerParam - Refer to InputMaskForm.isRefreshOpener.



setTabForward
final public void setTabForward(String tabForwardParam)(Code)
Refer to InputMaskForm.getTabForward .
Parameters:
  tabForwardParam - Refer to InputMaskForm.getTabForward.



setValueObject
public void setValueObject(ValueObject valueObjectParam)(Code)
Refer to InputMaskForm.getvalueObject .
Parameters:
  valueObjectParam - Refer to InputMaskForm.getvalueObject.



validate
public ValidationErrors validate(HttpServletRequest requestParam, HttpSession sessionParam)(Code)
Overridden to check mandatory fields.
Parameters:
  requestParam -
Parameters:
  sessionParam - errors from the super class, with any mandatory field errorsadded.



Methods inherited from com.ivata.mask.web.struts.MaskForm
protected void clear() throws OperationNotSupportedException(Code)(Java Doc)
final public Class getBaseClass()(Code)(Java Doc)
final public Mask getMask()(Code)(Java Doc)
public String getResourceFieldPath()(Code)(Java Doc)
public void setResourceFieldPath(String resourceFieldPathParam)(Code)(Java Doc)
public ValidationErrors validate(HttpServletRequest requestParam, HttpSession sessionParam)(Code)(Java Doc)

Methods inherited from com.ivata.mask.web.struts.DialogForm
protected void clear() throws OperationNotSupportedException(Code)(Java Doc)
final public String getApply()(Code)(Java Doc)
final public String getBundle()(Code)(Java Doc)
final public String getClear()(Code)(Java Doc)
public String getDefaultForwardApply()(Code)(Java Doc)
public String getDefaultForwardDelete()(Code)(Java Doc)
public String getDefaultForwardOk()(Code)(Java Doc)
final public String getDeleteConfirm()(Code)(Java Doc)
final public String getDeleteKey()(Code)(Java Doc)
final public String getDeleteWarn()(Code)(Java Doc)
final public String getHelpKey()(Code)(Java Doc)
final public String getOk()(Code)(Java Doc)
public void reset(ActionMapping mapping, HttpServletRequest request)(Code)(Java Doc)
final public void setApply(String applyParam)(Code)(Java Doc)
final public void setBundle(String bundleParam)(Code)(Java Doc)
final public void setClear(String clearParam)(Code)(Java Doc)
final public void setDefaultForwardApply(String defaultForwardApplyParam)(Code)(Java Doc)
public void setDefaultForwardDelete(String defaultForwardDeleteParam)(Code)(Java Doc)
final public void setDefaultForwardOk(String defaultForwardOkParam)(Code)(Java Doc)
final public void setDeleteConfirm(String deleteConfirmParam)(Code)(Java Doc)
final public void setDeleteKey(String deleteKeyParam)(Code)(Java Doc)
final public void setDeleteWarn(String deleteWarnParam)(Code)(Java Doc)
final public void setHelpKey(String helpKeyParam)(Code)(Java Doc)
final public void setOk(String okParam)(Code)(Java Doc)
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)(Code)(Java Doc)
public ValidationErrors validate(HttpServletRequest requestParam, HttpSession sessionParam)(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.