| com.salmonllc.forms.BaseForm com.salmonllc.forms.BaseListForm com.salmonllc.forms.ListForm
ListForm | public class ListForm extends BaseListForm (Code) | | Implements Search/List form.
At the top will be a display box with a table for search criteria and a "Search" button.
Following will be another display box with a datatable to display the results from the
search. This box contains a "Add" button which requests the detail page (name supplied)
with the parameters "mode=add", and "=", the second repeated for
as many primary keys as there are.
The client of this class will add data-store columns, specifying whether they go in
the search box, list box, or both.
The form is implemented as a container to go within an instance of (a subclass of)
HtmlPage. Specify as many data store columns as you want using the addColumn* methods
and indicate which goes in the search box and which goes in the list box.
To hook key activities such as the "Add" button, implement the ListFormListener interface
and call addListener.
Example:
ListForm form = new ListForm(this, "UserDetailPage");
add(form);
form.addColumn(_table, "user_id", "ID#", DataStoreBuffer.DATATYPE_INT, form.PRIMARY_KEY,
"UserDetailPage?mode=update");
// add other columns ...
|
ListForm | public ListForm(HtmlPage page, String detailPageName)(Code) | | Implements standard Search/List form.
Default data store is created. Standard add button is included.
Parameters: page - Page containing this form as a component. Parameters: detailPageName - Name of associated detail page. |
ListForm | public ListForm(HtmlPage page, String detailPageName, DataStore ds)(Code) | | Implements standard Search/List form.
Standard add button is included.
Parameters: page - HtmlPage Page containing this form as a component. Parameters: detailPageName - String Name of corresponding detail page to use as link destination. Parameters: ds - DataStore Data store object to use; if null then create one. |
ListForm | public ListForm(HtmlPage page, String detailPageName, DataStore ds, int flags)(Code) | | Implements standard Search/List form.
Parameters: page - Page containing this form as a component. Parameters: detailPageName - Name of corresponding detail page to use as link destination. Parameters: ds - Data store object to use; if null then create one. Parameters: flags - Bitwise-OR combination of INIT_NO_SEARCH_BUTTON, etc. |
getDetailPageName | public String getDetailPageName()(Code) | | This method returns the name of the detail page for this list
|
setDetailPageName | public void setDetailPageName(String newPageName)(Code) | | This method sets the name of the detail page for this list
|
submitPerformed | public boolean submitPerformed(SubmitEvent e) throws Exception(Code) | | Inherited abstract method.
boolean Parameters: e - com.salmonllc.html.events.SubmitEvent |
Methods inherited from com.salmonllc.forms.BaseListForm | public void addBucket(String name, String caption, int type, int flags) throws Exception(Code)(Java Doc) public void addBucket(String name, String caption, int type, int flags, String href, String format) throws Exception(Code)(Java Doc) public void addBucket(String name, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) throws Exception(Code)(Java Doc) public void addColumn(String table, String column, String caption, int type, int flags) throws Exception(Code)(Java Doc) public void addColumn(String table, String column, String caption, int type, int flags, String href) throws Exception(Code)(Java Doc) public void addColumn(String table, String column, String caption, int type, int flags, String href, String format) throws Exception(Code)(Java Doc) public void addColumn(String table, String column, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) throws Exception(Code)(Java Doc) public void addComposite(HtmlComposite composite, String caption, int flags) throws Exception(Code)(Java Doc) public void addDateRange(String table, String column, String caption, int flags, String format) throws Exception(Code)(Java Doc) public HtmlComponent addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues) throws Exception(Code)(Java Doc) public HtmlComponent addIntegerDropDown(String table, String column, String caption, int flags, int values, String displayValues, boolean isMandatory) throws Exception(Code)(Java Doc) public HtmlComponent addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues) throws Exception(Code)(Java Doc) public HtmlComponent addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues, String defaultVal) throws Exception(Code)(Java Doc) public HtmlComponent addIntegerRadioButtonGroup(String table, String column, String caption, int flags, int values, String displayValues, String defaultVal, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc) public void addListBoxHeadingComponent(HtmlComponent c)(Code)(Java Doc) public void addListDisplay(String fullColName, String caption, HtmlComponent component) throws Exception(Code)(Java Doc) public void addListDisplay(String fullColName, String caption, HtmlComponent component, HtmlTableCellProperties prop) throws Exception(Code)(Java Doc) public void addListener(ListFormListener listener)(Code)(Java Doc) public void addParameterKey(String pageParam)(Code)(Java Doc) public HtmlComponent addPreInitDropDown(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc) public HtmlComponent addPreInitRadioButtonGroup(String table, String column, String caption, int flags, String initName, String descName) throws Exception(Code)(Java Doc) public HtmlComponent addPreInitRadioButtonGroup(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc) public HtmlComponent addPreInitStringDropDown(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc) public HtmlComponent addPreInitStringRadioButtonGroup(String table, String column, String caption, int flags, String initTable, String initName, String descName) throws Exception(Code)(Java Doc) public void addSearchBoxHeadingComponent(HtmlComponent c)(Code)(Java Doc) public HtmlFormComponent addSearchComponent(String name, String caption, int type, int flags) throws Exception(Code)(Java Doc) public HtmlComponent addSearchDisplay(String name, String caption, HtmlComponent component, int flags) throws Exception(Code)(Java Doc) public HtmlComponent addSearchDisplay(String name, String caption, HtmlComponent component, int flags, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc) public HtmlComponent addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues) throws Exception(Code)(Java Doc) public HtmlComponent addStringDropDown(String table, String column, String caption, int flags, String values, String displayValues, boolean isMandatory) throws Exception(Code)(Java Doc) public HtmlComponent addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues) throws Exception(Code)(Java Doc) public HtmlComponent addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues, String defaultVal) throws Exception(Code)(Java Doc) public HtmlComponent addStringRadioButtonGroup(String table, String column, String caption, int flags, String values, String displayValues, String defaultVal, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch) throws Exception(Code)(Java Doc) public void doRetrieve()(Code)(Java Doc) protected int findOrAdd(String name)(Code)(Java Doc) public String getAdvancedSearchCaption()(Code)(Java Doc) public Enumeration getBaseListFormComponents()(Code)(Java Doc) public String getBasicSearchCaption()(Code)(Java Doc) protected BaseListFormComponent getContainer(String name)(Code)(Java Doc) public DataStore getDataStore()(Code)(Java Doc) public HtmlDisplayBox getListBox()(Code)(Java Doc) public HtmlComponent getListComponent(String name)(Code)(Java Doc) public HtmlComponent getListLinkComponent(String name)(Code)(Java Doc) public HtmlDataTable getListTable()(Code)(Java Doc) public HtmlDisplayBox getSearchBox()(Code)(Java Doc) public HtmlComponent getSearchComponent(String name)(Code)(Java Doc) public Enumeration getSearchComponents()(Code)(Java Doc) public String getSearchCriteria()(Code)(Java Doc) protected HtmlFormComponent makeComponent(String name, int type)(Code)(Java Doc) protected HtmlRadioButtonGroup newRadioButtonGroup(String name, int values, String displayValues, String defaultVal)(Code)(Java Doc) protected HtmlRadioButtonGroup newRadioButtonGroup(String name, String values, String displayValues, String defaultVal)(Code)(Java Doc) public void pageRequested(PageEvent p) throws Exception(Code)(Java Doc) protected Date parseDate(String sValue) throws ParseException(Code)(Java Doc) protected void processSearchComponent(int i, CriteriaString cr) throws Exception(Code)(Java Doc) protected void processSearchCompositeComponent(HtmlComposite composite, CriteriaString cr) throws Exception(Code)(Java Doc) public void removeParameterKey(String pageParam)(Code)(Java Doc) public void resetParameters()(Code)(Java Doc) public void setAddImage(HtmlSubmitImage img)(Code)(Java Doc) public void setAddImage(String imageUrl)(Code)(Java Doc) public void setAdvancedSearchCaption(String caption)(Code)(Java Doc) public void setBasicSearchCaption(String caption)(Code)(Java Doc) public void setLinkFont(String font)(Code)(Java Doc) public void setListBoxCaption(String caption)(Code)(Java Doc) public void setParameterValue(String pageParam, String value, boolean extend)(Code)(Java Doc) public void setSearchBoxCaption(String caption)(Code)(Java Doc) public void setSearchImage(HtmlSubmitImage img)(Code)(Java Doc) public void setSearchImage(String imageUrl)(Code)(Java Doc) public void showAddButton(boolean visible)(Code)(Java Doc) public void showSearchButton(boolean visible)(Code)(Java Doc) public boolean submitPerformed(SubmitEvent e) throws Exception(Code)(Java Doc)
|
|
|