com.vaadin.ui.renderers
Class ButtonRenderer
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.ui.Grid.AbstractGridExtension
com.vaadin.ui.Grid.AbstractRenderer<T>
com.vaadin.ui.renderers.ClickableRenderer<java.lang.String>
com.vaadin.ui.renderers.ButtonRenderer
- All Implemented Interfaces:
- MethodEventSource, ClientConnector, Extension, com.vaadin.shared.Connector, Renderer<java.lang.String>, java.io.Serializable
public class ButtonRenderer
- extends ClickableRenderer<java.lang.String>
A Renderer that displays a button with a textual caption. The value of the
corresponding property is used as the caption. Click listeners can be added
to the renderer, invoked when any of the rendered buttons is clicked.
- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
Methods inherited from class com.vaadin.server.AbstractClientConnector |
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 |
ButtonRenderer
public ButtonRenderer(java.lang.String nullRepresentation)
- Creates a new button renderer.
- Parameters:
nullRepresentation
- the textual representation of null
value
ButtonRenderer
public ButtonRenderer(ClickableRenderer.RendererClickListener listener,
java.lang.String nullRepresentation)
- Creates a new button renderer and adds the given click listener to it.
- Parameters:
listener
- the click listener to registernullRepresentation
- the textual representation of null
value
ButtonRenderer
public ButtonRenderer()
- Creates a new button renderer.
ButtonRenderer
public ButtonRenderer(ClickableRenderer.RendererClickListener listener)
- Creates a new button renderer and adds the given click listener to it.
- Parameters:
listener
- the click listener to register
getNullRepresentation
public java.lang.String getNullRepresentation()
- Description copied from class:
Grid.AbstractRenderer
- Null representation for the renderer
- Overrides:
getNullRepresentation
in class Grid.AbstractRenderer<java.lang.String>
- Returns:
- a textual representation of
null
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.