Java Doc for ListForm.java in  » J2EE » Sofia » com » salmonllc » forms » 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 » J2EE » Sofia » com.salmonllc.forms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.salmonllc.forms.BaseForm
   com.salmonllc.forms.BaseListForm
      com.salmonllc.forms.ListForm

ListForm
public class ListForm extends BaseListForm (Code)
Implements Search/List form. At the top will be a display box with a table for search criteria and a "Search" button. Following will be another display box with a datatable to display the results from the search. This box contains a "Add" button which requests the detail page (name supplied) with the parameters "mode=add", and "=", the second repeated for as many primary keys as there are. The client of this class will add data-store columns, specifying whether they go in the search box, list box, or both.
The form is implemented as a container to go within an instance of (a subclass of) HtmlPage. Specify as many data store columns as you want using the addColumn* methods and indicate which goes in the search box and which goes in the list box.
To hook key activities such as the "Add" button, implement the ListFormListener interface and call addListener.
Example:
 ListForm form = new ListForm(this, "UserDetailPage");
 add(form);
 form.addColumn(_table, "user_id", "ID#", DataStoreBuffer.DATATYPE_INT, form.PRIMARY_KEY,
 "UserDetailPage?mode=update");
 // add other columns ...
 


Field Summary
protected  String_detailPageName
    

Constructor Summary
public  ListForm(HtmlPage page, String detailPageName)
     Implements standard Search/List form. Default data store is created.
public  ListForm(HtmlPage page, String detailPageName, DataStore ds)
     Implements standard Search/List form.
public  ListForm(HtmlPage page, String detailPageName, DataStore ds, int flags)
     Implements standard Search/List form.

Method Summary
public  StringgetDetailPageName()
    
public  voidsetDetailPageName(String newPageName)
    
public  booleansubmitPerformed(SubmitEvent e)
     Inherited abstract method.

Field Detail
_detailPageName
protected String _detailPageName(Code)




Constructor Detail
ListForm
public ListForm(HtmlPage page, String detailPageName)(Code)
Implements standard Search/List form. Default data store is created. Standard add button is included.
Parameters:
  page - Page containing this form as a component.
Parameters:
  detailPageName - Name of associated detail page.



ListForm
public ListForm(HtmlPage page, String detailPageName, DataStore ds)(Code)
Implements standard Search/List form. Standard add button is included.
Parameters:
  page - HtmlPage Page containing this form as a component.
Parameters:
  detailPageName - String Name of corresponding detail page to use as link destination.
Parameters:
  ds - DataStore Data store object to use; if null then create one.



ListForm
public ListForm(HtmlPage page, String detailPageName, DataStore ds, int flags)(Code)
Implements standard Search/List form.
Parameters:
  page - Page containing this form as a component.
Parameters:
  detailPageName - Name of corresponding detail page to use as link destination.
Parameters:
  ds - Data store object to use; if null then create one.
Parameters:
  flags - Bitwise-OR combination of INIT_NO_SEARCH_BUTTON, etc.




Method Detail
getDetailPageName
public String getDetailPageName()(Code)
This method returns the name of the detail page for this list



setDetailPageName
public void setDetailPageName(String newPageName)(Code)
This method sets the name of the detail page for this list



submitPerformed
public boolean submitPerformed(SubmitEvent e) throws Exception(Code)
Inherited abstract method. boolean
Parameters:
  e - com.salmonllc.html.events.SubmitEvent



