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


java.lang.Object
   com.salmonllc.html.HtmlComponentFactory

HtmlComponentFactory
public class HtmlComponentFactory (Code)
This class can be used to reduce the coding involved in creating a data entry or data browsing screen. The methods in the factory will create the components and automatically bind them to columns in a DataStore, creating the DataStore in the process. Each component must then be added to the page. The datastore component created by the factory can be accessed via a call to the getDataStore method.


Field Summary
public static  StringCURRENCY_FORMAT
    
public static  StringDATETIME_FORMAT
    
public static  StringDATE_FORMAT
    
public static  StringINT_FORMAT
    
public static  StringTIME_FORMAT
    
 DataStore_ds
    
 HtmlPage_page
    
 SubmitListener_sl
    
 String_theme
    
 ValueChangedListener_vl
    

Constructor Summary
public  HtmlComponentFactory(HtmlPage p, SubmitListener submit, ValueChangedListener value)
     Constructs a new HtmlComponent Factory for the page.
Parameters:
  p - The page to create the factory for.
Parameters:
  submit - The SubmitListener that will listen for submit events generated by components created in this factory.
public  HtmlComponentFactory(HtmlPage p, SubmitListener submit, ValueChangedListener value, String theme)
     Constructs a new HtmlComponent Factory for the page.
Parameters:
  p - The page to create the factory for.
Parameters:
  submit - The SubmitListener that will listen for submit events generated by components created in this factory.
public  HtmlComponentFactory(HtmlPage p, SubmitListener submit, ValueChangedListener value, String theme, DataStore ds)
     Constructs a new HtmlComponent Factory for the page.
Parameters:
  p - The page to create the factory for.
Parameters:
  submit - The SubmitListener that will listen for submit events generated by components created in this factory.

Method Summary
public  DataStoregetDataStore()
     This method returns the DataStore created by creating components in the factory.
public static  HtmlTableCellPropertiesnewColSpan(int spanSize)
     This method returns an HtmlTableCellProperties object with the colspan attribute set.
public  HtmlTextnewComputedColumn(String expression, String format)
     This method creates a new Computed Column in the DataStore.
public  HtmlTextnewComputedColumn(String name, String expression, String format)
     This method creates a new Computed Column in the DataStore.
public  HtmlDataTablenewDataTable(String select)
     This method will create an HtmlDataTable from a select statement.
public static  HtmlTextnewDataText(DataStore ds, String table_col, HtmlPage p)
    
public static  HtmlTextnewDataText(DataStore ds, String table_col, String format, HtmlPage p)
    
public  HtmlTextnewDateDisplay(String table, String column, boolean primaryKey)
     This method creates a new Date Display Column.
public  HtmlTextnewDateDisplay(String table, String column, boolean primaryKey, String format)
     This method creates a new Date Display Column.
public  HtmlTextEditnewDateEdit(String table, String column, boolean primaryKey, int size)
     This method creates a new Date Edit Column.
public  HtmlTextnewDateTimeDisplay(String table, String column, boolean primaryKey)
     This method creates a new Date Time Display Column.
public  HtmlTextnewDateTimeDisplay(String table, String column, boolean primaryKey, String format)
     This method creates a new Date Time Display Column.
public  HtmlTextEditnewDateTimeEdit(String table, String column, boolean primaryKey, int size)
     This method creates a new DateTime Text Edit Column.
public  HtmlTextEditnewDateTimeEdit(String table, String column, boolean primaryKey, int size, String format)
     This method creates a new DateTime Text Edit Column.
public  HtmlTextnewDetailCaption(String caption)
     This method creates a new caption for a detail screen.
public  HtmlTextnewDetailCaption(String name, String caption)
     This method creates a new caption for a detail screen.
public  HtmlTextnewDoubleDisplay(String table, String column, boolean primaryKey)
     This method creates a new Double Display Column.
public  HtmlTextnewDoubleDisplay(String table, String column, boolean primaryKey, String format)
     This method creates a new Double Display Column.
