Package com.vaadin.ui.renderers
Class ButtonRenderer
-
- All Implemented Interfaces:
MethodEventSource
,ClientConnector
,Extension
,Connector
,Renderer<String>
,Serializable
public class ButtonRenderer extends ClickableRenderer<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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.ui.renderers.ClickableRenderer
ClickableRenderer.RendererClickEvent, ClickableRenderer.RendererClickListener
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
-
Constructor Summary
Constructors Constructor Description ButtonRenderer()
Creates a new button renderer.ButtonRenderer(ClickableRenderer.RendererClickListener listener)
Creates a new button renderer and adds the given click listener to it.ButtonRenderer(ClickableRenderer.RendererClickListener listener, String nullRepresentation)
Creates a new button renderer and adds the given click listener to it.ButtonRenderer(String nullRepresentation)
Creates a new button renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNullRepresentation()
Null representation for the renderer-
Methods inherited from class com.vaadin.ui.renderers.ClickableRenderer
addClickListener, removeClickListener
-
Methods inherited from class com.vaadin.ui.Grid.AbstractRenderer
encode, encode, encodeValue, extend, getPresentationType, getSupportedParentType
-
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 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
-
-
-
-
Constructor Detail
-
ButtonRenderer
public ButtonRenderer(String nullRepresentation)
Creates a new button renderer.- Parameters:
nullRepresentation
- the textual representation ofnull
value
-
ButtonRenderer
public ButtonRenderer(ClickableRenderer.RendererClickListener listener, 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 ofnull
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
-
-
Method Detail
-
getNullRepresentation
public String getNullRepresentation()
Description copied from class:Grid.AbstractRenderer
Null representation for the renderer- Overrides:
getNullRepresentation
in classGrid.AbstractRenderer<String>
- Returns:
- a textual representation of
null
-
-