| 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.
|
Method Summary | |
public DataStore | getDataStore() This method returns the DataStore created by creating components in the factory. | public static HtmlTableCellProperties | newColSpan(int spanSize) This method returns an HtmlTableCellProperties object with the colspan attribute set. | public HtmlText | newComputedColumn(String expression, String format) This method creates a new Computed Column in the DataStore. | public HtmlText | newComputedColumn(String name, String expression, String format) This method creates a new Computed Column in the DataStore. | public HtmlDataTable | newDataTable(String select) This method will create an HtmlDataTable from a select statement. | public static HtmlText | newDataText(DataStore ds, String table_col, HtmlPage p) | public static HtmlText | newDataText(DataStore ds, String table_col, String format, HtmlPage p) | public HtmlText | newDateDisplay(String table, String column, boolean primaryKey) This method creates a new Date Display Column. | public HtmlText | newDateDisplay(String table, String column, boolean primaryKey, String format) This method creates a new Date Display Column. | public HtmlTextEdit | newDateEdit(String table, String column, boolean primaryKey, int size) This method creates a new Date Edit Column. | public HtmlText | newDateTimeDisplay(String table, String column, boolean primaryKey) This method creates a new Date Time Display Column. | public HtmlText | newDateTimeDisplay(String table, String column, boolean primaryKey, String format) This method creates a new Date Time Display Column. | public HtmlTextEdit | newDateTimeEdit(String table, String column, boolean primaryKey, int size) This method creates a new DateTime Text Edit Column. | public HtmlTextEdit | newDateTimeEdit(String table, String column, boolean primaryKey, int size, String format) This method creates a new DateTime Text Edit Column. | public HtmlText | newDetailCaption(String caption) This method creates a new caption for a detail screen. | public HtmlText | newDetailCaption(String name, String caption) This method creates a new caption for a detail screen. | public HtmlText | newDoubleDisplay(String table, String column, boolean primaryKey) This method creates a new Double Display Column. | public HtmlText | newDoubleDisplay(String table, String column, boolean primaryKey, String format) This method creates a new Double Display Column. | public HtmlTextEdit | newDoubleEdit(String table, String column, boolean primaryKey, int size) This method creates a new Double Edit Column. | public HtmlTextEdit | newDoubleEdit(String table, String column, boolean primaryKey, int size, String format) This method creates a new Double Edit Column. | public HtmlLink | newEMailLink(String table, String column, String font, boolean primaryKey) This method creates a new String Display Column. | public HtmlLink | newEMailLink(String table, String column, boolean primaryKey) | public HtmlLink | newEmailLink(String name, String text, String address) Use this method to create an e-mail (send to) link. | public HtmlLink | newEmailLink(String name, String text, String address, String font) Use this method to create an e-mail (mail to) link. | public HtmlTextEdit | newFloatEdit(String table, String column, boolean primaryKey, int size, String format) This method creates a new Float Edit Column. | public static HtmlText | newHeadingCaption(String caption, HtmlPage p) | public static HtmlText | newHeadingCaption(String name, String caption, HtmlPage p) | public HtmlText | newHighlightCaption(String name, String caption) This method creates a new caption for a detail screen. | public static HtmlLink | newImageHyperLink(String name, String source, String href, String target, HtmlPage p) Constructs an HtmlLink component containing an image. | public HtmlLink | newImageLink(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 HtmlText | newIntegerBucket(String bucket) This creates a integer bucket. | public HtmlText | newIntegerBucket(String bucket, String format) This creates a integer bucket. | public HtmlCheckBox | newIntegerCheckBox(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 HtmlText | newIntegerDisplay(String table, String column, boolean primaryKey) This method creates a new Integer Display Column. | public HtmlText | newIntegerDisplay(String table, String column, boolean primaryKey, String format) This method creates a new Integer Display Column. | public HtmlDropDownList | newIntegerDropDownList(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 HtmlTextEdit | newIntegerEdit(String table, String column, boolean primaryKey, int size) This method creates a new Integer Edit Column. | public HtmlTextEdit | newIntegerEdit(String table, String column, boolean primaryKey, int size, String format) This method creates a new Integer Edit Column. | public HtmlRadioButtonGroup | newIntegerRadioButtonGroup(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 HtmlTextEdit | newLongEdit(String table, String column, boolean primaryKey, int size, String format) This method creates a new Long Edit Column. | public HtmlMultiLineTextEdit | newMultiLineEdit(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 HtmlTextEdit | newShortEdit(String table, String column, boolean primaryKey, int size, String format) This method creates a new Short Edit Column. | public HtmlText | newStringBucket(String bucket) This creates a string bucket. | public HtmlCheckBox | newStringCheckBox(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 HtmlText | newStringDisplay(String table, String column, boolean primaryKey) This method creates a new String Display Column. | public HtmlDropDownList | newStringDropDownList(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 HtmlTextEdit | newStringEdit(String table, String column, boolean primaryKey, int size, int length) This method creates a new String Edit Column. | public HtmlRadioButtonGroup | newStringRadioButtonGroup(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 HtmlSubmitButton | newSubmitButton(String buttonName, String displayCaption) This method creates a new submit button. | public HtmlSubmitImage | newSubmitImage(String buttonName, String displayCaption) This method creates a new submit image. | public HtmlSubmitImage | newSubmitImage(String buttonName, String displayCaption, int height) This method creates a new submit image. | public HtmlSubmitImage | newSubmitImage(String buttonName, String displayCaption, int width, int height) This method creates a new submit button. | public HtmlText | newSumColumn(String name, String column, String format) This method creates a new Sum Column for the DataStore. | public static HtmlTable | newTable(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 HtmlText | newTableCaption(String caption) This method creates a new caption for the heading of an HTMLDataTable. | public HtmlText | newTableCaption(String name, String caption) This method creates a new caption for the heading of an HTMLDataTable. | public static HtmlText | newTableCaption(String caption, HtmlPage p) | public static HtmlText | newTableCaption(String name, String caption, HtmlPage p) | public static HtmlLink | newTextHyperLink(String name, String href, String caption, HtmlPage p) Constructs an HtmlLink component containing a text caption. | public static HtmlLink | newTextHyperLink(String name, String href, String target, String caption, HtmlPage p) Constructs an HtmlLink component containing a text caption. | public static HtmlLink | newTextHyperLink(String name, String href, String target, String caption, String linkFont, HtmlPage p) Constructs an HtmlLink component containing a text caption. | public static HtmlLink | newTextHyperLinkSmall(String name, String href, String caption, HtmlPage p) Constructs an HtmlLink component containing a text caption Using a small link font. | public static HtmlText | newTextSpacer(int spacerSize, HtmlPage p) | public HtmlTextEdit | newTimeEdit(String table, String column, boolean primaryKey, int size) This method creates a new Time Edit Column. |
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. |
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 |
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 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 |
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.
|
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 |
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. |
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. |
|
|