com.guiseframework.platform.web
Interface WebDepictContext

All Superinterfaces:
DepictContext, com.globalmentor.beans.PropertyBindable, TextDepictContext, XHTMLDepictContext, XMLDepictContext
All Known Implementing Classes:
AbstractWebDepictContext, HTTPServletWebDepictContext

public interface WebDepictContext
extends XHTMLDepictContext

Information related to the current depiction on the web platform.

Author:
Garret Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.guiseframework.platform.XMLDepictContext
XMLDepictContext.ElementState
 
Field Summary
 
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
 
Method Summary
 java.lang.String getCSSStyleString(java.util.Map<java.lang.String,java.lang.Object> styles, Orientation orientation)
          Returns a string representation of the provided style declarations.
 WebPlatform getPlatform()
           
 boolean isQuirksMode()
           
 
Methods inherited from interface com.guiseframework.platform.XHTMLDepictContext
writeJavaScriptElement
 
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, getSession, getStyles
 
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Method Detail

getPlatform

WebPlatform getPlatform()
Specified by:
getPlatform in interface DepictContext
Returns:
The web platform on which Guise objects are depicted.

isQuirksMode

boolean isQuirksMode()
Returns:
Whether quirks mode is being used.

getCSSStyleString

java.lang.String getCSSStyleString(java.util.Map<java.lang.String,java.lang.Object> styles,
                                   Orientation orientation)
Returns a string representation of the provided style declarations. This method performs special processing on the following properties, including generating user-agent-specific styles to allow proper display on certain browsers: These styles include the CSS property with a value of . This implementation supports values of the following types: All other values will be added using Object.toString().

Parameters:
styles - The map of styles to write, each keyed to a CSS style property.
orientation - The orientation of the component for which the style is being produced.
Returns:
A string containing the given CSS properties and styles.


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