public  HtmlTextEditnewDoubleEdit(String table, String column, boolean primaryKey, int size)
     This method creates a new Double Edit Column.
public  HtmlTextEditnewDoubleEdit(String table, String column, boolean primaryKey, int size, String format)
     This method creates a new Double Edit Column.
public  HtmlLinknewEMailLink(String table, String column, String font, boolean primaryKey)
     This method creates a new String Display Column.
public  HtmlLinknewEMailLink(String table, String column, boolean primaryKey)
    
public  HtmlLinknewEmailLink(String name, String text, String address)
     Use this method to create an e-mail (send to) link.
public  HtmlLinknewEmailLink(String name, String text, String address, String font)
     Use this method to create an e-mail (mail to) link.
public  HtmlTextEditnewFloatEdit(String table, String column, boolean primaryKey, int size, String format)
     This method creates a new Float Edit Column.
public static  HtmlTextnewHeadingCaption(String caption, HtmlPage p)
    
public static  HtmlTextnewHeadingCaption(String name, String caption, HtmlPage p)
    
public  HtmlTextnewHighlightCaption(String name, String caption)
     This method creates a new caption for a detail screen.
public static  HtmlLinknewImageHyperLink(String name, String source, String href, String target, HtmlPage p)
     Constructs an HtmlLink component containing an image.
public  HtmlLinknewImageLink(String name, String normalImage, String highlightImage, String href, String target)
     Use this method to create a image button link that changes it's gif or jpeg when the mouse passes over it.
public  HtmlTextnewIntegerBucket(String bucket)
     This creates a integer bucket.
public  HtmlTextnewIntegerBucket(String bucket, String format)
     This creates a integer bucket.
public  HtmlCheckBoxnewIntegerCheckBox(String table, String column, boolean primaryKey, int trueValue, int falseValue)
     This method creates a new Check Box for an integer column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
public  HtmlTextnewIntegerDisplay(String table, String column, boolean primaryKey)
     This method creates a new Integer Display Column.
public  HtmlTextnewIntegerDisplay(String table, String column, boolean primaryKey, String format)
     This method creates a new Integer Display Column.
public  HtmlDropDownListnewIntegerDropDownList(String table, String column, boolean primaryKey, int[] values, String[] displayValues)
     This method creates a new Drop Down List Box for an integer column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
public  HtmlTextEditnewIntegerEdit(String table, String column, boolean primaryKey, int size)
     This method creates a new Integer Edit Column.
public  HtmlTextEditnewIntegerEdit(String table, String column, boolean primaryKey, int size, String format)
     This method creates a new Integer Edit Column.
public  HtmlRadioButtonGroupnewIntegerRadioButtonGroup(String table, String column, boolean primaryKey, int[] values, String[] displayValues)
     This method creates a new Radio Button Group an integer column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
public  HtmlTextEditnewLongEdit(String table, String column, boolean primaryKey, int size, String format)
     This method creates a new Long Edit Column.
public  HtmlMultiLineTextEditnewMultiLineEdit(String table, String column, boolean primaryKey, int columns, int rows, int maxLength)
     This method creates a new Multi Line Edit for a string column.
public  HtmlTextEditnewShortEdit(String table, String column, boolean primaryKey, int size, String format)
     This method creates a new Short Edit Column.
public  HtmlTextnewStringBucket(String bucket)
     This creates a string bucket.
public  HtmlCheckBoxnewStringCheckBox(String table, String column, boolean primaryKey, String trueValue, String falseValue)
     This method creates a new Check Box for an String column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
public  HtmlTextnewStringDisplay(String table, String column, boolean primaryKey)
     This method creates a new String Display Column.
public  HtmlDropDownListnewStringDropDownList(String table, String column, boolean primaryKey, String[] values, String[] displayValues)
     This method creates a new Drop Down List Box for an String column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
public  HtmlTextEditnewStringEdit(String table, String column, boolean primaryKey, int size, int length)
     This method creates a new String Edit Column.
public  HtmlRadioButtonGroupnewStringRadioButtonGroup(String table, String column, boolean primaryKey, String[] values, String[] displayValues)
     This method creates a new Radio Button Group a String column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
