| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlContainer com.salmonllc.forms.BaseForm com.salmonllc.forms.DetailForm
DetailForm | public class DetailForm extends BaseForm implements SubmitListener,ValueChangedListener,FileUploadListener(Code) | | Implements Detail form.
A display box is created containing a table with entry fields. Also created are submit
buttons as follows:
- "Delete": the current row is removed from the database.
- "Save": the database is updated with the contents of the current row.
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.
To hook key activities such as the "Delete" button, implement the DetailFormListener
interface and call addListener.
NOTE: The addColumn* methods assume the new column is non-primary. Typically the client
should explicitly specify the primary keys. For example,
DetailForm form = new DetailForm(this, "UserDetailPage");
DataStore ds = form.getDataStore();
add(form);
form.addColumn(_table, "user_id", "ID#", DataStore.DATATYPE_STRING, true, true);
ds.setPrimaryKey(_table + ".user_id", true);
// add other columns ...
|
Method Summary | |
public HtmlComponent | addBucket(String bucket, String caption, int type, int flags, HtmlComponent component, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a bucket to the datastore and bind a given entry field, and add it to table.
Parameters: bucket - Name of bucket to add. Parameters: caption - String Text of caption to use preceding entry field. | protected HtmlText | addCaption(String caption, int flags, HtmlTableCellProperties prop) Adds given caption to table, followed by ':'. | public HtmlComponent | addColumn(String table, String column, String caption, int type, int flags) Adds a column to the datastore and create a corresponding entry or display field in the table,
bound to the datastore.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlComponent | addColumn(String table, String column, String caption, int type, int flags, HtmlComponent component) Adds a column to the datastore and bind a given entry field, and add it to table.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlComponent | addColumn(String table, String column, String caption, int type, int flags, HtmlComponent component, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the datastore and bind a given entry field, and add it to table.
Parameters: table - String Name of table or bucket to add, or null if no DataStore binding. Parameters: column - String Name of column to add. Parameters: caption - String Text of caption to use preceding entry field. | public HtmlComponent | addColumn(String table, String column, String caption, String defaultValue, int type, int flags) Adds a column to the datastore and create a corresponding entry or display field in the table,
bound to the datastore.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlComponent | addColumn(String table, String column, String caption, String defaultValue, int type, int flags, HtmlComponent component, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the datastore and bind a given entry field, and add it to table.
Parameters: table - String Name of table or bucket to add, or null if no DataStore binding. Parameters: column - String Name of column to add. Parameters: caption - String Text of caption to use preceding entry field. | public void | addComponent(String caption, HtmlComponent component, int flags) Add a component to current position in table, without any data store processing. | public void | addComponent(String caption, HtmlComponent component, int flags, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Add a component to current position in table, without any data store processing. | protected void | addFormComponent(HtmlText caption, HtmlComponent component, int flags) Add a custom form component to the detail form. | public HtmlDropDownList | addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues) Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlDropDownList | addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlDropDownList | addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues, boolean isMandatory) Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlRadioButtonGroup | addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues) Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlRadioButtonGroup | addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public void | addListener(DetailFormListener listener) Adds a DetailFormListener. | public HtmlDropDownList | addPreInitDropDown(String table, String column, String caption, int flags, String initName, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlDropDownList | addPreInitDropDown(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlRadioButtonGroup | addPreInitRadioButtonGroup(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlDropDownList | addPreInitStringDropDown(String table, String column, String caption, int flags, String initName, String descName) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlDropDownList | addPreInitStringDropDown(String table, String column, String caption, int flags, String initName, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlDropDownList | addPreInitStringDropDown(String table, String column, String caption, int flags, String tableName, String initName, String descName) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlDropDownList | addPreInitStringDropDown(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlRadioButtonGroup | addPreInitStringRadioButtonGroup(String table, String column, String caption, int flags, String initName, String initColumn, String descName) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlRadioButtonGroup | addPreInitStringRadioButtonGroup(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public HtmlDropDownList | addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues) Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlDropDownList | addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues, boolean isMandatory) Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlRadioButtonGroup | addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues) Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | public HtmlRadioButtonGroup | addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. | protected void | addValueChangedListener(HtmlComponent c) Recursively adds ValueChangedListener. | public void | fileUploaded(FileUploadEvent e) | protected FormComponent | findFormComponent(HtmlComponent component) Used to find a previously added component. | public HtmlText | getCaption(HtmlComponent component) Get the cation component associated with the passed in HtmlComponent. | public int | getCol() Used to get the current column index. | public DataStore | getDataStore() Return the internal DataStore object. | public HtmlDisplayBox | getDisplayBox() Returns the display box component. | public HtmlContainer | getDisplayContainer() Returns container component which is main part of display box. | public com.salmonllc.html.HtmlText | getErrorMessageComp() Insert the method's description here. | public int | getRow() Used to get the current row index. | public HtmlTable | getTable() Returns the display table component. | protected boolean | hasComponent(HtmlContainer cont, HtmlComponent component) Recursively determins whether a container contains a component. | public String | makeName(String table, String column) Constructs a component name from table, column names. | public void | pageRequested(PageEvent p) This event will get fired each time a page is requested by the browser. | protected boolean | processError(int code, String caption, HtmlComponent component) Process a user error condition. | public void | setCancelImage(HtmlSubmitImage img) | public void | setCancelImage(String imageUrl) | public void | setDeleteButtonDisplay(String name) Sets display name for Delete button. | public void | setDeleteImage(HtmlSubmitImage img) | public void | setDeleteImage(String imageUrl) | public void | setErrorMessageComp(com.salmonllc.html.HtmlText newErrorMessageComp) Insert the method's description here. | public void | setFileUploadDirectory(String sDirectory) Sets the directory to upload the file. | public void | setHeadingCaption(String text) | public void | setSaveButtonDisplay(String name) Sets display name for Save button. | public void | setSaveImage(HtmlSubmitImage img) | public void | setSaveImage(String imageUrl) | public void | showDeleteButton(boolean visible) Sets the visiblility of the default Delete button. | public void | showSaveButton(boolean visible) Sets the visiblility of the default Save button. | public boolean | submitPerformed(SubmitEvent e) Inherited abstract method. | public boolean | validate() Validates entry fields according to current mode. | protected boolean | validateComponent(HtmlComponent comp, String name) Perform validation recursively on a component. | public boolean | valueChanged(ValueChangedEvent e) This method checks the entered value to see if it passes validation test. |
BUCKET | final public static int BUCKET(Code) | | addColumn flags parameter: Create a bucket using "column" parameter.
|
ERROR_ANY | final public static int ERROR_ANY(Code) | | |
ERROR_DUPLICATE_ROW | final public static int ERROR_DUPLICATE_ROW(Code) | | |
ERROR_EMPTY_FIELD | final public static int ERROR_EMPTY_FIELD(Code) | | |
ERROR_INVALID_ENTRY | final public static int ERROR_INVALID_ENTRY(Code) | | |
INIT_NO_CANCEL_BUTTON | final public static int INIT_NO_CANCEL_BUTTON(Code) | | constructor flags parameter: Do not create the default "Delete" button.
|
INIT_NO_DELETE_BUTTON | final public static int INIT_NO_DELETE_BUTTON(Code) | | constructor flags parameter: Do not create the default "Delete" button.
|
INIT_NO_PROCESSING | final public static int INIT_NO_PROCESSING(Code) | | constructor flags parameter: Do not process page requests.
|
INIT_NO_SAVE_BUTTON | final public static int INIT_NO_SAVE_BUTTON(Code) | | constructor flags parameter: Do not create the default "Save" button.
|
IS_REQUIRED | final public static int IS_REQUIRED(Code) | | addColumn flags parameter: Field is required.
|
NO_DATASTORE | final public static int NO_DATASTORE(Code) | | addColumn flags parameter: Do not create a datastore column.
|
PRIMARY_KEY | final public static int PRIMARY_KEY(Code) | | addColumn flags parameter: Column is primary key.
|
READ_ONLY | final public static int READ_ONLY(Code) | | addColumn flags parameter: Component is read-only or display only.
|
SAME_ROW | final public static int SAME_ROW(Code) | | addColumn flags parameter: Do not insert a line break, keep on same table row.
|
_noProcessing | protected boolean _noProcessing(Code) | | |
DetailForm | public DetailForm(HtmlPage page)(Code) | | Constructor for DetailForm..
This variant creates a default data store.
Parameters: page - com.salmonllc.html.HtmlPage Page containing the form. |
DetailForm | public DetailForm(HtmlPage page, DataStore ds)(Code) | | Constructor for DetailForm..
Parameters: page - com.salmonllc.html.HtmlPage Page containing the form. Parameters: ds - DataStore DataStore to use; if null then create one. |
DetailForm | public DetailForm(HtmlPage page, DataStore ds, int flags)(Code) | | Constructor for DetailForm..
Parameters: page - Page containing the form. Parameters: ds - DataStore to use; if null then create one. Parameters: flags - Bitwise-OR combination of INIT_NO_SAVE_BUTTON, etc. |
addBucket | public HtmlComponent addBucket(String bucket, String caption, int type, int flags, HtmlComponent component, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a bucket to the datastore and bind a given entry field, and add it to table.
Parameters: bucket - Name of bucket to add. Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: type - int Type of datastore column--use DataStore.DATATYPE_* values. Parameters: flags - int Flags. Parameters: component - Use the given component for entry or display; if null thencreate a text entry field. Parameters: propCaption - Properties for caption table cell. Parameters: prop - Properties for data table cell. |
addColumn | public HtmlComponent addColumn(String table, String column, String caption, int type, int flags) throws Exception(Code) | | Adds a column to the datastore and create a corresponding entry or display field in the table,
bound to the datastore.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: type - int Type of datastore column--use DataStore.DATATYPE_* values. Parameters: flags - int Flags |
addColumn | public HtmlComponent addColumn(String table, String column, String caption, int type, int flags, HtmlComponent component) throws Exception(Code) | | Adds a column to the datastore and bind a given entry field, and add it to table.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: type - int Type of datastore column--use DataStore.DATATYPE_* values. Parameters: flags - int Flags. Parameters: component - Use the given component for the entry or display field. |
addColumn | public HtmlComponent addColumn(String table, String column, String caption, int type, int flags, HtmlComponent component, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the datastore and bind a given entry field, and add it to table.
Parameters: table - String Name of table or bucket to add, or null if no DataStore binding. Parameters: column - String Name of column to add. Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: type - int Type of datastore column--use DataStore.DATATYPE_* values. Parameters: flags - int Flags. Parameters: component - Use the given component for entry or display; if null thencreate a text entry field. Parameters: propCaption - Properties for caption table cell. Parameters: prop - Properties for data table cell. |
addColumn | public HtmlComponent addColumn(String table, String column, String caption, String defaultValue, int type, int flags) throws Exception(Code) | | Adds a column to the datastore and create a corresponding entry or display field in the table,
bound to the datastore.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: type - int Type of datastore column--use DataStore.DATATYPE_* values. Parameters: flags - int Flags |
addColumn | public HtmlComponent addColumn(String table, String column, String caption, String defaultValue, int type, int flags, HtmlComponent component, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the datastore and bind a given entry field, and add it to table.
Parameters: table - String Name of table or bucket to add, or null if no DataStore binding. Parameters: column - String Name of column to add. Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: type - int Type of datastore column--use DataStore.DATATYPE_* values. Parameters: flags - int Flags. Parameters: component - Use the given component for entry or display; if null thencreate a text entry field. Parameters: propCaption - Properties for caption table cell. Parameters: prop - Properties for data table cell. |
addComponent | public void addComponent(String caption, HtmlComponent component, int flags) throws Exception(Code) | | Add a component to current position in table, without any data store processing.
Parameters: caption - String Caption to precede table cell, or null Parameters: component - HtmlComponent Component to add Parameters: flags - int Flags |
addComponent | public void addComponent(String caption, HtmlComponent component, int flags, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Add a component to current position in table, without any data store processing.
Parameters: caption - Caption to precede table cell, or null Parameters: component - Component to add Parameters: flags - Flags Parameters: propCaption - Table cell properties for caption, or null Parameters: prop - Table cell properties for data, or null |
addFormComponent | protected void addFormComponent(HtmlText caption, HtmlComponent component, int flags)(Code) | | Add a custom form component to the detail form. The regular addColumn just adds HtmlTextEdit's
Parameters: caption - java.lang.String Parameters: component - com.salmonllc.html.HtmlComponent Parameters: flags - int Parameters: name - java.lang.String |
addIntegerDropDown | public HtmlDropDownList addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues) throws Exception(Code) | | Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. |
addIntegerDropDown | public HtmlDropDownList addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. Parameters: propCaption - Table cell properties for caption, or null Parameters: prop - Table cell properties for data, or null |
addIntegerDropDown | public HtmlDropDownList addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues, boolean isMandatory) throws Exception(Code) | | Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. |
addIntegerRadioButtonGroup | public HtmlRadioButtonGroup addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues) throws Exception(Code) | | Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. |
addIntegerRadioButtonGroup | public HtmlRadioButtonGroup addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. Parameters: propCaption - Properties for caption table cell. Parameters: prop - Properties for data table cell. |
addListener | public void addListener(DetailFormListener listener)(Code) | | Adds a DetailFormListener.
Parameters: listener - com.salmonllc.forms.DetailFormListener |
addPreInitDropDown | public HtmlDropDownList addPreInitDropDown(String table, String column, String caption, int flags, String initName, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized, also name of its primary integer column. Parameters: descName - Name of description column in initialization table. |
addPreInitDropDown | public HtmlDropDownList addPreInitDropDown(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized. Parameters: initColumn - Name of primary integer column of initName table. Parameters: descName - Name of description column in initialization table. |
addPreInitRadioButtonGroup | public HtmlRadioButtonGroup addPreInitRadioButtonGroup(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized. Parameters: initColumn - Name of primary integer column of initName table. Parameters: descName - Name of description column in initialization table. |
addPreInitStringDropDown | public HtmlDropDownList addPreInitStringDropDown(String table, String column, String caption, int flags, String initName, String descName) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized, also name of its primary integer column. Parameters: descName - Name of description column in initialization table. |
addPreInitStringDropDown | public HtmlDropDownList addPreInitStringDropDown(String table, String column, String caption, int flags, String initName, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized, also name of its primary integer column. Parameters: descName - Name of description column in initialization table. |
addPreInitStringDropDown | public HtmlDropDownList addPreInitStringDropDown(String table, String column, String caption, int flags, String tableName, String initName, String descName) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized, also name of its primary integer column. Parameters: descName - Name of description column in initialization table. |
addPreInitStringDropDown | public HtmlDropDownList addPreInitStringDropDown(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized. Parameters: initColumn - Name of primary integer column of initName table. Parameters: descName - Name of description column in initialization table. |
addPreInitStringRadioButtonGroup | public HtmlRadioButtonGroup addPreInitStringRadioButtonGroup(String table, String column, String caption, int flags, String initName, String initColumn, String descName) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized. Parameters: initColumn - Name of primary integer column of initName table. Parameters: descName - Name of description column in initialization table. |
addPreInitStringRadioButtonGroup | public HtmlRadioButtonGroup addPreInitStringRadioButtonGroup(String table, String column, String caption, int flags, String initName, String initColumn, String descName, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the data store and list box, search box, or both.
The column is of type integer and the display is a drop-down list which is
preinitialized from a second table structured in a particular way.
Parameters: table - Name of table for datastore Parameters: column - Name of column for datastore Parameters: caption - Caption for search box and/or list box, or null Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: initName - Name of table used to initialized. Parameters: initColumn - Name of primary integer column of initName table. Parameters: descName - Name of description column in initialization table. |
addStringDropDown | public HtmlDropDownList addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues) throws Exception(Code) | | Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. |
addStringDropDown | public HtmlDropDownList addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues, boolean isMandatory) throws Exception(Code) | | Adds a column to the datastore, using integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. |
addStringRadioButtonGroup | public HtmlRadioButtonGroup addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues) throws Exception(Code) | | Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. |
addStringRadioButtonGroup | public HtmlRadioButtonGroup addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues, HtmlTableCellProperties propCaption, HtmlTableCellProperties prop) throws Exception(Code) | | Adds a column to the datastore, using an integer-type radio button group.
Parameters: table - String Name of table to add Parameters: column - String Name of column to add Parameters: caption - String Text of caption to use preceding entry field. If null, none. Parameters: flags - int Flags 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. Parameters: propCaption - Properties for caption table cell. Parameters: prop - Properties for data table cell. |
addValueChangedListener | protected void addValueChangedListener(HtmlComponent c)(Code) | | Recursively adds ValueChangedListener.
Parameters: c - com.salmonllc.html.HtmlComponent |
findFormComponent | protected FormComponent findFormComponent(HtmlComponent component)(Code) | | Used to find a previously added component.
FormComponent Parameters: name - java.lang.String |
getCaption | public HtmlText getCaption(HtmlComponent component)(Code) | | Get the cation component associated with the passed in HtmlComponent.
FormComponent Parameters: name - java.lang.String |
getCol | public int getCol()(Code) | | Used to get the current column index.
int |
getDataStore | public DataStore getDataStore()(Code) | | Return the internal DataStore object.
com.salmonllc.sql.DataStore |
getDisplayBox | public HtmlDisplayBox getDisplayBox()(Code) | | Returns the display box component.
com.salmonllc.html.HtmlDisplayBox |
getDisplayContainer | public HtmlContainer getDisplayContainer()(Code) | | Returns container component which is main part of display box.
com.salmonllc.html.HtmlContainer |
getErrorMessageComp | public com.salmonllc.html.HtmlText getErrorMessageComp()(Code) | | Insert the method's description here.
Creation date: (5/7/02 5:29:03 PM)
com.salmonllc.html.HtmlText |
getRow | public int getRow()(Code) | | Used to get the current row index.
int |
getTable | public HtmlTable getTable()(Code) | | Returns the display table component.
com.salmonllc.html.HtmlTable |
hasComponent | protected boolean hasComponent(HtmlContainer cont, HtmlComponent component)(Code) | | Recursively determins whether a container contains a component.
boolean Parameters: cont - com.salmonllc.html.HtmlContainer Parameters: component - com.salmonllc.html.HtmlComponent |
makeName | public String makeName(String table, String column)(Code) | | Constructs a component name from table, column names.
java.lang.String Parameters: table - java.lang.String Parameters: column - java.lang.String |
pageRequested | public void pageRequested(PageEvent p) throws Exception(Code) | | This event will get fired each time a page is requested by the browser.
|
processError | protected boolean processError(int code, String caption, HtmlComponent component)(Code) | | Process a user error condition.
Parameters: code - int Parameters: caption - java.lang.String Parameters: component - com.salmonllc.html.HtmlComponent int If true, continue event processing. |
setCancelImage | public void setCancelImage(HtmlSubmitImage img)(Code) | | Replaces default cancel button (if any) with an image button
Parameters: imageUrl - URL of image. |
setCancelImage | public void setCancelImage(String imageUrl)(Code) | | Replaces default cancel button (if any) with an image button
Parameters: imageUrl - URL of image. |
setDeleteButtonDisplay | public void setDeleteButtonDisplay(String name) throws Exception(Code) | | Sets display name for Delete button.
Parameters: String - name |
setDeleteImage | public void setDeleteImage(HtmlSubmitImage img)(Code) | | Replaces default search button (if any) with an image button
Parameters: imageUrl - URL of image. |
setDeleteImage | public void setDeleteImage(String imageUrl)(Code) | | Replaces default search button (if any) with an image button
Parameters: imageUrl - URL of image. |
setErrorMessageComp | public void setErrorMessageComp(com.salmonllc.html.HtmlText newErrorMessageComp)(Code) | | Insert the method's description here.
Creation date: (5/7/02 5:29:03 PM)
Parameters: newErrorMessageComp - com.salmonllc.html.HtmlText |
setFileUploadDirectory | public void setFileUploadDirectory(String sDirectory)(Code) | | Sets the directory to upload the file.
Parameters: String - sDirectory directory name. |
setHeadingCaption | public void setHeadingCaption(String text)(Code) | | This method sets the text for the heading on the component
|
setSaveButtonDisplay | public void setSaveButtonDisplay(String name) throws Exception(Code) | | Sets display name for Save button.
Parameters: text - java.lang.String |
setSaveImage | public void setSaveImage(HtmlSubmitImage img)(Code) | | Replaces default add button (if any) with an image button
Parameters: imageUrl - URL of image. |
setSaveImage | public void setSaveImage(String imageUrl)(Code) | | Replaces default add button (if any) with an image button
Parameters: imageUrl - URL of image. |
showDeleteButton | public void showDeleteButton(boolean visible)(Code) | | Sets the visiblility of the default Delete button.
Parameters: visible - boolean |
showSaveButton | public void showSaveButton(boolean visible)(Code) | | Sets the visiblility of the default Save button.
Parameters: visible - boolean |
submitPerformed | public boolean submitPerformed(SubmitEvent e) throws Exception(Code) | | Inherited abstract method.
boolean Parameters: e - com.salmonllc.html.events.SubmitEvent |
validate | public boolean validate() throws Exception(Code) | | Validates entry fields according to current mode.
True if validation was successful. |
validateComponent | protected boolean validateComponent(HtmlComponent comp, String name)(Code) | | Perform validation recursively on a component.
boolean Parameters: comp - com.salmonllc.html.HtmlComponent Parameters: caption - java.lang.String |
valueChanged | public boolean valueChanged(ValueChangedEvent e) throws Exception(Code) | | This method checks the entered value to see if it passes validation test.
boolean Parameters: e - com.salmonllc.html.events.ValueChangedEvent |
|
|