/** * Selects the HTTP method that will be used when fetching content. Valid values are "POST" and "GET". * * @param httpMethod httpMethod Default value is "GET" */ public void setHttpMethod(String httpMethod) { setAttribute("httpMethod", httpMethod, true); }
/** * By default a ViewLoader will explicitly prevent browser caching. <P> Set to true to allow browser caching <b>if the * browser would normally do so</b>, in other words, if the HTTP headers returned with the response indicate that the * response can be cached. * * @param allowCaching allowCaching Default value is false * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setAllowCaching(Boolean allowCaching) throws IllegalStateException { setAttribute("allowCaching", allowCaching, false); }
/** * Message to show while the view is loading. Use <code>"\${loadingImage}"</code> to include {@link * com.smartgwt.client.widgets.Canvas#loadingImageSrc a loading image}. * * @param loadingMessage loadingMessage Default value is "Loading View...&nbsp;\${loadingImage}" * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setLoadingMessage(String loadingMessage) throws IllegalStateException { setAttribute("loadingMessage", loadingMessage, false); }
/** * URL to load components from. * Change the URL this component loads a view from. Triggers a fetch from the new URL. <P> Can also be called with no arguments to reload the view from the existing {@link com.smartgwt.client.widgets.ViewLoader#getViewURL viewURL}. * * @param viewURL URL to retrieve view from. Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created * */ public void setViewURL(String viewURL) throws IllegalStateException { setAttribute("viewURL", viewURL, false); }