Class AbstractWebFrameDepictor<C extends Frame>

Type Parameters:
C - The type of component being depicted.
All Implemented Interfaces:
ComponentDepictor<C>, Depictor<C>, WebComponentDepictor<C>, WebDepictor<C>
Direct Known Subclasses:
WebApplicationFrameDepictor, WebFrameDepictor

public class AbstractWebFrameDepictor<C extends Frame> extends AbstractWebComponentDepictor<C>
Abstract strategy for rendering a frame as a series of XHTML elements. If the session changes a property, such as locale, orientation, or principal, it is assumed that the entire frame needs updating. This depictor ignores changes to the InputFocusGroupComponent.INPUT_FOCUS_STRATEGY_PROPERTY and InputFocusGroupComponent.INPUT_FOCUSED_COMPONENT_PROPERTY properties.
Author:
Garret Wilson
  • Constructor Details

    • AbstractWebFrameDepictor

      public AbstractWebFrameDepictor()
      Default constructor with no element representation.
    • AbstractWebFrameDepictor

      public AbstractWebFrameDepictor(URI namespaceURI, String localName)
      Element namespace and local name constructor that doesn't create an empty element, even if there is no content.
      Parameters:
      namespaceURI - The URI of the XML namespace of the element, or null if there is no namespace.
      localName - The local name of the element with no prefix, or null if this component should not be rendered as an element.
    • AbstractWebFrameDepictor

      public AbstractWebFrameDepictor(URI namespaceURI, String localName, boolean isEmptyElementAllowed)
      Element namespace and local name constructor.
      Parameters:
      namespaceURI - The URI of the XML namespace of the element, or null if there is no namespace.
      localName - The local name of the element with no prefix, or null if this component should not be rendered as an element.
      isEmptyElementAllowed - Whether an empty element can be created if there is no content.
  • Method Details

    • installed

      public void installed(C component)
      Called when the depictor is installed in a depicted object.

      This version listens for property changes of a PropertyBindable object.

      This version listens for list changes of a ListListenable object.

      If the component is a container, this version listens for container events and marks the view as needing updated.

      This implementation listens for changes in the session and in response marks the view as needing updated.

      Specified by:
      installed in interface Depictor<C extends Frame>
      Overrides:
      installed in class AbstractComponentDepictor<C extends Frame>
      Parameters:
      component - The depictedObject into which this depictor is being installed.
      See Also:
      • AbstractDepictor.depictedPropertyChangeListener
    • uninstalled

      public void uninstalled(C component)
      Called when the depictor is uninstalled from a depicted object.

      This version stop listening for property changes of a PropertyBindable object.

      This version stops listening for list changes of a ListListenable object.

      If the component is a container, this version stops listening for container events.

      This implementation stops listening for session changes.

      Specified by:
      uninstalled in interface Depictor<C extends Frame>
      Overrides:
      uninstalled in class AbstractComponentDepictor<C extends Frame>
      Parameters:
      component - The depicted object from which this depictor is being uninstalled.
      See Also:
      • AbstractDepictor.depictedPropertyChangeListener
    • depictBody

      protected void depictBody() throws IOException
      Depicts the body of the component.

      This version depicts the children of the component.

      This version increases and decreases the indention level before and after depicting the children, respectively.

      This version renders the content of the frame.

      Overrides:
      depictBody in class AbstractWebComponentDepictor<C extends Frame>
      Throws:
      IOException - if there is an error updating the depiction.
      See Also: