Package com.vaadin.ui.renderers
Interface Renderer<T>
-
- Type Parameters:
T
- the type this renderer knows how to present
- All Superinterfaces:
ClientConnector
,Connector
,Extension
,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-sideGrid 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description JsonValue
encode(T value)
Encodes the given value into aJsonValue
.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
Class<T> getPresentationType()
Returns the class literal corresponding to the presentation type T.- Returns:
- the class literal of T
-
encode
JsonValue encode(T value)
Encodes the given value into aJsonValue
.- 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.
-
setParent
@Deprecated void setParent(ClientConnector parent)
Deprecated.This method is inherited from Extension but should never be called directly with a Renderer.
-
-