Class WebFrameDepictor<C extends Frame>
- java.lang.Object
-
- io.guise.framework.platform.AbstractDepictor<C>
-
- io.guise.framework.platform.AbstractComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractWebComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractWebFrameDepictor<C>
-
- io.guise.framework.platform.web.WebFrameDepictor<C>
-
- Type Parameters:
C
- The type of component being depicted.
- All Implemented Interfaces:
ComponentDepictor<C>
,Depictor<C>
,WebComponentDepictor<C>
,WebDepictor<C>
public class WebFrameDepictor<C extends Frame> extends AbstractWebFrameDepictor<C>
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.- Author:
- Garret Wilson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.guise.framework.platform.AbstractComponentDepictor
AbstractComponentDepictor.DepictedCompositeComponentListener
-
Nested classes/interfaces inherited from class io.guise.framework.platform.AbstractDepictor
AbstractDepictor.DepictedPropertyChangeListener
-
-
Field Summary
-
Fields inherited from class io.guise.framework.platform.web.AbstractWebComponentDepictor
BODY_END_PATTERN, BODY_START_PATTERN
-
Fields inherited from class io.guise.framework.platform.AbstractComponentDepictor
childPropertyChangeListener
-
Fields inherited from interface io.guise.framework.platform.Depictor
GENERAL_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description WebFrameDepictor()
Default constructor using the XHTML<div>
element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
depictBegin()
Begins the depiction process.void
depictEnd()
Ends the depiction process.protected java.util.Map<java.lang.String,java.lang.Object>
getOuterStyles()
Retrieves the styles for the outer element of the component.void
installed(C component)
Called when the depictor is installed in a depicted object.void
uninstalled(C component)
Called when the depictor is uninstalled from a depicted object.-
Methods inherited from class io.guise.framework.platform.web.AbstractWebFrameDepictor
depictBody
-
Methods inherited from class io.guise.framework.platform.web.AbstractWebComponentDepictor
addFlowStyleIDs, decorateID, depict, getBackgroundColor, getBaseStyleIDs, getBodyStyleIDs, getBodyStyles, getColor, getDepictContext, getDepictName, getLabelStyles, getLabelStyles, getLabelStyles, getLocalName, getNamespaceURI, getPlatform, hasLabelContent, hasLabelContent, hasLabelContent, hasLabelContent, isEmptyElementAllowed, isMouseListener, writeBodyIDClassAttributes, writeClassAttribute, writeDirectionAttribute, writeDirectionAttribute, writeErrorMessage, writeFloatClear, writeIDAttribute, writeIDClassAttributes, writeLabel, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeParameterInputs, writeStyleAttribute, writeText
-
Methods inherited from class io.guise.framework.platform.AbstractComponentDepictor
depictChild, depictChildren, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, processEvent
-
Methods inherited from class io.guise.framework.platform.AbstractDepictor
getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, isDepicted, setDepicted, setPropertyModified
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.guise.framework.platform.Depictor
getDepictedObject, getSession, isDepicted, processEvent, setDepicted
-
-
-
-
Method Detail
-
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.
This implementation listens for changes in the session and in response marks the view as needing updated.
- Specified by:
installed
in interfaceDepictor<C extends Frame>
- Overrides:
installed
in classAbstractWebFrameDepictor<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.
This implementation stops listening for session changes.
- Specified by:
uninstalled
in interfaceDepictor<C extends Frame>
- Overrides:
uninstalled
in classAbstractWebFrameDepictor<C extends Frame>
- Parameters:
component
- The depicted object from which this depictor is being uninstalled.- See Also:
AbstractDepictor.depictedPropertyChangeListener
-
getOuterStyles
protected java.util.Map<java.lang.String,java.lang.Object> getOuterStyles()
Retrieves the styles for the outer element of the component. This version combines the body styles with the outer styles.- Overrides:
getOuterStyles
in classAbstractWebComponentDepictor<C extends Frame>
- Returns:
- The styles for the outer element of the component, mapped to CSS property names.
- See Also:
AbstractWebComponentDepictor.getBodyStyles()
-
depictBegin
protected void depictBegin() throws java.io.IOException
Description copied from class:AbstractWebComponentDepictor
Begins the depiction process.This version renders the beginning XML element information, if there is any, leaving the beginning tag open for attributes.
This version writes common XHTML attributes.
- Overrides:
depictBegin
in classAbstractWebComponentDepictor<C extends Frame>
- Throws:
java.io.IOException
- if there is an error updating the depiction.
-
depictEnd
public void depictEnd() throws java.io.IOException
Ends the depiction process.This version renders the ending XML element information, if there is any.
This version closes the decorator elements.
- Overrides:
depictEnd
in classAbstractWebComponentDepictor<C extends Frame>
- Throws:
java.io.IOException
- if there is an error updating the depiction.
-
-