com.vaadin.ui.renderers
Interface Renderer<T>

Type Parameters:
T - the type this renderer knows how to present
All Superinterfaces:
ClientConnector, com.vaadin.shared.Connector, Extension, java.io.Serializable
All Known Implementing Classes:
AbstractJavaScriptRenderer, ButtonRenderer, ClickableRenderer, DateRenderer, Grid.AbstractRenderer, HtmlRenderer, ImageRenderer, NumberRenderer, ProgressBarRenderer, TextRenderer

public interface Renderer<T>
extends Extension

A ClientConnector for controlling client-side Grid renderers. Renderers currently extend the Extension interface, but this fact should be regarded as an implementation detail and subject to change in a future major or minor Vaadin revision.

Since:
7.4
Author:
Vaadin Ltd

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
 
Method Summary
 elemental.json.JsonValue encode(T value)
          Encodes the given value into a JsonValue.
 java.lang.Class<T> getPresentationType()
          Returns the class literal corresponding to the presentation type T.
 void remove()
          Deprecated. 
 void setParent(ClientConnector parent)
          Deprecated. 
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Method Detail

getPresentationType

java.lang.Class<T> getPresentationType()
Returns the class literal corresponding to the presentation type T.

Returns:
the class literal of T

encode

elemental.json.JsonValue encode(T value)
Encodes the given value into a JsonValue.

Parameters:
value - the value to encode
Returns:
a JSON representation of the given value

remove

@Deprecated
void remove()
Deprecated. 

This method is inherited from Extension but should never be called directly with a Renderer.

Specified by:
remove in interface Extension

setParent

@Deprecated
void setParent(ClientConnector parent)
Deprecated. 

This method is inherited from Extension but should never be called directly with a Renderer.

Specified by:
setParent in interface Extension
Parameters:
parent - the parent connector


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.