com.guiseframework.platform
Class AbstractXHTMLDepictContext

java.lang.Object
  extended by com.globalmentor.beans.BoundPropertyObject
      extended by com.guiseframework.platform.AbstractDepictContext
          extended by com.guiseframework.platform.AbstractTextDepictContext
              extended by com.guiseframework.platform.AbstractXMLDepictContext
                  extended by com.guiseframework.platform.AbstractXHTMLDepictContext
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, DepictContext, TextDepictContext, XHTMLDepictContext, XMLDepictContext
Direct Known Subclasses:
AbstractWebDepictContext

public abstract class AbstractXHTMLDepictContext
extends AbstractXMLDepictContext
implements XHTMLDepictContext

Abstract encapsulation of application/xhtml+xml information related to the current depiction. This implementation maps the XHTML namespace to the null prefix.

Author:
Garret Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.guiseframework.platform.XMLDepictContext
XMLDepictContext.ElementState
 
Field Summary
 
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
 
Fields inherited from interface com.guiseframework.platform.XHTMLDepictContext
CSS_PROPERTY_BORDER_X_COLOR_TEMPLATE, CSS_PROPERTY_BORDER_X_STYLE_TEMPLATE, CSS_PROPERTY_BORDER_X_WIDTH_TEMPLATE, CSS_PROPERTY_MARGIN_X_TEMPLATE, CSS_PROPERTY_PADDING_X_TEMPLATE, CSS_SIDES
 
Constructor Summary
AbstractXHTMLDepictContext(GuiseSession session, Destination destination)
          Guise session constructor.
 
Method Summary
 XMLDepictContext.ElementState writeJavaScriptElement(java.net.URI javascriptURI)
          Generates a JavaScript element that references the given URI.
 
Methods inherited from class com.guiseframework.platform.AbstractXMLDepictContext
clearDepictText, encode, getAttributeHashAttributeQualifiedName, getAttributeValue, getContentHashAttributeQualifiedName, getDepictStringBuilder, getMessageDigest, getQualifiedName, getXMLNamespacePrefixManager, isHashAttributesGenerated, setHashAttributesGenerated, writeAttribute, writeComment, writeCommentClose, writeCommentOpen, writeDocType, writeDocType, writeElementBegin, writeElementBegin, writeElementEnd
 
Methods inherited from class com.guiseframework.platform.AbstractTextDepictContext
getDepictText, getIndentLevel, indent, indent, isFormatted, setIndentLevel, unindent, write, write, writeIndent, writeLiteral
 
Methods inherited from class com.guiseframework.platform.AbstractDepictContext
getDepictionURI, getDepictionURI, getDestination, getPlatform, getSession, getStyles
 
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.guiseframework.platform.XMLDepictContext
getQualifiedName, writeAttribute, writeComment, writeCommentClose, writeCommentOpen, writeDocType, writeDocType, writeElementBegin, writeElementBegin, writeElementEnd
 
Methods inherited from interface com.guiseframework.platform.TextDepictContext
clearDepictText, getDepictStringBuilder, getDepictText, getIndentLevel, getOutputCharacterEncoding, getOutputContentType, indent, indent, isFormatted, setIndentLevel, setOutputContentType, unindent, write, write, writeIndent, writeLiteral
 
Methods inherited from interface com.guiseframework.platform.DepictContext
getDepictionURI, getDepictionURI, getDepictionURI, getDestination, getPlatform, getSession, getStyles
 
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

AbstractXHTMLDepictContext

public AbstractXHTMLDepictContext(GuiseSession session,
                                  Destination destination)
                           throws java.io.IOException
Guise session constructor.

Parameters:
session - The Guise user session of which this context is a part.
destination - The destination with which this context is associated.
Throws:
java.lang.NullPointerException - if the given session and/or destination is null.
java.io.IOException - If there was an I/O error loading a needed resource.
Method Detail

writeJavaScriptElement

public XMLDepictContext.ElementState writeJavaScriptElement(java.net.URI javascriptURI)
                                                     throws java.io.IOException
Generates a JavaScript element that references the given URI. The given URI is resolved to the application URI.

Specified by:
writeJavaScriptElement in interface XHTMLDepictContext
Parameters:
javascriptURI - The application-relative URI to the JavaScript file.
Returns:
The state of the element written.
Throws:
java.io.IOException - if there is an error writing the information.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.