Class HtmlRenderer

    • Constructor Detail

      • HtmlRenderer

        public HtmlRenderer​(java.lang.String nullRepresentation)
        Creates a new HTML renderer.
        Parameters:
        nullRepresentation - the html representation of null value
      • HtmlRenderer

        public HtmlRenderer()
        Creates a new HTML renderer.
    • Method Detail

      • getNullRepresentation

        public java.lang.String getNullRepresentation()
        Description copied from class: AbstractRenderer
        Null representation for the renderer.
        Overrides:
        getNullRepresentation in class AbstractRenderer<java.lang.Object,​java.lang.String>
        Returns:
        a textual representation of null
      • getState

        protected com.vaadin.shared.ui.grid.renderers.HtmlRendererState getState()
        Description copied from class: AbstractClientConnector
        Returns the shared state for this connector. The shared state object is shared between the server connector and the client connector. Changes are only communicated from the server to the client and not in the other direction.

        As a side effect, marks the connector dirty so any changes done to the state will be sent to the client. Use getState(false) to avoid marking the connector as dirty.

        Overrides:
        getState in class AbstractRenderer<java.lang.Object,​java.lang.String>
        Returns:
        The shared state for this connector. Never null.
      • getState

        protected com.vaadin.shared.ui.grid.renderers.HtmlRendererState getState​(boolean markAsDirty)
        Description copied from class: AbstractClientConnector
        Returns the shared state for this connector.
        Overrides:
        getState in class AbstractRenderer<java.lang.Object,​java.lang.String>
        Parameters:
        markAsDirty - true if the connector should automatically be marked dirty, false otherwise
        Returns:
        The shared state for this connector. Never null.
        See Also:
        AbstractClientConnector.getState()