Class IframeView

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, Container, LifecycleElement, Helpable, org.springframework.core.Ordered

public class IframeView extends FormView
IframeView is a View component that shows another website's content in an iframe.

This View will always have one page itself and will always contain an iframe component. The location property allows ease of setting the url for the iframe. If the site being shown in the iframe is a KRAD View itself, the default bean for this class will attempt to pass a url parameter notifying the View that it is being shown in an iframe; this can be used in SpringEL to invoke special logic (such as not rendering some components, like the app header)

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • IframeView

      public IframeView()
  • Method Details

    • performInitialization

      public void performInitialization(Object model)
      Forces this view to be only one page, and sets the iframe as one of its items The following initialization is performed:
      • If a single paged view, set items in page group and put the page in the items list
      • If ViewSessionPolicy.enableTimeoutWarning is enabled add the session timeout dialogs to the views list of dialog groups
      The following initialization is performed:
      • Sorts the containers list of components
      • Initializes the instructional field if necessary
      • Initializes LayoutManager
      The following updates are done here:
      • Invoke performInitialize on component modifiers
      Initializes the component

      Where components can set defaults and setup other necessary state. The initialize method should only be called once per component lifecycle and is invoked within the initialize phase of the view lifecylce.

      Specified by:
      performInitialization in interface LifecycleElement
      Overrides:
      performInitialization in class View
      Parameters:
      model - - object instance containing the view data
      See Also:
    • performApplyModel

      public void performApplyModel(Object model, LifecycleElement parent)
      Evaluates expressions that may appear in location properties and sets the source of iframe automatically The following updates are done here:
      • Invoke expression evaluation on view theme
      • Invoke theme to configure defaults
      Specified by:
      performApplyModel in interface LifecycleElement
      Overrides:
      performApplyModel in class View
      Parameters:
      model - - Top level object containing the data (could be the form or a top level business object, dto)
      parent - parent lifecycle element
    • getLocation

      public UrlInfo getLocation()
      Get the url object representing the location
      Returns:
      the url location object
    • setLocation

      public void setLocation(UrlInfo location)
      See Also:
    • getHref

      public String getHref()
      See Also:
    • setHref

      public void setHref(String href)
      See Also:
    • getIframe

      public Iframe getIframe()
      The iframe component to be used as the content of this view, nothing needs to be set on this directly if using the default bean for this View
      Returns:
      the iframe component
    • setIframe

      public void setIframe(Iframe iframe)
      See Also: