Method Summary |
|
public void | add(HtmlComponent comp) |
void | addApplet(HtmlApplet a) |
public void | addHtml(String name, String html) Adds a named piece of HTML to the end of your page. |
public void | addNavBar(JspNavBar jspNavBar) |
public void | addPageListener(PageListener p) Adds a new listerner to this page to handle custom page events events. |
public void | addPopup(HtmlPopup popup) Adds a HtmlPopup to a page. |
public void | addPropertyExpression(Object comp, String propertyName, DataStoreBuffer ds, DataStoreExpression propExpression) This method will add a property expression to the Page.
The propExpression will be evaluated by the processPropertyExpression method for the current row in the datastore
Parameters: comp - The component to set the property for Parameters: propertyName - The name of the property to set. |
public void | addPropertyExpression(Object comp, String propertyName, DataStoreBuffer ds, String expression) This method will add a property expression to the page. |
public void | addPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval) This method will add a property expression to the page. |
public void | addScript(String name, String script) Add a named piece of javascript to your page for this request. |
public void | applySkin(Skin skin, boolean doSetTheme) Applies the skin to the page. |
public void | cancelRunThread() This method cancels the thread running in the page. |
public void | clearCurrentPageReferer() Use this method to clear the last page referred flag. |
public void | clearFormComponents() |
public void | clearPortletException() |
public void | clearPropertyExpressions() |
public void | displayPortletException(String ex) Displays an error message in the portlet instead of the content. |
public void | displayPortletException(String ex, String font) Displays an error message in the portlet instead of the contentg. |
public static void | executePropertyMethod(Object comp, Method meth, DataStoreEvaluator eval, int row) This method is used by components in the framework to process property expressions and shouldn't be called directly. |
public synchronized void | generateHTML(PrintWriter p) |
public void | generateImage(String compName, String imageName, OutputStream out) This method will generat and image from a component in the page and send it to the output stream. |
protected String | generateToken() Generate a new transaction token, to be used for enforcing a single
request for a particular transaction. |
public String | getActivelinkColor() |
public Vector | getApplets() |
public String | getBackground() |
public String | getBackgroundColor() |
public String | getBaseTag() This method sets the contents of the base tag in the html head tag. |
public boolean | getBooleanParameter(String name) This method tries to get a the string parameter passed into this function from the URL. |
public Enumeration | getComponents() This method will return a list of all components in the page (including subcomponents). |
public HtmlSubmitButton | getDefaultButton() Use this method to find out which button will be clicked when the enter key is pressed. |
public String | getDocumentType() This method gets the page DOCTYPE type string. |
public boolean | getEncodeURLs() |
public int | getFormType() This method gets the form type. |
public boolean | getGenerateFormTag() This method gets whether or not the page will generate a form tag. |
public String | getHoverLinkColor() |
public ImageGenerator | getImageGenerator(String compName) This method will get an image generator from a component in the page. |
public int | getIntParameter(String name, int defaultValue) This method tries to get the integer value from the parameter in the URL called passed into this method. |
public int | getIntParameter(String name) This method tries to get the integer value from the parameter in the URL called passed into this method. |
protected String | getLastReferer() This method was created in VisualAge. |
protected JspForm | getLastSubmitForm() |
public int | getLeftMargin() This method returns the left margin for the page or -1 if no margin is set. |
public String | getLinkColor() |
public int | getMarginHeight() This method returns the margin height for the page or -1 if no margin is set. |
public int | getMarginWidth() This method returns the margin width for the page or -1 if no margin is set. |
public String | getMetaTag() This method gets the contents of the meta tag in the html head tag. |
public Vector | getNavBarsVector() |
public String | getOnLoad() This method gets the java script to be executed when the page is loaded. |
public String | getParameter(String name, String defaultValue) Use this method to get a parameter from the HTTP Request. |
public String | getParameter(String name) Use this method to get a parameter from the HTTP Request. |
public HtmlLookUpComponent | getPopupLookupComponent() Obtains the lookup component that called this page. |
public int | getPopupLookupComponentRow() Obtains the lookup component row that called this page. |
public SalmonPortletException | getPortletException() |
public static StringBuffer | getRequestURL(javax.servlet.http.HttpServletRequest req) This method is basically copy of the same method in HttpUtils, but it fixes the
following bug: if the server port in the request is the default, it would be
converted to ":0" instead of the empty string. |
public int | getRightMargin() This method returns the right margin for the page or -1 if no margin is set. |
public Exception | getRunThreadException() This method will return the exception thrown by the current run thread. |
public int | getRunThreadPercentComplete() This method will return a number between 0 and 100 to indicate the percent the process in the run thread is complete. |
public int | getRunThreadStatus() This method will return the status of the currently running page thread (started by the run thread method). |
public SiteMap | getSiteMap() |
public String | getSiteMapActionURL(String logicalName, String actionName, String additionalParms, boolean javaScriptOK) |
public String | getSiteMapActionURL(String logicalName, String actionName) |
public String | getSiteMapEntryNameForPage() |
public String | getSiteMapURL(String logicalName) |
public String | getSiteMapURL(String logicalName, String additionalParms, boolean javaScriptOK) |
public HtmlComponent | getSubPage(String name) This method returns the component that represents the subpage. |
public String | getSubPageMimeType(String name) This method returns the mime type of the component that represents the subpage. |
public HtmlComponent | getSubmitComponent() This method returns the component that submitted the page. |
String | getSubmitJavaScript(HtmlComponent comp, String url, HtmlInlineFrame frame) This method was created in VisualAge. |
public String | getTextColor() |
public String | getTitle() This method gets the title of the page. |
public HtmlContainer | getTopContainer() This method will return a the container that holds all the components in the page. |
public int | getTopMargin() This method returns the top margin for the page or -1 if no margin is set. |
public boolean | getUseIFrames() This method returns true if the browser supports iFrames. |
public String | getVisitedLinkColor() |
public void | handlePortletException(Exception ex, boolean logEx, boolean throwEx, String displayHTML) Portlet errors have to bubble up through so many layers and wrapped exceptions that they very often aren't recognizable to the portlet itself. |
public boolean | isExpired() |
public boolean | isHtmlAdded(String name) Check if a named HTML snippet is part of the page. |
public boolean | isReferredByCurrentPage() Use this method to find out how this page was envoked. |
public boolean | isScriptAdded(String name) Check if a named script is part of the page. |
public boolean | isTokenValid() Return true if there is a transaction token stored in
the user's current session, and the value submitted as a request
parameter with this action matches it. |
public boolean | isWMLMaintained() |
public void | loadProperties() |
protected boolean | notifyListeners(int event, boolean pre) |
public synchronized void | processParms(boolean iFrameSubmit) This method will process the parms from a post for every component in the page. |
protected void | processPropertyExpressions() This method was created in VisualAge. |
public void | registerImageGenerator(String key, ImageGenerator gen) |
public void | registerSubPage(String name, HtmlComponent comp) This method allows you to specify particular components in the page to be treated as sub pages. |
public void | registerSubPage(String name, HtmlComponent comp, String mimeType) This method allows you to specify particular components in the page to be treated as sub pages. |
public void | remove(HtmlComponent comp) Removes an html component from this page. |
public void | removePageListener(PageListener p) This method removes a listener from the list of listeners that will be notified when a page event is fired. |
public void | resetComponents() This method will clear out any pending events for all the components in this page. |
public void | resetToken() Reset the saved transaction token in the user's session. |
public void | saveToken() Save a new transaction token in the user's current session, creating
a new session if necessary. |
public void | scrollToItem(String itemName) This method will cause a page to scroll to an anchor. |
public void | setActiveLinkColor(String value) |
public void | setBackground(String value) |
public void | setBackgroundColor(String value) |
public void | setBaseTag(String value) This method sets the contents of the base tag in the html head tag. |
public void | setDefaultButton(HtmlSubmitButton button) Use this method to specify which button will be clicked when the enter key is pressed. |
public void | setDocumentType(String sDocumentType) Use this method to specify the DOCTYPE of the page. |
public void | setEncodeURLs(boolean encodeURLs) |
public void | setFormType() |
public void | setFormType(int type) This method sets the form type. |
public void | setGenerateFormTag(boolean gen) This method sets whether or not the page will generate a form tag. |
public void | setHoverLinkColor(String value) |
public void | setLeftMargin(int margin) This method sets the left margin for the page or -1 to clear it. |
public void | setLinkColor(String value) |
public void | setMarginHeight(int height) This method sets the margin height for the page or -1 to clear it. |
public void | setMarginWidth(int width) This method sets the margin width for the page or -1 to clear it. |
public void | setMetaTag(String value) This method sets the contents of the meta tag in the html head tag. |
public void | setOnLoad(String value) This method sets the java script to be executed when the page is loaded. |
public void | setRightMargin(int margin) This method sets the right margin for the page or -1 to clear it. |
public void | setTextColor(String value) |
public void | setTitle(String title) This method sets the title of the page. |
public void | setTopMargin(int margin) This method sets the top margin for the page or -1 to clear it. |
public void | setVisitedLinkColor(String value) |
public void | setWMLMaintained(boolean isWmlMaintained) Sets whether the page is a WML page or not. |
public void | startRunThread(PageRunThread r, int pageRefreshInterval) Use this method to run a process in a thread. |
public String | toHex(byte buffer) Convert a byte array to a String of hexadecimal digits and return it. |
protected String | trimUrl(String url, PortletInfo info) Use this method to trim the url used in isReferedByCurrentPage(). |
protected String | trimUrl(String url) Use this method to trim the url used in isReferedByCurrentPage(). |
public void | writeNamedHtml(Writer pw) |
public void | writeNamedScripts(Writer pw) |
public void | writeScript(String script) This method was created in VisualAge. |