public interface Component
Modifier and Type | Interface and Description |
---|---|
static interface |
Component.ActionOwner
Component supporting an action
|
static interface |
Component.ActionsHolder
A component containing
Action s |
static class |
Component.Alignment |
static interface |
Component.BelongToFrame
Component belonging to a frame
|
static interface |
Component.Buffered
Data aware component that supports buffered write mode.
|
static interface |
Component.ChildEditableController
Component that manages editable property of child components.
|
static interface |
Component.Collapsable
Is able to collapse (folding)
|
static interface |
Component.Container
Component which can contain other components
|
static interface |
Component.Disposable |
static interface |
Component.Editable
Component supporting "editable" state.
|
static class |
Component.EditableChangeEvent
Event that is fired when "editable" property of Editable component has been changed.
|
static interface |
Component.EditableChangeListener |
static interface |
Component.EditableChangeNotifier
Component that fires EditableChangeEvent events.
|
static class |
Component.ExpandedStateChangeEvent
Describes expanded state change event of
Component.Collapsable . |
static interface |
Component.ExpandedStateChangeListener
Listener to expanded state change events.
|
static interface |
Component.Focusable
Component supporting "focusable" state.
|
static interface |
Component.HasBorder
Object having a border
|
static interface |
Component.HasButtonsPanel
Component having a buttons pancel.
|
static interface |
Component.HasCaption
Object having a caption
|
static interface |
Component.HasFormatter
Object having a formatter
|
static interface |
Component.HasIcon
Component having an icon.
|
static interface |
Component.HasInputPrompt |
static interface |
Component.HasNamedComponents
Component which can contain other components and provides access "by-name" to children.
|
static interface |
Component.HasPresentations
Component having presentations.
|
static interface |
Component.HasRowsCount
Component having a
RowsCount component. |
static interface |
Component.HasSettings
Object supporting save/restore of user settings.
|
static interface |
Component.HasValue
Object having a value.
|
static interface |
Component.HasXmlDescriptor
Object having an XML descriptor attached
|
static class |
Component.LayoutClickEvent
Describes layout click event.
|
static interface |
Component.LayoutClickListener
Listener fired when user clicks inside the layout at any place.
|
static interface |
Component.LayoutClickNotifier
Layout having a mouse click listener.
|
static interface |
Component.Margin
A class that implements this interface can have indentation between the outer borders and the container content.
|
static class |
Component.MouseEventDetails
Class to store mouse event details.
|
static interface |
Component.OrderedContainer
Component which can contain other components and provides indexed access to children.
|
static interface |
Component.OuterMargin
A class that implements this interface can have indentation outside the border.
|
static interface |
Component.SecuredActionsHolder
An
Component.ActionsHolder component that loads and controls permissions on owned actions. |
static class |
Component.ShortcutAction
The ShortcutAction is triggered when the user presses a given key combination.
|
static interface |
Component.ShortcutNotifier
Component having a shortcut listener.
|
static class |
Component.ShortcutTriggeredEvent
Describes shortcut triggered event.
|
static interface |
Component.Spacing
A class that implements this interface can have space between child components.
|
static interface |
Component.UiPermissionAware
State of subcomponents can be managed by UI permissions.
|
static interface |
Component.Validatable
A component which can be validated
|
static class |
Component.ValueChangeEvent
Describes value change event.
|
static interface |
Component.ValueChangeListener
Listener to value change events.
|
static interface |
Component.Wrapper
Component delegating work to some "wrapped" client-specific implementation
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO_SIZE |
static int |
AUTO_SIZE_PX |
static int |
UNITS_PERCENTAGE |
static int |
UNITS_PIXELS |
Modifier and Type | Method and Description |
---|---|
void |
addStyleName(java.lang.String styleName)
Adds one or more style names to this component.
|
Component.Alignment |
getAlignment() |
java.lang.String |
getDebugId() |
float |
getHeight()
Get component height in
getHeightUnits() |
int |
getHeightUnits()
Height units:
UNITS_PIXELS , UNITS_PERCENTAGE |
java.lang.String |
getId()
Component ID as defined in
id attribute |
Component |
getParent() |
java.lang.String |
getStyleName()
Styles implementation is client-type-specific.
|
float |
getWidth()
Get component width in
getWidthUnits() |
int |
getWidthUnits()
Width units:
UNITS_PIXELS , UNITS_PERCENTAGE |
boolean |
isEnabled()
Are the component and its parent enabled?
|
boolean |
isEnabledItself()
Is the component enabled regardless of the parent?
|
boolean |
isResponsive()
Is the component responsive?
|
boolean |
isVisible()
Are the component and its parent visible?
|
boolean |
isVisibleItself()
Is the component visible regardless of the parent?
|
void |
removeStyleName(java.lang.String styleName)
Removes one or more style names from component.
|
void |
requestFocus()
Set focus to this component
|
void |
setAlignment(Component.Alignment alignment) |
void |
setDebugId(java.lang.String id)
INTERNAL.
|
void |
setEnabled(boolean enabled)
Set component enabled state
|
void |
setHeight(java.lang.String height)
Set component height in
getHeightUnits() |
default void |
setHeightAuto()
Set component height to
AUTO_SIZE |
default void |
setHeightFull()
Set component height to 100%
|
void |
setId(java.lang.String id)
Set component ID
|
void |
setParent(Component parent)
INTERNAL.
Component.Container.add(Component) is normally used for adding components
to a parent and the used method will call this method implicitly. |
void |
setResponsive(boolean responsive)
Set component to be responsive by width and height.
|
default void |
setSizeAuto()
Set component width and height to
AUTO_SIZE |
default void |
setSizeFull()
Set component width and height to 100%
|
void |
setStyleName(java.lang.String styleName)
Sets one or more style names of the component, replacing any
previous styles.
|
void |
setVisible(boolean visible)
Set component visibility
|
void |
setWidth(java.lang.String width)
Set component width in
getWidthUnits() |
default void |
setWidthAuto()
Set component width to
AUTO_SIZE |
default void |
setWidthFull()
Set component width to 100%
|
<X> X |
unwrap(java.lang.Class<X> internalComponentClass)
Get client specific component instance.
|
<X> X |
unwrapComposition(java.lang.Class<X> internalCompositionClass)
Get the outmost external container of client specific component instance.
|
static final int UNITS_PIXELS
static final int UNITS_PERCENTAGE
static final java.lang.String AUTO_SIZE
static final int AUTO_SIZE_PX
java.lang.String getId()
id
attributevoid setId(java.lang.String id)
Component getParent()
void setParent(Component parent)
Component.Container.add(Component)
is normally used for adding components
to a parent and the used method will call this method implicitly.parent
- Parent componentjava.lang.String getDebugId()
void setDebugId(java.lang.String id)
boolean isEnabled()
void setEnabled(boolean enabled)
boolean isResponsive()
void setResponsive(boolean responsive)
boolean isVisible()
void setVisible(boolean visible)
boolean isVisibleItself()
boolean isEnabledItself()
void requestFocus()
float getHeight()
getHeightUnits()
int getHeightUnits()
UNITS_PIXELS
, UNITS_PERCENTAGE
void setHeight(java.lang.String height)
getHeightUnits()
default void setHeightAuto()
AUTO_SIZE
default void setHeightFull()
float getWidth()
getWidthUnits()
int getWidthUnits()
UNITS_PIXELS
, UNITS_PERCENTAGE
void setWidth(java.lang.String width)
getWidthUnits()
default void setWidthAuto()
AUTO_SIZE
default void setWidthFull()
default void setSizeFull()
default void setSizeAuto()
AUTO_SIZE
Component.Alignment getAlignment()
void setAlignment(Component.Alignment alignment)
java.lang.String getStyleName()
void setStyleName(java.lang.String styleName)
styleName
- one or more style names separated by space.void addStyleName(java.lang.String styleName)
styleName
- one or more style names separated by space.void removeStyleName(java.lang.String styleName)
styleName
- one or more style names separated by space.<X> X unwrap(java.lang.Class<X> internalComponentClass)
com.vaadin.ui.TextField vTextField = textField.unwrap(com.vaadin.ui.TextField.class);
X
- type of internal classinternalComponentClass
- class of underlying component implementation based on Vaadin or Swing<X> X unwrapComposition(java.lang.Class<X> internalCompositionClass)
com.vaadin.ui.Layout vLayout = table.unwrapComposition(com.vaadin.ui.Layout.class);
X
- type of internal classinternalCompositionClass
- class of underlying composition implementation based on Vaadin or Swing