Class InlineFrame

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IRequestListener, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class InlineFrame extends WebMarkupContainer implements IRequestListener
Implementation of an inline frame component. Must be used with an iframe (<iframe src...) element. The src attribute will be generated.
Author:
Sven Meier, Ralf Ebert
See Also:
  • Constructor Details

    • InlineFrame

      public InlineFrame(String id, Class<C> c)
      Constructs an inline frame that instantiates the given Page class when the content of the inline frame is requested. The instantiated Page is used to render a response to the user.
      Type Parameters:
      C -
      Parameters:
      id - See Component
      c - Page class
    • InlineFrame

      public InlineFrame(String id, Class<C> c, PageParameters params)
      Constructs an inline frame that instantiates the given Page class when the content of the inline frame is requested. The instantiated Page is used to render a response to the user.
      Type Parameters:
      C -
      Parameters:
      id - See Component
      c - Page class
      params - Page parameters
    • InlineFrame

      public InlineFrame(String id, Page page)
      This constructor is ideal if a Page object was passed in from a previous Page. Construct an inline frame containing the given Page.
      Parameters:
      id - See component
      page - The page
    • InlineFrame

      public InlineFrame(String id, IPageProvider pageProvider)
      This constructor is ideal for constructing pages lazily. Constructs an inline frame which invokes the getPage() method of the IPageLink interface when the content of the inline frame is requested. Whatever Page objects is returned by this method will be rendered back to the user.
      Parameters:
      id - See Component
      pageProvider - the provider of the page to be contained in the inline frame if and when the content is requested
  • Method Details