Example usage for Java com.vaadin.ui Button fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
Registration | addClickListener(ClickListener listener) Adds the button click listener. |
Registration | addListener(Component.Listener listener) |
Registration | addListener(Class> eventType, Object target, Method method) Registers a new listener with the specified activation method to listen events generated by this component. |
Registration | addShortcutListener(ShortcutListener shortcut) |
void | addStyleName(String style) |
void | click() Simulates a button click, notifying all server-side listeners. |
boolean | equals(Object obj) |
void | focus() |
String | getCaption() |
Object | getData() Gets the application specific data. |
String | getDescription() |
ErrorHandler | getErrorHandler() |
float | getHeight() |
Resource | getIcon() |
String | getId() |
Collection> | getListeners(Class> eventType) Returns all listeners that are registered for the given event type or one of its subclasses. |
HasComponents | getParent() |
String | getStyleName() |
float | getWidth() |
boolean | isEnabled() |
boolean | isReadOnly() Returns the read-only status from the state of this AbstractComponent . |
boolean | isVisible() |
void | removeClickListener(ClickListener listener) Removes the button click listener. |
void | removeClickShortcut() Removes the keyboard shortcut previously set with #setClickShortcut(int,int) . |
void | removeExtension(Extension extension) |
void | removeListener(Class> eventType, Object target) Removes all registered listeners matching the given parameters. |
void | removeStyleName(String style) |
void | setCaption(String caption) |
void | setCaptionAsHtml(boolean captionAsHtml) Sets whether the caption is rendered as HTML. |
void | setClickShortcut(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). |
void | setComponentError(ErrorMessage componentError) Sets the component's error message. |
void | setData(Object data) Sets the data object, that can be used for any application specific data. |
void | setDebugId(String id) |
void | setDescription(String description) Sets the component's description. |
void | setDisableOnClick(boolean disableOnClick) Determines if a button is automatically disabled when clicked. |
void | setEnabled(boolean enabled) |
void | setErrorHandler(ErrorHandler errorHandler) |
void | setHeight(String height) |
void | setHeight(float height, Unit unit) |
void | setHeightUndefined() |
void | setHtmlContentAllowed(boolean htmlContentAllowed) Set whether the caption text is rendered as HTML or not. |
void | setIcon(Resource icon) Sets the component's icon. |
void | setIcon(Resource icon, String iconAltText) Sets the component's icon and alt text. |
void | setIconAlternateText(String iconAltText) |
void | setId(String id) |
void | setParent(HasComponents parent) |
void | setPrimaryStyleName(String style) |
void | setReadOnly(boolean readOnly) Sets the read-only status in the state of this AbstractComponent . |
void | setResponsive(boolean responsive) Toggles responsiveness of this component. |
void | setSizeFull() |
void | setSizeUndefined() |
void | setStyleName(String style) |
void | setTabIndex(int tabIndex) |
void | setVisible(boolean visible) |
void | setWidth(String width) |
void | setWidth(float width, Unit unit) |
void | setWidthUndefined() |