Example usage for Java com.vaadin.ui Component fields, constructors, methods, implement or subclass
The text is from its open source code.
Registration | addAttachListener(AttachListener listener) Add a listener for connector attach events. |
Registration | addListener(Component.Listener listener) Registers a new (generic) component event listener for the component. |
void | addStyleName(String style) Adds one or more style names to this component. |
void | detach() Notifies the connector that it is detached from its VaadinSession. |
String | getCaption() Gets the caption of the component. |
String | getConnectorId() Returns the id for this connector. |
String | getDescription() Gets the components description, used in tooltips and can be displayed directly in certain other components such as forms. |
Collection | getExtensions() Get a read-only collection of all extensions attached to this connector. |
float | getHeight() Gets the height of the object. |
Unit | getHeightUnits() Gets the height property units. |
String | getId() Gets currently set debug identifier. |
Locale | getLocale() Gets the locale of the component. |
HasComponents | getParent() Gets the parent component of the component. |
String | getStyleName() Gets all user-defined CSS style names of a component. |
UI | getUI() Gets the UI the component is attached to. |
float | getWidth() Gets the width of the object. |
Unit | getWidthUnits() Gets the width property units. |
boolean | isAttached() Checks if the connector is attached to a VaadinSession. |
boolean | isEnabled() Tests whether the component is enabled or not. |
boolean | isVisible() Tests the visibility property of the component. |
void | markAsDirty() Marks that this connector's state might have changed. |
void | removeListener(Component.Listener listener) Removes a previously registered component event listener from this component. |
void | removeStyleName(String style) Removes one or more style names from component. |
void | setCaption(String caption) Sets the caption of the component. |
void | setEnabled(boolean enabled) Enables or disables the component. |
void | setHeight(float height, Unit unit) Sets the height of the object. |
void | setHeight(String height) Sets the height of the component using String presentation. |
void | setIcon(Resource icon) Sets the icon of the component. |
void | setId(String id) Adds an unique id for component that is used in the client-side for testing purposes. |
void | setParent(HasComponents parent) Sets the parent connector of the component. |
void | setPrimaryStyleName(String style) Changes the primary style name of the component. |
void | setSizeFull() Sets the size to 100% x 100%. |
void | setSizeUndefined() Clears any size settings. |
void | setStyleName(String style) Sets one or more user-defined style names of the component, replacing any previous user-defined styles. |
void | setVisible(boolean visible) Sets the visibility of the component. |
void | setWidth(String width) Sets the width of the component using String presentation. |
void | setWidth(float width, Unit unit) Sets the width of the object. |
void | setWidthUndefined() Clears any defined width. |