Fields inherited from com.salmonllc.forms.BaseListForm
final public static int ADVANCED_SEARCH(Code)(Java Doc)
final public static int EXACT_MATCH(Code)(Java Doc)
final public static int IGNORE_CASE(Code)(Java Doc)
final public static int INIT_ADVANCED_SEARCH_LINK(Code)(Java Doc)
final public static int INIT_ADVANCED_SEARCH_ON_SIDE(Code)(Java Doc)
final public static int INIT_NO_ADD_BUTTON(Code)(Java Doc)
final public static int INIT_NO_SEARCH_BUTTON(Code)(Java Doc)
final public static int LEADING_WILDCARD(Code)(Java Doc)
final public static int LIST_ONLY(Code)(Java Doc)
final public static int NO_SEARCH(Code)(Java Doc)
final public static String NULL_TABLE(Code)(Java Doc)
final public static int PRECEDENCE(Code)(Java Doc)
final public static int PRIMARY_KEY(Code)(Java Doc)
final public static int SAME_ROW(Code)(Java Doc)
final public static int SEARCH_ONLY(Code)(Java Doc)
protected HtmlDisplayBox _boxList(Code)(Java Doc)
protected HtmlDisplayBox _boxSearch(Code)(Java Doc)
protected HtmlComponent _btnAddListForm(Code)(Java Doc)
protected HtmlComponent _btnSearchListForm(Code)(Java Doc)
protected int _colSearch(Code)(Java Doc)
protected SimpleDateFormat _dateFormat(Code)(Java Doc)
protected BaseListFormComponentVector _elements(Code)(Java Doc)
protected Vector _flags(Code)(Java Doc)
protected String _linkFont(Code)(Java Doc)
protected Vector _listeners(Code)(Java Doc)
protected Vector _pageParamsKeys(Code)(Java Doc)
protected Vector _pageParamsValues(Code)(Java Doc)
protected Vector _precedenceList(Code)(Java Doc)
protected int _rowList(Code)(Java Doc)
protected int _rowSearch(Code)(Java Doc)
protected Vector _searchList(Code)(Java Doc)
protected HtmlDataTable _tblList(Code)(Java Doc)
protected HtmlTable _tblSearch(Code)(Java Doc)

