| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlContainer com.salmonllc.html.HtmlComposite com.salmonllc.html.HtmlLookUpComponent
HtmlLookUpComponent | public class HtmlLookUpComponent extends HtmlComposite implements PageListener,SubmitListener(Code) | | This class implements a lookup component. It has an edit field and a zoom
component to zoom to a list of possible values.
|
Constructor Summary | |
public | HtmlLookUpComponent(String name, HtmlPage p) LookUp constructor. | public | HtmlLookUpComponent(String name, String lookup_page, HtmlPage p) LookUp constructor. | public | HtmlLookUpComponent(String name, String lookup_page, DataStore ds, String tableName, String columnName, int dataType, boolean pKey, HtmlPage p) LookUp constructor. | public | HtmlLookUpComponent(String name, String lookup_page, String browseImage, HtmlPage p) LookUp constructor.
Parameters: name - -name of component Parameters: lookup_page - -the page that will provide the lookup values Parameters: browseImage - -the browse image to use. | public | HtmlLookUpComponent(String name, String lookup_page, String browseImage, DataStore ds, String tableName, String columnName, int dataType, boolean pKey, HtmlPage p) LookUp constructor.
Parameters: name - -name of component Parameters: lookup_page - -the page that will provide the lookup values Parameters: browseImage - -the browse image to use. |
Method Summary | |
public void | add(HtmlComponent comp) Do not use this method in this class. | public void | addFormComponentValueToPopup(HtmlComponent comp, String requestParmName) | public void | generateHTML(PrintWriter p, int rowStart, int rowEnd) | public void | generateHTML(PrintWriter p, int rowNo) | public HtmlSubmitImage | getBrowseImage() | public String | getDescription() This method returns the description of the text in the component. | public String | getDescriptionDataSource() | public String | getDivBorderStyle() | public String | getDivFullName(int rowNum) | public boolean | getDivScrolling() | public boolean | getEditDescription() Returns whether or not the description is editable. | public HtmlTextEdit | getEditField() | public String | getEditFieldFullName(int rowNum) | public HtmlHiddenField | getHiddenDescrField() | public String | getHiddenDescrFieldFullName(int rowNum) | public String | getHiddenKeyFieldFullName(int rowNum) | public String | getLookUpPageURL() | public static String | getParentLookupFormat(JspController cont) | public static int | getParentLookupMaxLength(JspController cont) | public static String | getParentLookupValue(JspController cont) | public String | getPopupAttributes() | public int | getPopupHeight() | public int | getPopupLeft() | public String | getPopupPosition() | public int | getPopupTop() | public int | getPopupWidth() | public boolean | getShowDescription() | public boolean | getUseDiv() | public boolean | getUsePopup() | public String | getValue() This method returns the value of the text in the component. | public void | pageRequestEnd(PageEvent p) | public void | pageRequested(PageEvent p) | public void | pageSubmitEnd(PageEvent p) | public void | pageSubmitted(PageEvent p) | public void | replaceBrowseImage(HtmlComponent comp, int dataType, boolean bound, String table, String column) | public void | replaceEdit(HtmlComponent comp, int dataType, boolean bound, String table, String column) | public void | setColumn(DataStoreBuffer ds, int columnNo) | public void | setColumn(DataStoreBuffer ds, String columnName) | public void | setDescriptionDataSource(String string) | public void | setDescriptionExpression(DataStoreBuffer ds, String exp) | public void | setDescriptionExpression(DataStoreBuffer ds, DataStoreExpression exp) | public void | setDescriptionFont(String font) This method will load the font start and end tags from the page
properties object.See the Constants at the top of the class for valid
values to pass to this method. | public void | setDisplayFormat(String format) | public void | setDisplayFormatLocaleKey(String key) | public void | setDivBorderStyle(String divBorderStyle) | public void | setDivScrolling(boolean divScrolling) | public void | setEditDescription(boolean editDescription) Parameters: editDescription - Sets whether or not the description is editable. | public void | setEnabled(boolean enabled) Sets the flag for ability to respond to user input (true = does respond). | public void | setExtraParms(String extraParms) This method will append the extra parms string to the url when the user
clicks the submit image. | public void | setLookUpPageURL(String newValue) This method was created in VisualAge. | public void | setPopupAttributes(String popupAttributes) | public void | setPopupHeight(int i) | public void | setPopupLeft(int _popupLeft) | public void | setPopupPosition(String _popupPosition) | public void | setPopupTop(int _popupTop) | public void | setPopupWidth(int i) | public void | setShowDescription(boolean b) | public void | setTheme(String theme) | public void | setUseDiv(boolean useDiv) | public void | setUsePopup(boolean b, boolean useModal) | public void | setValue(String newValue) Sets the value in the edit field. | public boolean | submitPerformed(SubmitEvent e) |
PARAM_LISTFORM_SEARCH_FILTER_STRING | final public static String PARAM_LISTFORM_SEARCH_FILTER_STRING(Code) | | |
PARAM_LOOKUP_COMPONENT | final public static String PARAM_LOOKUP_COMPONENT(Code) | | |
PARAM_LOOKUP_CONTROLLER | final public static String PARAM_LOOKUP_CONTROLLER(Code) | | |
PARAM_LOOKUP_ROW | final public static String PARAM_LOOKUP_ROW(Code) | | |
PARAM_LOOKUP_VALUE | final public static String PARAM_LOOKUP_VALUE(Code) | | |
_rowNo | protected int _rowNo(Code) | | |
HtmlLookUpComponent | public HtmlLookUpComponent(String name, HtmlPage p)(Code) | | LookUp constructor.
Parameters: name - -name of component Parameters: p - -page the component will be associated with |
HtmlLookUpComponent | public HtmlLookUpComponent(String name, String lookup_page, HtmlPage p)(Code) | | LookUp constructor.
Parameters: name - -name of component Parameters: lookup_page - -the page that will provide the lookup values Parameters: p - -page the component will be associated with |
HtmlLookUpComponent | public HtmlLookUpComponent(String name, String lookup_page, DataStore ds, String tableName, String columnName, int dataType, boolean pKey, HtmlPage p)(Code) | | LookUp constructor.
Parameters: name - -name of component Parameters: lookup_page - -the page that will provide the lookup values Parameters: ds - -DataStore that is being used with this component Parameters: tableName - -table name to bind to Parameters: columnName - -column name to bind to Parameters: dataType - -data type of the main edit field ( use DataStore.DATATYPE_*) Parameters: pKey - -flag that signifies if the column is a primary key column Parameters: p - -page the component will be associated with |
HtmlLookUpComponent | public HtmlLookUpComponent(String name, String lookup_page, String browseImage, HtmlPage p)(Code) | | LookUp constructor.
Parameters: name - -name of component Parameters: lookup_page - -the page that will provide the lookup values Parameters: browseImage - -the browse image to use. default is a magnifying glass Parameters: p - -page the component will be associated with |
HtmlLookUpComponent | public HtmlLookUpComponent(String name, String lookup_page, String browseImage, DataStore ds, String tableName, String columnName, int dataType, boolean pKey, HtmlPage p)(Code) | | LookUp constructor.
Parameters: name - -name of component Parameters: lookup_page - -the page that will provide the lookup values Parameters: browseImage - -the browse image to use. default is a magnifying glass Parameters: ds - -DataStore that is being used with this component Parameters: tableName - -table name to bind to Parameters: columnName - -column name to bind to Parameters: dataType - -data type of the main edit field ( use DataStore.DATATYPE_*) Parameters: pKey - -flag that signifies if the column is a primary key column Parameters: p - -page the component will be associated with |
addFormComponentValueToPopup | public void addFormComponentValueToPopup(HtmlComponent comp, String requestParmName)(Code) | | Add a form component value to the url line of a popup request
Parameters: comp - The component to get the value from Parameters: requestParmName - The name of the parameter to add to the URL line |
getBrowseImage | public HtmlSubmitImage getBrowseImage()(Code) | | This method returns the browse image
HtmlTextEdit |
getDescription | public String getDescription()(Code) | | This method returns the description of the text in the component.
String |
getDescriptionDataSource | public String getDescriptionDataSource()(Code) | | the datasource string for the description column of the lookup |
getDivBorderStyle | public String getDivBorderStyle()(Code) | | Returns the divBorderStyle. |
getDivFullName | public String getDivFullName(int rowNum)(Code) | | |
getDivScrolling | public boolean getDivScrolling()(Code) | | Returns the divScrolling. |
getEditDescription | public boolean getEditDescription()(Code) | | Returns whether or not the description is editable. If thedescription is editable, the key field will not be displayed, butwill be set by the lookup. |
getEditField | public HtmlTextEdit getEditField()(Code) | | This method returns the edit filed
HtmlTextEdit |
getEditFieldFullName | public String getEditFieldFullName(int rowNum)(Code) | | |
getHiddenDescrField | public HtmlHiddenField getHiddenDescrField()(Code) | | This method returns the hidden description filed
HtmlTextEdit |
getHiddenDescrFieldFullName | public String getHiddenDescrFieldFullName(int rowNum)(Code) | | |
getHiddenKeyFieldFullName | public String getHiddenKeyFieldFullName(int rowNum)(Code) | | |
getLookUpPageURL | public String getLookUpPageURL()(Code) | | This method retuns the lookUp URL
String |
getParentLookupFormat | public static String getParentLookupFormat(JspController cont)(Code) | | This method can be used by controllers of lookup popup windows to find
the display format the lookup component
|
getParentLookupMaxLength | public static int getParentLookupMaxLength(JspController cont)(Code) | | This method can be used by controllers of lookup popup windows to find
the max length of the lookup component
|
getParentLookupValue | public static String getParentLookupValue(JspController cont)(Code) | | This method can be used by controllers of lookup popup windows to find
the current value in the lookup component
|
getPopupAttributes | public String getPopupAttributes()(Code) | | Returns the popupAttributes if this lookup uses a popup window(see javascript window.open for list of available attributes)". |
getPopupHeight | public int getPopupHeight()(Code) | | |
getPopupLeft | public int getPopupLeft()(Code) | | |
getPopupTop | public int getPopupTop()(Code) | | |
getPopupWidth | public int getPopupWidth()(Code) | | |
getShowDescription | public boolean getShowDescription()(Code) | | true if a description should be shown next to the field |
getUseDiv | public boolean getUseDiv()(Code) | | Returns the useDiv flag to indicate if a popup should open in a div. |
getUsePopup | public boolean getUsePopup()(Code) | | |
getValue | public String getValue()(Code) | | This method returns the value of the text in the component.
String |
replaceBrowseImage | public void replaceBrowseImage(HtmlComponent comp, int dataType, boolean bound, String table, String column)(Code) | | Replaces the default browse image with one you specify
Parameters: comp - -component that is replacing the browse image Parameters: dataType - -data type of the component being replaced ( useDataStore.DATATYPE_*) Parameters: bound - -flag that signifies if the component is bound to a datastorecolumn Parameters: table - -table component is bound to Parameters: column - -column component is bound to |
replaceEdit | public void replaceEdit(HtmlComponent comp, int dataType, boolean bound, String table, String column)(Code) | | Replaces the default edit field with one you specify
Parameters: comp - -component that is replacing the edit field Parameters: dataType - -data type of the component being replaced ( useDataStore.DATATYPE_*) Parameters: bound - -flag that signifies if the component is bound to a datastorecolumn Parameters: table - -table component is bound to Parameters: column - -column component is bound to |
setColumn | public void setColumn(DataStoreBuffer ds, int columnNo)(Code) | | Sets the column in the DataStore that this field binds to
|
setDescriptionDataSource | public void setDescriptionDataSource(String string)(Code) | | |
setDescriptionFont | public void setDescriptionFont(String font)(Code) | | This method will load the font start and end tags from the page
properties object.See the Constants at the top of the class for valid
values to pass to this method.
|
setDisplayFormat | public void setDisplayFormat(String format)(Code) | | |
setDisplayFormatLocaleKey | public void setDisplayFormatLocaleKey(String key)(Code) | | |
setDivBorderStyle | public void setDivBorderStyle(String divBorderStyle)(Code) | | Parameters: divBorderStyle - For popups that open in divs sets the border style (CSS) for the div border default is: 1px solid black. |
setDivScrolling | public void setDivScrolling(boolean divScrolling)(Code) | | Parameters: divScrolling - For popus that open in divs, whether or not a scrollbar will be present for overflow |
setEditDescription | public void setEditDescription(boolean editDescription)(Code) | | Parameters: editDescription - Sets whether or not the description is editable. If thedescription is editable, the key field will not be displayed,but will be set by the lookup. |
setEnabled | public void setEnabled(boolean enabled)(Code) | | Sets the flag for ability to respond to user input (true = does respond).
Parameters: enabled - boolean |
setExtraParms | public void setExtraParms(String extraParms)(Code) | | This method will append the extra parms string to the url when the user
clicks the submit image.
|
setLookUpPageURL | public void setLookUpPageURL(String newValue)(Code) | | This method was created in VisualAge.
Parameters: newValue - String |
setPopupAttributes | public void setPopupAttributes(String popupAttributes)(Code) | | Parameters: popupAttributes - The popupAttributes to set if this lookup uses a popup window(see javascript window.open for list of availableattributes)".. |
setPopupHeight | public void setPopupHeight(int i)(Code) | | Parameters: i - |
setPopupLeft | public void setPopupLeft(int _popupLeft)(Code) | | |
setPopupPosition | public void setPopupPosition(String _popupPosition)(Code) | | |
setPopupTop | public void setPopupTop(int _popupTop)(Code) | | |
setPopupWidth | public void setPopupWidth(int i)(Code) | | Parameters: i - |
setShowDescription | public void setShowDescription(boolean b)(Code) | | set to true if a description should be shown next to the field
|
setUseDiv | public void setUseDiv(boolean useDiv)(Code) | | Parameters: useDiv - The useDiv to set. |
setUsePopup | public void setUsePopup(boolean b, boolean useModal)(Code) | | Parameters: b - |
setValue | public void setValue(String newValue)(Code) | | Sets the value in the edit field.
|
Fields inherited from com.salmonllc.html.HtmlComposite | final static int DATATYPE_ANY(Code)(Java Doc)
|
Methods inherited from com.salmonllc.html.HtmlComposite | public void add(HtmlComponent comp)(Code)(Java Doc) public Object addCompositeComponent(HtmlComponent comp, int dataType, boolean bound, String table, String column)(Code)(Java Doc) public Object addCompositeComponent(HtmlComponent comp, int dataType, boolean bound, String table, String column, int flags)(Code)(Java Doc) public HtmlComponent getComponent(int index)(Code)(Java Doc) public String getComponentColumn(HtmlComponent comp)(Code)(Java Doc) public int getComponentDataType(HtmlComponent comp)(Code)(Java Doc) public int getComponentFlags(HtmlComponent comp)(Code)(Java Doc) public String getComponentTable(HtmlComponent comp)(Code)(Java Doc) public Enumeration getComponents()(Code)(Java Doc) public int getCompositeSize()(Code)(Java Doc) public boolean getIsComponentBound(HtmlComponent comp)(Code)(Java Doc) public Object insertCompositeComponentAt(HtmlComponent comp, int index, int dataType, boolean bound, String table, String column)(Code)(Java Doc) public Object insertCompositeComponentAt(HtmlComponent comp, int index, int dataType, boolean bound, String table, String column, int flags)(Code)(Java Doc) public Object replaceCompositeComponent(HtmlComponent comp, Object compToReplace, int dataType, boolean bound, String table, String column)(Code)(Java Doc) public Object replaceCompositeComponent(HtmlComponent comp, Object compToReplace, int dataType, boolean bound, String table, String column, int flags)(Code)(Java Doc) public void setComponentColumn(HtmlComponent comp, String column)(Code)(Java Doc) public void setComponentDataType(HtmlComponent comp, int dataType)(Code)(Java Doc) public void setComponentFlags(HtmlComponent comp, int flags)(Code)(Java Doc) public void setComponentTable(HtmlComponent comp, String table)(Code)(Java Doc) public void setIsComponentBound(HtmlComponent comp, boolean bound)(Code)(Java Doc)
|
|
|