Class CustomPreview

java.lang.Object
io.webfolder.cdp.type.runtime.CustomPreview

public class CustomPreview
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    CustomPreview()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getBodyGetterId()
    If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.
    java.lang.String getHeader()
    The JSON-stringified result of formatter.header(object, config) call.
    void setBodyGetterId​(java.lang.String bodyGetterId)
    If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.
    void setHeader​(java.lang.String header)
    The JSON-stringified result of formatter.header(object, config) call.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getHeader

      public java.lang.String getHeader()
      The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
    • setHeader

      public void setHeader​(java.lang.String header)
      The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.
    • getBodyGetterId

      public java.lang.String getBodyGetterId()
      If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.
    • setBodyGetterId

      public void setBodyGetterId​(java.lang.String bodyGetterId)
      If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.