Methods inherited from com.salmonllc.forms.BaseListForm
public void addBucket(String name, String caption, int type, int flags) throws Exception(Code)(Java Doc)
public void addBucket(String name, String caption, int type, int flags, String href, String format) throws Exception(Code)(Java Doc)
public void addBucket(String name, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) throws Exception(Code)(Java Doc)
public void addColumn(String table, String column, String caption, int type, int flags) throws Exception(Code)(Java Doc)
public void addColumn(String table, String column, String caption, int type, int flags, String href) throws Exception(Code)(Java Doc)
public void addColumn(String table, String column, String caption, int type, int flags, String href, String format) throws Exception(Code)(Java Doc)
public void addColumn(String table, String column, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) throws Exception(Code)(Java Doc)
public void addComposite(HtmlComposite composite, String caption, int flags) throws Exception(Code)(Java Doc)
public void addDateRange(String table, String column, String caption, int flags, String format) throws Exception(Code)(Java Doc)
public HtmlComponent addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues) throws Exception(Code)(Java Doc)
public HtmlComponent addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues, boolean isMandatory) throws Exception(Code)(Java Doc)
public HtmlComponent addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues) throws Exception(Code)(Java Doc)
public HtmlComponent addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues, String defaultVal) throws Exception(Code)(Java Doc)
public HtmlComponent addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues, String defaultVal, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc)
public void addListBoxHeadingComponent(HtmlComponent c)(Code)(Java Doc)
public void addListDisplay(String fullColName, String caption, HtmlComponent component) throws Exception(Code)(Java Doc)
public void addListDisplay(String fullColName, String caption, HtmlComponent component, HtmlTableCellProperties prop) throws Exception(Code)(Java Doc)
public void addListener(ListFormListener listener)(Code)(Java Doc)
public void addParameterKey(String pageParam)(Code)(Java Doc)
public HtmlComponent addPreInitDropDown(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc)
public HtmlComponent addPreInitRadioButtonGroup(String table, String column, String caption, int flags, String initName, String descName) throws Exception(Code)(Java Doc)
public HtmlComponent addPreInitRadioButtonGroup(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc)
public HtmlComponent addPreInitStringDropDown(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc)
public HtmlComponent addPreInitStringRadioButtonGroup(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc)
public void addSearchBoxHeadingComponent(HtmlComponent c)(Code)(Java Doc)
public HtmlFormComponent addSearchComponent(String name, String caption, int type, int flags) throws Exception(Code)(Java Doc)
public HtmlComponent addSearchDisplay(String name, String caption, HtmlComponent component, int flags) throws Exception(Code)(Java Doc)
public HtmlComponent addSearchDisplay(String name, String caption, HtmlComponent component, int flags, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc)
public HtmlComponent addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues) throws Exception(Code)(Java Doc)
public HtmlComponent addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues, boolean isMandatory) throws Exception(Code)(Java Doc)
public HtmlComponent addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues) throws Exception(Code)(Java Doc)
public HtmlComponent addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues, String defaultVal) throws Exception(Code)(Java Doc)
public HtmlComponent addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues, String defaultVal, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc)
public void doRetrieve()(Code)(Java Doc)
protected int findOrAdd(String name)(Code)(Java Doc)
public String getAdvancedSearchCaption()(Code)(Java Doc)
public Enumeration getBaseListFormComponents()(Code)(Java Doc)
public String getBasicSearchCaption()(Code)(Java Doc)
protected BaseListFormComponent getContainer(String name)(Code)(Java Doc)
public DataStore getDataStore()(Code)(Java Doc)
public HtmlDisplayBox getListBox()(Code)(Java Doc)
public HtmlComponent getListComponent(String name)(Code)(Java Doc)
public HtmlComponent getListLinkComponent(String name)(Code)(Java Doc)
public HtmlDataTable getListTable()(Code)(Java Doc)
public HtmlDisplayBox getSearchBox()(Code)(Java Doc)
public HtmlComponent getSearchComponent(String name)(Code)(Java Doc)
public Enumeration getSearchComponents()(Code)(Java Doc)
public String getSearchCriteria()(Code)(Java Doc)
protected HtmlFormComponent makeComponent(String name, int type)(Code)(Java Doc)
protected HtmlRadioButtonGroup newRadioButtonGroup(String name, int values, String displayValues, String defaultVal)(Code)(Java Doc)
protected HtmlRadioButtonGroup newRadioButtonGroup(String name, String values, String displayValues, String defaultVal)(Code)(Java Doc)
public void pageRequested(PageEvent p) throws Exception(Code)(Java Doc)
protected Date parseDate(String sValue) throws ParseException(Code)(Java Doc)
protected void processSearchComponent(int i, CriteriaString cr) throws Exception(Code)(Java Doc)
protected void processSearchCompositeComponent(HtmlComposite composite, CriteriaString cr) throws Exception(Code)(Java Doc)
public void removeParameterKey(String pageParam)(Code)(Java Doc)
public void resetParameters()(Code)(Java Doc)
public void setAddImage(HtmlSubmitImage img)(Code)(Java Doc)
public void setAddImage(String imageUrl)(Code)(Java Doc)
public void setAdvancedSearchCaption(String caption)(Code)(Java Doc)
public void setBasicSearchCaption(String caption)(Code)(Java Doc)
public void setLinkFont(String font)(Code)(Java Doc)
public void setListBoxCaption(String caption)(Code)(Java Doc)
public void setParameterValue(String pageParam, String value, boolean extend)(Code)(Java Doc)
public void setSearchBoxCaption(String caption)(Code)(Java Doc)
public void setSearchImage(HtmlSubmitImage img)(Code)(Java Doc)
public void setSearchImage(String imageUrl)(Code)(Java Doc)
public void showAddButton(boolean visible)(Code)(Java Doc)
public void showSearchButton(boolean visible)(Code)(Java Doc)
public boolean submitPerformed(SubmitEvent e) throws Exception(Code)(Java Doc)

Fields inherited from com.salmonllc.forms.BaseForm
protected DataStore _ds(Code)(Java Doc)
protected HtmlLineBreak _line_break(Code)(Java Doc)

Methods inherited from com.salmonllc.forms.BaseForm
public HtmlDropDownList newIntegerDropDown(String name, int values, String displayValues)(Code)(Java Doc)
public HtmlDropDownList newStringDropDown(String name, String values, String displayValues)(Code)(Java Doc)
public void pageRequestEnd(PageEvent p) throws Exception(Code)(Java Doc)
public void pageRequested(PageEvent p) throws Exception(Code)(Java Doc)
public void pageSubmitEnd(PageEvent p)(Code)(Java Doc)
public void pageSubmitted(PageEvent p)(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.