public  HtmlSubmitButtonnewSubmitButton(String buttonName, String displayCaption)
     This method creates a new submit button.
public  HtmlSubmitImagenewSubmitImage(String buttonName, String displayCaption)
     This method creates a new submit image.
public  HtmlSubmitImagenewSubmitImage(String buttonName, String displayCaption, int height)
     This method creates a new submit image.
public  HtmlSubmitImagenewSubmitImage(String buttonName, String displayCaption, int width, int height)
     This method creates a new submit button.
public  HtmlTextnewSumColumn(String name, String column, String format)
     This method creates a new Sum Column for the DataStore.
public static  HtmlTablenewTable(String name, HtmlPage p, int width)
     This method creates a new HTML Table, and is created on the HTML page that is passed into this method.
public  HtmlTextnewTableCaption(String caption)
     This method creates a new caption for the heading of an HTMLDataTable.
public  HtmlTextnewTableCaption(String name, String caption)
     This method creates a new caption for the heading of an HTMLDataTable.
public static  HtmlTextnewTableCaption(String caption, HtmlPage p)
    
public static  HtmlTextnewTableCaption(String name, String caption, HtmlPage p)
    
public static  HtmlLinknewTextHyperLink(String name, String href, String caption, HtmlPage p)
     Constructs an HtmlLink component containing a text caption.
public static  HtmlLinknewTextHyperLink(String name, String href, String target, String caption, HtmlPage p)
     Constructs an HtmlLink component containing a text caption.
public static  HtmlLinknewTextHyperLink(String name, String href, String target, String caption, String linkFont, HtmlPage p)
     Constructs an HtmlLink component containing a text caption.
public static  HtmlLinknewTextHyperLinkSmall(String name, String href, String caption, HtmlPage p)
     Constructs an HtmlLink component containing a text caption Using a small link font.
public static  HtmlTextnewTextSpacer(int spacerSize, HtmlPage p)
    
public  HtmlTextEditnewTimeEdit(String table, String column, boolean primaryKey, int size)
     This method creates a new Time Edit Column.

Field Detail
CURRENCY_FORMAT
public static String CURRENCY_FORMAT(Code)



DATETIME_FORMAT
public static String DATETIME_FORMAT(Code)



DATE_FORMAT
public static String DATE_FORMAT(Code)



INT_FORMAT
public static String INT_FORMAT(Code)



TIME_FORMAT
public static String TIME_FORMAT(Code)



_ds
DataStore _ds(Code)



_page
HtmlPage _page(Code)



_sl
SubmitListener _sl(Code)



_theme
String _theme(Code)



_vl
ValueChangedListener _vl(Code)




Constructor Detail
HtmlComponentFactory
public HtmlComponentFactory(HtmlPage p, SubmitListener submit, ValueChangedListener value)(Code)
Constructs a new HtmlComponent Factory for the page.
Parameters:
  p - The page to create the factory for.
Parameters:
  submit - The SubmitListener that will listen for submit events generated by components created in this factory. Set it to null if you don't want the components to generate submit events.
Parameters:
  value - The ValueChangedListener that will listen for value changed events generated by components created in this factory. Set it to null if you don't want the components to generate value changed events.



HtmlComponentFactory
public HtmlComponentFactory(HtmlPage p, SubmitListener submit, ValueChangedListener value, String theme)(Code)
Constructs a new HtmlComponent Factory for the page.
Parameters:
  p - The page to create the factory for.
Parameters:
  submit - The SubmitListener that will listen for submit events generated by components created in this factory. Set it to null if you don't want the components to generate submit events.
Parameters:
  value - The ValueChangedListener that will listen for value changed events generated by components created in this factory. Set it to null if you don't want the components to generate value changed events.
Parameters:
  theme - The theme to use for loading properties.



HtmlComponentFactory
public HtmlComponentFactory(HtmlPage p, SubmitListener submit, ValueChangedListener value, String theme, DataStore ds)(Code)
Constructs a new HtmlComponent Factory for the page.
Parameters:
  p - The page to create the factory for.
