| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlContainer com.salmonllc.forms.BaseForm com.salmonllc.forms.BaseListForm com.salmonllc.forms.ListInlineEditingForm
ListInlineEditingForm | public class ListInlineEditingForm extends BaseListForm implements ValueChangedListener(Code) | | This class is used for making a list form that you can add, delete ,edit
and save values directly in the listing datatable
|
Method Summary | |
public void | addBucket(String name, String caption, int type, int flags) Creates a datastore bucket and corresponding display components for the search and list
boxes.
Parameters: name - Name of bucket Parameters: caption - Caption for search box and/or list box, or null Parameters: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addBucket(String name, String caption, int type, int flags, String href, String format) Creates a datastore bucket and corresponding display components for the search and list
boxes.
Parameters: name - Name of bucket Parameters: caption - Caption for search box and/or list box, or null Parameters: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addBucket(String name, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) Creates a datastore bucket and corresponding display components for the search and list
boxes.
Parameters: name - Name of bucket Parameters: caption - Caption for search box and/or list box, or null Parameters: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addColumn(String table, String column, String caption, int type, int flags) Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addColumn(String table, String column, String caption, int type, int flags, String href) Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addColumn(String table, String column, String caption, int type, int flags, String href, String format) Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addColumn(String table, String column, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. | public void | addDeleteCheckBox() Adds a check box to each row so you can delete each checked row when you press the delete button. | protected void | addFormComponent(String caption, HtmlComponent component, int flags) Adds a custom component to the List portion of the form. | public void | addListener(ListInLineEditingFormListener listener) Adds a ListInLineEditingFormListener. | protected void | addValueChangedListener(HtmlComponent c) Recursively adds ValueChangedListener. | protected HtmlComponent | findFormComponent(HtmlComponent component) | protected boolean | hasComponent(HtmlContainer cont, HtmlComponent component) Recursively determins whether a container contains a component. | protected boolean | processError(int code, String caption, HtmlComponent component, int row) Process a user error condition. | public void | setDeleteImage(HtmlSubmitImage img) | public void | setDeleteImage(String imageUrl) | public void | setSaveImage(HtmlSubmitImage img) | public void | setSaveImage(String imageUrl) | public void | showDeleteButton(boolean visible) Sets the vivibility of the default Delete button. | public void | showSaveButton(boolean visible) Sets the vivibility of the default Save button. | public boolean | submitPerformed(SubmitEvent e) Inherited abstract method. | protected boolean | validateComponent(HtmlComponent comp, int row) Perform validation recursively on a component. | public boolean | validateRow(int row) Validates entry fields according to current mode. | public boolean | valueChanged(ValueChangedEvent e) Tests that data entered in the edit components passes simple validation. |
ERROR_ANY | final public static int ERROR_ANY(Code) | | |
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_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.
|
MAKE_EDIT | final public static int MAKE_EDIT(Code) | | addColumn flags parameter: Make the field an edit field
|
_bktDelete | final public static String _bktDelete(Code) | | delete bucket
|
ListInlineEditingForm | public ListInlineEditingForm(HtmlPage page)(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. |
ListInlineEditingForm | public ListInlineEditingForm(HtmlPage page, DataStore ds)(Code) | | Implements standard Search/List form.
Standard add button is included.
Parameters: page - HtmlPage Page containing this form as a component. Parameters: ds - DataStore Data store object to use; if null then create one. |
ListInlineEditingForm | public ListInlineEditingForm(HtmlPage page, DataStore ds, int flags)(Code) | | Implements standard Search/List form.
Parameters: page - HtmlPage Page containing this form as a component. Parameters: ds - DataStore Data store object to use; if null then create one. Parameters: flags - Bitwise-OR combination of INIT_NO_SAVE_BUTTON, etc. |
addBucket | public void addBucket(String name, String caption, int type, int flags) throws Exception(Code) | | Creates a datastore bucket and corresponding display components for the search and list
boxes.
Parameters: name - Name of bucket Parameters: caption - Caption for search box and/or list box, or null Parameters: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. |
addBucket | public void addBucket(String name, String caption, int type, int flags, String href, String format) throws Exception(Code) | | Creates a datastore bucket and corresponding display components for the search and list
boxes.
Parameters: name - Name of bucket Parameters: caption - Caption for search box and/or list box, or null Parameters: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: href - HREF to use in hotlink from this column in list box, else null. Parameters: format - Format used to display column in listbox (as in DataStore), else null. |
addBucket | public void addBucket(String name, String caption, int type, int flags, String href, String format, HtmlTableCellProperties propCaption, HtmlTableCellProperties propSearch, HtmlTableCellProperties propList) throws Exception(Code) | | Creates a datastore bucket and corresponding display components for the search and list
boxes.
Parameters: name - Name of bucket Parameters: caption - Caption for search box and/or list box, or null Parameters: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: href - HREF to use in hotlink from this column in list box, else null. Parameters: format - Format used to display column in listbox (as in DataStore), else null. Parameters: propCaption - HtmlTableCellProperties Parameters: propSearch - HtmlTableCellProperties Parameters: propList - HtmlTableCellProperties |
addColumn | public void addColumn(String table, String column, String caption, int type, int flags) throws Exception(Code) | | Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. |
addColumn | public void addColumn(String table, String column, String caption, int type, int flags, String href) throws Exception(Code) | | Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: href - HREF to use in hotlink from this column in list box, else null. |
addColumn | public void addColumn(String table, String column, String caption, int type, int flags, String href, String format) throws Exception(Code) | | Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: href - HREF to use in hotlink from this column in list box, else null. Parameters: format - Format used to display column in listbox (as in DataStore), else null. |
addColumn | 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) | | Creates a datastore column and corresponding display components for the search and list
boxes.
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: type - Type of datastore column, using DataStore.DATATYPE_* values Parameters: flags - Bitwise-OR combination of PRIMARY_KEY, etc. 0 = default. Parameters: href - HREF to use in hotlink from this column in list box, else null. Parameters: format - Format used to display column in listbox (as in DataStore), else null. Parameters: propCaption - HtmlTableCellProperties Parameters: propSearch - HtmlTableCellProperties Parameters: propList - HtmlTableCellProperties |
addDeleteCheckBox | public void addDeleteCheckBox()(Code) | | Adds a check box to each row so you can delete each checked row when you press the delete button.
|
addFormComponent | protected void addFormComponent(String caption, HtmlComponent component, int flags)(Code) | | Adds a custom component to the List portion of the form.
Parameters: caption - java.lang.String Parameters: component - com.salmonllc.html.HtmlComponent Parameters: flags - int |
addValueChangedListener | protected void addValueChangedListener(HtmlComponent c)(Code) | | Recursively adds ValueChangedListener.
Parameters: c - com.salmonllc.html.HtmlComponent |
findFormComponent | protected HtmlComponent findFormComponent(HtmlComponent component)(Code) | | Finds a component in the List Form Components
HtmlComponent Parameters: component - HtmlComponent |
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 |
processError | protected boolean processError(int code, String caption, HtmlComponent component, int row)(Code) | | Process a user error condition.
Parameters: code - int Parameters: caption - java.lang.String Parameters: component - com.salmonllc.html.HtmlComponent Parameters: row - int boolean If true, continue event processing. |
setDeleteImage | public void setDeleteImage(HtmlSubmitImage img)(Code) | | Replaces default delete button (if any) with a submit image
Parameters: img - - HtmlSubmitImage to use for the delete button. |
setDeleteImage | public void setDeleteImage(String imageUrl)(Code) | | Replaces default delete button (if any) with an image button
Parameters: imageUrl - URL of image. |
setSaveImage | public void setSaveImage(HtmlSubmitImage img)(Code) | | Replaces default save button (if any) with a submit image
Parameters: img - - SumbitImage to use for the save button. |
setSaveImage | public void setSaveImage(String imageUrl)(Code) | | Replaces default save button (if any) with an image button
Parameters: imageUrl - URL of image. |
showDeleteButton | public void showDeleteButton(boolean visible)(Code) | | Sets the vivibility of the default Delete button.
Parameters: visible - boolean |
showSaveButton | public void showSaveButton(boolean visible)(Code) | | Sets the vivibility 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 |
validateComponent | protected boolean validateComponent(HtmlComponent comp, int row)(Code) | | Perform validation recursively on a component.
boolean Parameters: comp - com.salmonllc.html.HtmlComponent Parameters: row - int |
validateRow | public boolean validateRow(int row) throws Exception(Code) | | Validates entry fields according to current mode.
Parameters: row - int True if validation was successful. |
valueChanged | public boolean valueChanged(ValueChangedEvent e) throws Exception(Code) | | Tests that data entered in the edit components passes simple validation.
boolean Parameters: e - com.salmonllc.html.events.ValueChangedEvent |
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)
|
|
|