| java.lang.Object com.salmonllc.html.HtmlScriptGenerator
HtmlScriptGenerator | public class HtmlScriptGenerator (Code) | | A utility class that can be used by other components to generate various
useful javascripts. Currently handles various scripts for popup windows
|
Method Summary | |
public String | generateCancelLookupScript() | public String | generateOpenPopupScript(String url, int popupWidth, int popupHeight, HtmlComponent relativeComponent, boolean useModal) | public String | generateOpenPopupScript(String url, int popupWidth, int popupHeight, boolean useModal) | public String | generateOpenPopupScript(String url, String popupPosition, int popupTop, int popupLeft, int popupWidth, int popupHeight, boolean useModal, String popupAttibutes, HtmlComponent relativeComponent, int row) Generates the necessary javascript to open a popup window for the given
URL. | public String | generatePopupDivScript(String url, int popupWidth, int popupHeight, HtmlComponent relativeComponent) | public String | generatePopupDivScript(String url, String popupPosition, int popupTop, int popupLeft, int popupWidth, int popupHeight, boolean useModal, String borderStyle, String scrolling, HtmlComponent relativeComponent, int row) | public String | generateRelativePopupPositionScript(HtmlComponent relativeComponent) | public String | generateRelativePopupPositionScript(HtmlComponent relativeComponent, int row) Generates the necessary javascript to move a popup window to a position
relative to other component of the opener window. | public String | generateReturnValueToLookupScript(String key, String description) Generates the necessary javascript to return a key and a description to
the lookup component that called this page. | public void | generateSelectRowScript() |
generateCancelLookupScript | public String generateCancelLookupScript()(Code) | | Generates the necessary javascript to close a popup lookup
the resulting javascript. |
generateOpenPopupScript | public String generateOpenPopupScript(String url, int popupWidth, int popupHeight, HtmlComponent relativeComponent, boolean useModal)(Code) | | See Also: this.generatePopupScript |
generateOpenPopupScript | public String generateOpenPopupScript(String url, int popupWidth, int popupHeight, boolean useModal)(Code) | | See Also: this.generatePopupScript |
generateOpenPopupScript | public String generateOpenPopupScript(String url, String popupPosition, int popupTop, int popupLeft, int popupWidth, int popupHeight, boolean useModal, String popupAttibutes, HtmlComponent relativeComponent, int row)(Code) | | Generates the necessary javascript to open a popup window for the given
URL.
Parameters: url - url for the popup. Parameters: popupPosition - position in which the popup will be opened (relative, centeror custom). Parameters: popupTop - top coordinate for the popup (Applies only to custompositions). Parameters: popupLeft - left coordinate for the popup (Applies only to custompositions). Parameters: popupWidth - popup width Parameters: popupHeight - popup heigth Parameters: useModal - indicates if the popup should be opened in a modal or nonmodal fashion. Parameters: relativeComponent - relative component to position the popup (must be provided forthe relative position). Parameters: row - row number of the relative component (-1 if it isn't nestedinside a datatable). Parameters: popupAttibutes - other then size and position, a comma seperated list of popupattributes (see javascript window.open() for more info) author: Claudio Pi - claudiopi@users.sourceforge.net |
generatePopupDivScript | public String generatePopupDivScript(String url, String popupPosition, int popupTop, int popupLeft, int popupWidth, int popupHeight, boolean useModal, String borderStyle, String scrolling, HtmlComponent relativeComponent, int row)(Code) | | |
generateRelativePopupPositionScript | public String generateRelativePopupPositionScript(HtmlComponent relativeComponent)(Code) | | See Also: this.generateRelativePopupPositionScript() |
generateRelativePopupPositionScript | public String generateRelativePopupPositionScript(HtmlComponent relativeComponent, int row)(Code) | | Generates the necessary javascript to move a popup window to a position
relative to other component of the opener window.
Parameters: relativeComponent - relative component of the opener window to position the popup. Parameters: row - row number of the relative component (-1 if it isn't nestedinside a datatable). author: Claudio Pi - claudiopi@users.sourceforge.net |
generateReturnValueToLookupScript | public String generateReturnValueToLookupScript(String key, String description)(Code) | | Generates the necessary javascript to return a key and a description to
the lookup component that called this page.
Parameters: key - the key to return to the edit field of the lookup. Parameters: description - the description to return to the lookup. author: Claudio Pi - claudiopi@users.sourceforge.net the resulting javascript. |
generateSelectRowScript | public void generateSelectRowScript()(Code) | | Generates a script for selecting rows in a datatable
|
|
|