Parameters:
  submit - The SubmitListener that will listen for submit events generated by components created in this factory. Set it to null if you don't want the components to generate submit events.
Parameters:
  value - The ValueChangedListener that will listen for value changed events generated by components created in this factory. Set it to null if you don't want the components to generate value changed events.
Parameters:
  theme - The theme to use for loading properties.
Parameters:
  ds - DataStore Data store object to use, if null then create one.




Method Detail
getDataStore
public DataStore getDataStore()(Code)
This method returns the DataStore created by creating components in the factory.



newColSpan
public static HtmlTableCellProperties newColSpan(int spanSize)(Code)
This method returns an HtmlTableCellProperties object with the colspan attribute set.



newComputedColumn
public HtmlText newComputedColumn(String expression, String format)(Code)
This method creates a new Computed Column in the DataStore.
Parameters:
  expression - The compute Expression.
Parameters:
  format - The format to display the results.
See Also:   DataStoreEvaluator
See Also:   DataStore.setFormat



newComputedColumn
public HtmlText newComputedColumn(String name, String expression, String format)(Code)
This method creates a new Computed Column in the DataStore.
Parameters:
  expression - The name of the compute Expression.
Parameters:
  expression - The compute Expression.
Parameters:
  format - The format to display the results.
See Also:   DataStoreEvaluator
See Also:   DataStore.setFormat



newDataTable
public HtmlDataTable newDataTable(String select) throws Exception(Code)
This method will create an HtmlDataTable from a select statement.
Parameters:
  select - The select statement to build the datatable from



newDataText
public static HtmlText newDataText(DataStore ds, String table_col, HtmlPage p)(Code)
This method returns a text component bound to a column in a table



newDataText
public static HtmlText newDataText(DataStore ds, String table_col, String format, HtmlPage p)(Code)
This method returns a text component bound to a column in a table



newDateDisplay
public HtmlText newDateDisplay(String table, String column, boolean primaryKey)(Code)
This method creates a new Date Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the Date Time
See Also:   DataStore.setFormat



newDateDisplay
public HtmlText newDateDisplay(String table, String column, boolean primaryKey, String format)(Code)
This method creates a new Date Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the Date Time.
See Also:   DataStore.setFormat



newDateEdit
public HtmlTextEdit newDateEdit(String table, String column, boolean primaryKey, int size)(Code)
This method creates a new Date Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - the number of characters to display in the component.



newDateTimeDisplay
public HtmlText newDateTimeDisplay(String table, String column, boolean primaryKey)(Code)
This method creates a new Date Time Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the Date Time
See Also:   DataStore.setFormat



newDateTimeDisplay
public HtmlText newDateTimeDisplay(String table, String column, boolean primaryKey, String format)(Code)
This method creates a new Date Time Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the Date Time.
See Also:   DataStore.setFormat



newDateTimeEdit
public HtmlTextEdit newDateTimeEdit(String table, String column, boolean primaryKey, int size)(Code)
This method creates a new DateTime Text Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - The number of characters to display in the component.



newDateTimeEdit
public HtmlTextEdit newDateTimeEdit(String table, String column, boolean primaryKey, int size, String format)(Code)
This method creates a new DateTime Text Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - The number of characters to display in the component.
Parameters:
  format - The display format for the date time.
See Also:   DataStore.setFormat



newDetailCaption
public HtmlText newDetailCaption(String caption)(Code)
This method creates a new caption for a detail screen.
Parameters:
  caption - The text for the caption.



newDetailCaption
public HtmlText newDetailCaption(String name, String caption)(Code)
This method creates a new caption for a detail screen.
Parameters:
  name - The name for the caption.
Parameters:
  caption - The text for the caption.



newDoubleDisplay
public HtmlText newDoubleDisplay(String table, String column, boolean primaryKey)(Code)
This method creates a new Double Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.



newDoubleDisplay
public HtmlText newDoubleDisplay(String table, String column, boolean primaryKey, String format)(Code)
This method creates a new Double Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the double.
See Also:   DataStore.setFormat



