|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.ui.Grid.AbstractGridExtension
com.vaadin.ui.Grid.AbstractRenderer<T>
T - the type this renderer knows how to presentpublic abstract static class Grid.AbstractRenderer<T>
An abstract base class for server-side
Grid renderers. This class
currently extends the AbstractExtension superclass, but this fact should
be regarded as an implementation detail and subject to change in a future
major or minor Vaadin revision.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
|---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
| Constructor Summary | |
|---|---|
protected |
Grid.AbstractRenderer(java.lang.Class<T> presentationType)
|
protected |
Grid.AbstractRenderer(java.lang.Class<T> presentationType,
java.lang.String nullRepresentation)
|
| Method Summary | ||
|---|---|---|
elemental.json.JsonValue |
encode(T value)
Encodes the given value into a JsonValue. |
|
protected
|
encode(U value,
java.lang.Class<U> type)
Encodes the given value to JSON. |
|
static
|
encodeValue(java.lang.Object modelValue,
Renderer<T> renderer,
Converter<?,?> converter,
java.util.Locale locale)
Converts and encodes the given data model property value using the given converter and renderer. |
|
protected void |
extend(AbstractClientConnector target)
Deprecated. |
|
protected java.lang.String |
getNullRepresentation()
Null representation for the renderer |
|
java.lang.Class<T> |
getPresentationType()
Returns the class literal corresponding to the presentation type T. |
|
protected java.lang.Class<Grid> |
getSupportedParentType()
Deprecated. |
|
| Methods inherited from class com.vaadin.ui.Grid.AbstractGridExtension |
|---|
addComponentToGrid, getColumn, getItemId, getParentGrid, refreshRow, remove, removeComponentFromGrid |
| Methods inherited from class com.vaadin.server.AbstractExtension |
|---|
getParent, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.renderers.Renderer |
|---|
remove, setParent |
| 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 |
| Constructor Detail |
|---|
protected Grid.AbstractRenderer(java.lang.Class<T> presentationType,
java.lang.String nullRepresentation)
protected Grid.AbstractRenderer(java.lang.Class<T> presentationType)
| Method Detail |
|---|
@Deprecated protected java.lang.Class<Grid> getSupportedParentType()
getSupportedParentType in class AbstractExtension@Deprecated protected void extend(AbstractClientConnector target)
extend in class Grid.AbstractGridExtensiontarget - the connector to attach this extension topublic java.lang.Class<T> getPresentationType()
Renderer
getPresentationType in interface Renderer<T>public elemental.json.JsonValue encode(T value)
RendererJsonValue.
encode in interface Renderer<T>value - the value to encode
protected java.lang.String getNullRepresentation()
null
protected <U> elemental.json.JsonValue encode(U value,
java.lang.Class<U> type)
This is a helper method that can be invoked by an
encode(T) override if serializing a value of
type other than the presentation type
is desired. For instance, a Renderer<Date> could first turn a
date value into a formatted string and return
encode(dateString, String.class).
value - the value to be encodedtype - the type of the value
public static <T> elemental.json.JsonValue encodeValue(java.lang.Object modelValue,
Renderer<T> renderer,
Converter<?,?> converter,
java.util.Locale locale)
renderer - the renderer to useconverter - the converter to usemodelValue - the value to convert and encodelocale - the locale to use in conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||