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
  • Method Details

    • 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

      String getCSSStyleString(Map<String,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 "display" with a value of "inline-block". This method 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.