newDoubleEdit
public HtmlTextEdit newDoubleEdit(String table, String column, boolean primaryKey, int size)(Code)
This method creates a new Double Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - the number of characters to display in the component.



newDoubleEdit
public HtmlTextEdit newDoubleEdit(String table, String column, boolean primaryKey, int size, String format)(Code)
This method creates a new Double Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - the number of characters to display in the component.
Parameters:
  format - The display format for the Double.
See Also:   DataStore.setFormat



newEMailLink
public HtmlLink newEMailLink(String table, String column, String font, boolean primaryKey)(Code)
This method creates a new String Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the integer.
See Also:   DataStore.setFormat



newEMailLink
public HtmlLink newEMailLink(String table, String column, boolean primaryKey)(Code)



newEmailLink
public HtmlLink newEmailLink(String name, String text, String address)(Code)
Use this method to create an e-mail (send to) link.
Parameters:
  name - The name for the component.
Parameters:
  text - The Text to display under the link.
Parameters:
  address - The address of the person to send the mail to.



newEmailLink
public HtmlLink newEmailLink(String name, String text, String address, String font)(Code)
Use this method to create an e-mail (mail to) link.
Parameters:
  name - The name for the component.
Parameters:
  text - The Text to display under the link.
Parameters:
  address - The address of the person to send the mail to.
Parameters:
  font - The Font to use (HtmlText.FONT_...).



newFloatEdit
public HtmlTextEdit newFloatEdit(String table, String column, boolean primaryKey, int size, String format)(Code)
This method creates a new Float Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - the number of characters to display in the component.
Parameters:
  format - The display format for the Float.
See Also:   DataStore.setFormat



newHeadingCaption
public static HtmlText newHeadingCaption(String caption, HtmlPage p)(Code)
This method returns a table heading caption



newHeadingCaption
public static HtmlText newHeadingCaption(String name, String caption, HtmlPage p)(Code)
This method returns a table heading caption



newHighlightCaption
public HtmlText newHighlightCaption(String name, String caption)(Code)
This method creates a new caption for a detail screen.
Parameters:
  caption - The text for the caption.



newImageHyperLink
public static HtmlLink newImageHyperLink(String name, String source, String href, String target, HtmlPage p) throws Exception(Code)
Constructs an HtmlLink component containing an image. HtmlLink
Parameters:
  name - The name of the link.
Parameters:
  source - The source for the image.
Parameters:
  href - The URL for the link.
Parameters:
  target - The target for the link.
Parameters:
  p - The page the link will go in.



newImageLink
public HtmlLink newImageLink(String name, String normalImage, String highlightImage, String href, String target)(Code)
Use this method to create a image button link that changes it's gif or jpeg when the mouse passes over it.
Parameters:
  name - The name for the component.
Parameters:
  normalImage - The url of the image used when the mouse is not on the component
Parameters:
  highlightImage - The url of the image used when the mouse is on the component
Parameters:
  href - The link to go to when the image is clicked
Parameters:
  target - The target frame to use



newIntegerBucket
public HtmlText newIntegerBucket(String bucket)(Code)
This creates a integer bucket.



newIntegerBucket
public HtmlText newIntegerBucket(String bucket, String format)(Code)
This creates a integer bucket.



newIntegerCheckBox
public HtmlCheckBox newIntegerCheckBox(String table, String column, boolean primaryKey, int trueValue, int falseValue)(Code)
This method creates a new Check Box for an integer column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key. int trueValue The value of the check box if it is checked. int falseValue The value of the check box if it is not checked.



newIntegerDisplay
public HtmlText newIntegerDisplay(String table, String column, boolean primaryKey)(Code)
This method creates a new Integer Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.



newIntegerDisplay
public HtmlText newIntegerDisplay(String table, String column, boolean primaryKey, String format)(Code)
This method creates a new Integer Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the integer.
See Also:   DataStore.setFormat



