|
||||||||||
| 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.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.
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)
|
| 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. |
|
protected void |
extend(AbstractClientConnector target)
Deprecated. |
|
protected Grid.Column |
getColumn(java.lang.String columnId)
Gets the column for a column id. |
|
protected java.lang.Object |
getItemId(java.lang.String rowKey)
Gets the item id for a row key. |
|
protected Grid |
getParentGrid()
Gets the parent Grid of 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.server.AbstractExtension |
|---|
getParent, remove, 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)
| Method Detail |
|---|
@Deprecated protected java.lang.Class<Grid> getSupportedParentType()
getSupportedParentType in class AbstractExtension@Deprecated protected void extend(AbstractClientConnector target)
extend in class AbstractExtensiontarget - 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 <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
protected java.lang.Object getItemId(java.lang.String rowKey)
A key is used to identify a particular row on both a server and a client. This method can be used to get the item id for the row key that the client has sent.
rowKey - the row key for which to retrieve an item id
keyprotected Grid.Column getColumn(java.lang.String columnId)
An id is used to identify a particular column on both a server and a client. This method can be used to get the column for the column id that the client has sent.
columnId - the column id for which to retrieve a column
columnIdprotected Grid getParentGrid()
java.lang.IllegalStateException - if parent is not Grid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||