Package io.guise.framework.platform.web
Class WebTextBoxDepictor<C extends TextBox>
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.AbstractSimpleWebComponentDepictor<C>
io.guise.framework.platform.web.WebTextBoxDepictor<C>
- Type Parameters:
C
- The type of component being depicted.
- All Implemented Interfaces:
io.clogr.Clogged
,ComponentDepictor<C>
,Depictor<C>
,WebComponentDepictor<C>
,WebDepictor<C>
public class WebTextBoxDepictor<C extends TextBox>
extends AbstractSimpleWebComponentDepictor<C>
implements io.clogr.Clogged
Strategy for rendering a text component as an XHTML
<div>
element or, based upon TextBox.getTextContentType()
, a specialized XHTML
element.- Author:
- Garret Wilson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Cached information associating a pre-parsed XML document with a string.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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Depicts any child components.Determines the local name of the XML element.protected void
updateElement
(Element element) Renders an XML element.protected void
updateElementContent
(Element element) Renders the content of an XML element.Methods inherited from class io.guise.framework.platform.web.AbstractSimpleWebComponentDepictor
depictBegin, getOuterStyles
Methods inherited from class io.guise.framework.platform.web.AbstractWebComponentDepictor
addFlowStyleIDs, decorateID, depict, depictBody, depictEnd, getBackgroundColor, getBaseStyleIDs, getBodyStyleIDs, getBodyStyles, getColor, getDepictContext, getDepictName, getLabelStyles, getLabelStyles, getLabelStyles, 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, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, processEvent, uninstalled
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.clogr.Clogged
getLogger
Methods inherited from interface io.guise.framework.platform.Depictor
getDepictedObject, getSession, installed, isDepicted, processEvent, setDepicted, uninstalled
-
Constructor Details
-
WebTextBoxDepictor
public WebTextBoxDepictor()Default constructor using the XHTML<div>
element.
-
-
Method Details
-
getLocalName
Determines the local name of the XML element.This version returns special section elements if the component is a
SectionComponent
with a non-null
section type.- Overrides:
getLocalName
in classAbstractWebComponentDepictor<C extends TextBox>
- Returns:
- The local name of the element with no prefix, or
null
if this component should not be rendered as an element.
-
depictChildren
Depicts any child components.This version does not call the super version, because all child rendering is controlled by this version.
- Overrides:
depictChildren
in classAbstractComponentDepictor<C extends TextBox>
- Throws:
IOException
- if there is an error updating the child depictions.
-
updateElement
Renders an XML element. If there is a child component with constraints indicating the same ID as this element, that child component will be rendered in place of this element.- Parameters:
element
- The element the content of which should be rendered.- Throws:
IOException
- if there is an error rendering the component.
-
updateElementContent
Renders the content of an XML element.- Parameters:
element
- The element the content of which should be rendered.- Throws:
IOException
- if there is an error rendering the component.
-