newIntegerDropDownList
public HtmlDropDownList newIntegerDropDownList(String table, String column, boolean primaryKey, int[] values, String[] displayValues)(Code)
This method creates a new Drop Down List Box for an integer column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key. int[] values A list of values for the column. String[] dispValues A list of corresponding display values for each of the values for the column.



newIntegerEdit
public HtmlTextEdit newIntegerEdit(String table, String column, boolean primaryKey, int size)(Code)
This method creates a new Integer Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - The number of characters to display in the component.



newIntegerEdit
public HtmlTextEdit newIntegerEdit(String table, String column, boolean primaryKey, int size, String format)(Code)
This method creates a new Integer Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - The number of characters to display in the component.
Parameters:
  format - The display format for the date time.
See Also:   DataStore.setFormat



newIntegerRadioButtonGroup
public HtmlRadioButtonGroup newIntegerRadioButtonGroup(String table, String column, boolean primaryKey, int[] values, String[] displayValues)(Code)
This method creates a new Radio Button Group an integer column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key. int[] values A list of values for the column. String[] dispValues A list of corresponding display values for each of the values for the column.



newLongEdit
public HtmlTextEdit newLongEdit(String table, String column, boolean primaryKey, int size, String format)(Code)
This method creates a new Long Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - The number of characters to display in the component.
Parameters:
  format - The display format for the date time.
See Also:   DataStore.setFormat



newMultiLineEdit
public HtmlMultiLineTextEdit newMultiLineEdit(String table, String column, boolean primaryKey, int columns, int rows, int maxLength)(Code)
This method creates a new Multi Line Edit for a string column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  columns - The number of characters to display across in the component.
Parameters:
  rows - The number of characters to display down in the component.
Parameters:
  maxLength - The maximum number of characters the user can enter into the component.



newShortEdit
public HtmlTextEdit newShortEdit(String table, String column, boolean primaryKey, int size, String format)(Code)
This method creates a new Short Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - The number of characters to display in the component.
Parameters:
  format - The display format for the date time.
See Also:   DataStore.setFormat



newStringBucket
public HtmlText newStringBucket(String bucket)(Code)
This creates a string bucket.



newStringCheckBox
public HtmlCheckBox newStringCheckBox(String table, String column, boolean primaryKey, String trueValue, String falseValue)(Code)
This method creates a new Check Box for an String column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key. int trueValue The value of the check box if it is checked. int falseValue The value of the check box if it is not checked.



newStringDisplay
public HtmlText newStringDisplay(String table, String column, boolean primaryKey)(Code)
This method creates a new String Display Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  format - The display format for the integer.
See Also:   DataStore.setFormat



newStringDropDownList
public HtmlDropDownList newStringDropDownList(String table, String column, boolean primaryKey, String[] values, String[] displayValues)(Code)
This method creates a new Drop Down List Box for an String column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key. String[] values A list of values for the column. String[] dispValues A list of corresponding display values for each of the values for the column.



newStringEdit
public HtmlTextEdit newStringEdit(String table, String column, boolean primaryKey, int size, int length)(Code)
This method creates a new String Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - the number of characters to display in the component.
Parameters:
  length - The maximum number of characters the user can enter into the component.



newStringRadioButtonGroup
public HtmlRadioButtonGroup newStringRadioButtonGroup(String table, String column, boolean primaryKey, String[] values, String[] displayValues)(Code)
This method creates a new Radio Button Group a String column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key. String[] values A list of values for the column. String[] dispValues A list of corresponding display values for each of the values for the column.



newSubmitButton
public HtmlSubmitButton newSubmitButton(String buttonName, String displayCaption)(Code)
This method creates a new submit button.
Parameters:
  buttonName - The name that identifies the button.
Parameters:
  displayCaption - The caption to put on the button.



newSubmitImage
public HtmlSubmitImage newSubmitImage(String buttonName, String displayCaption)(Code)
This method creates a new submit image.
Parameters:
  buttonName - The name that identifies the button.
Parameters:
  displayCaption - The caption to put on the button.



newSubmitImage
public HtmlSubmitImage newSubmitImage(String buttonName, String displayCaption, int height)(Code)
This method creates a new submit image.
Parameters:
  buttonName - The name that identifies the button.
