Java com.vaadin.ui Button fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui Button fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui Button.

The text is from its open source code.

Subclass

com.vaadin.ui.Button has subclasses.
Click this link to see all its subclasses.

Constructor

Button(String caption)
Creates a new push button with the given caption.
Button(Resource icon)
Creates a new push button with the given icon.
Button()
Creates a new push button.
Button(String caption, Resource icon)
Creates a new push button with the given caption and icon.
Button(String caption, ClickListener listener)
Creates a new push button with a click listener.
Button(Resource icon, ClickListener listener)
Creates a new push button with a click listener.

Method

RegistrationaddClickListener(ClickListener listener)
Adds the button click listener.
RegistrationaddListener(Component.Listener listener)
RegistrationaddListener(Class eventType, Object target, Method method)
Registers a new listener with the specified activation method to listen events generated by this component.
RegistrationaddShortcutListener(ShortcutListener shortcut)
voidaddStyleName(String style)
voidclick()
Simulates a button click, notifying all server-side listeners.
booleanequals(Object obj)
voidfocus()
StringgetCaption()
ObjectgetData()
Gets the application specific data.
StringgetDescription()
ErrorHandlergetErrorHandler()
floatgetHeight()
ResourcegetIcon()
StringgetId()
CollectiongetListeners(Class eventType)
Returns all listeners that are registered for the given event type or one of its subclasses.
HasComponentsgetParent()
StringgetStyleName()
floatgetWidth()
booleanisEnabled()
booleanisReadOnly()
Returns the read-only status from the state of this AbstractComponent .
booleanisVisible()
voidremoveClickListener(ClickListener listener)
Removes the button click listener.
voidremoveClickShortcut()
Removes the keyboard shortcut previously set with #setClickShortcut(int,int) .
voidremoveExtension(Extension extension)
voidremoveListener(Class eventType, Object target)
Removes all registered listeners matching the given parameters.
voidremoveStyleName(String style)
voidsetCaption(String caption)
voidsetCaptionAsHtml(boolean captionAsHtml)
Sets whether the caption is rendered as HTML.
voidsetClickShortcut(int keyCode, int... modifiers)
Makes it possible to invoke a click on this button by pressing the given KeyCode and (optional) ModifierKey s.
The shortcut is global (bound to the containing Window).
voidsetComponentError(ErrorMessage componentError)
Sets the component's error message.
voidsetData(Object data)
Sets the data object, that can be used for any application specific data.
voidsetDebugId(String id)
voidsetDescription(String description)
Sets the component's description.
voidsetDisableOnClick(boolean disableOnClick)
Determines if a button is automatically disabled when clicked.
voidsetEnabled(boolean enabled)
voidsetErrorHandler(ErrorHandler errorHandler)
voidsetHeight(String height)
voidsetHeight(float height, Unit unit)
voidsetHeightUndefined()
voidsetHtmlContentAllowed(boolean htmlContentAllowed)
Set whether the caption text is rendered as HTML or not.
voidsetIcon(Resource icon)
Sets the component's icon.
voidsetIcon(Resource icon, String iconAltText)
Sets the component's icon and alt text.
voidsetIconAlternateText(String iconAltText)
voidsetId(String id)
voidsetParent(HasComponents parent)
voidsetPrimaryStyleName(String style)
voidsetReadOnly(boolean readOnly)
Sets the read-only status in the state of this AbstractComponent .
voidsetResponsive(boolean responsive)
Toggles responsiveness of this component.
voidsetSizeFull()
voidsetSizeUndefined()
voidsetStyleName(String style)
voidsetTabIndex(int tabIndex)
voidsetVisible(boolean visible)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)
voidsetWidthUndefined()