Class ComponentRedraws

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String afterRedraw()
      Called after finishing the redrawing.
      static int beforeRedraw​(boolean includingPage)
      Called before staring the redrawing.
      static java.io.Writer getScriptBuffer()
      Returns the string buffer for the snippet that shall be generated after rendering the components.
      static void restoreStates()
      Internal used only
      static void saveStates()
      Internal used only
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getScriptBuffer

        public static final java.io.Writer getScriptBuffer()
        Returns the string buffer for the snippet that shall be generated after rendering the components. The content being added to the returned string buffer will be returned by afterRedraw() if it is called against the top-level component.
      • afterRedraw

        public static final java.lang.String afterRedraw()
        Called after finishing the redrawing. It must be called in the finally clause if beforeRedraw(boolean) is called.
        Returns:
        the snippet that shall be written to the HTML output. For HTML components, it is actually JavaScript snippet. To inject the snippet, just invoke getScriptBuffer() and append the snippet into the returned string buffer.
        Notice that it always returns an empty string if it is not the top level.
      • saveStates

        public static final void saveStates()
        Internal used only
      • restoreStates

        public static final void restoreStates()
        Internal used only