Parameters:
  displayCaption - The caption to put on the button.
Parameters:
  height - The height to make the button



newSubmitImage
public HtmlSubmitImage newSubmitImage(String buttonName, String displayCaption, int width, int height)(Code)
This method creates a new submit button.
Parameters:
  buttonName - The name that identifies the button.
Parameters:
  displayCaption - The caption to put on the button.
Parameters:
  width - The width to make the button
Parameters:
  height - The width to make the button



newSumColumn
public HtmlText newSumColumn(String name, String column, String format)(Code)
This method creates a new Sum Column for the DataStore.
Parameters:
  name - The name of the compute Expression.
Parameters:
  column - The column to sum.
Parameters:
  format - The format to display the results.
See Also:   DataStoreEvaluator
See Also:   DataStore.setFormat



newTable
public static HtmlTable newTable(String name, HtmlPage p, int width)(Code)
This method creates a new HTML Table, and is created on the HTML page that is passed into this method.
Parameters:
  name - java.lang.String name of the HTML Table
Parameters:
  p - HtmlPage the HTML page on which this component will be created
Parameters:
  width - int Width of the table com.salmonllc.html.HtmlTable



newTableCaption
public HtmlText newTableCaption(String caption)(Code)
This method creates a new caption for the heading of an HTMLDataTable.
Parameters:
  caption - The text for the caption.



newTableCaption
public HtmlText newTableCaption(String name, String caption)(Code)
This method creates a new caption for the heading of an HTMLDataTable.
Parameters:
  name - The name for the component.
Parameters:
  caption - The text for the caption.



newTableCaption
public static HtmlText newTableCaption(String caption, HtmlPage p)(Code)
This method returns a table caption



newTableCaption
public static HtmlText newTableCaption(String name, String caption, HtmlPage p)(Code)
This method returns a table caption



newTextHyperLink
public static HtmlLink newTextHyperLink(String name, String href, String caption, HtmlPage p)(Code)
Constructs an HtmlLink component containing a text caption. HtmlLink
Parameters:
  name - The name of the link.
Parameters:
  href - The URL for the link.
Parameters:
  caption - The text caption for the link.
Parameters:
  p - The page the link will go in.



newTextHyperLink
public static HtmlLink newTextHyperLink(String name, String href, String target, String caption, HtmlPage p)(Code)
Constructs an HtmlLink component containing a text caption. HtmlLink
Parameters:
  name - The name of the link.
Parameters:
  href - The URL for the link.
Parameters:
  target - The target for the link.
Parameters:
  caption - The text caption for the link.
Parameters:
  p - The page the link will go in.



newTextHyperLink
public static HtmlLink newTextHyperLink(String name, String href, String target, String caption, String linkFont, HtmlPage p)(Code)
Constructs an HtmlLink component containing a text caption. HtmlLink
Parameters:
  name - The name of the link.
Parameters:
  href - The URL for the link.
Parameters:
  target - The target for the link.
Parameters:
  caption - The text caption for the link.
Parameters:
  linkFont - The Font to use for the link
Parameters:
  p - The page the link will go in.



newTextHyperLinkSmall
public static HtmlLink newTextHyperLinkSmall(String name, String href, String caption, HtmlPage p)(Code)
Constructs an HtmlLink component containing a text caption Using a small link font. HtmlLink
Parameters:
  name - The name of the link.
Parameters:
  href - The URL for the link.
Parameters:
  caption - The text caption for the link.
Parameters:
  p - The page the link will go in.



newTextSpacer
public static HtmlText newTextSpacer(int spacerSize, HtmlPage p)(Code)
This method returns a text field containing a fixed number of blank spaces



newTimeEdit
public HtmlTextEdit newTimeEdit(String table, String column, boolean primaryKey, int size)(Code)
This method creates a new Time Edit Column.
Parameters:
  table - The table that the column is in.
Parameters:
  column - The data column.
Parameters:
  primaryKey - True if the column is part of the primary key.
Parameters:
  size - the number of characters to display in the component.



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.