Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
PlainTextCell(java.lang.String text) |
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
Component.getHeightUnits() |
int |
getHeightUnits()
Height units:
Component.UNITS_PIXELS , Component.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.
|
java.lang.String |
getText() |
float |
getWidth()
Get component width in
Component.getWidthUnits() |
int |
getWidthUnits()
Width units:
Component.UNITS_PIXELS , Component.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
Component.getHeightUnits() |
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.
|
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
Component.getWidthUnits() |
<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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFull
public java.lang.String getText()
public java.lang.String getId()
Component
id
attributepublic void setId(java.lang.String id)
Component
public Component getParent()
public void setParent(Component parent)
Component
Component.Container.add(Component)
is normally used for adding components
to a parent and the used method will call this method implicitly.public java.lang.String getDebugId()
getDebugId
in interface Component
public void setDebugId(java.lang.String id)
Component
setDebugId
in interface Component
public boolean isEnabled()
Component
public void setEnabled(boolean enabled)
Component
setEnabled
in interface Component
public boolean isResponsive()
Component
isResponsive
in interface Component
public void setResponsive(boolean responsive)
Component
setResponsive
in interface Component
public boolean isVisible()
Component
public void setVisible(boolean visible)
Component
setVisible
in interface Component
public boolean isVisibleItself()
Component
isVisibleItself
in interface Component
public boolean isEnabledItself()
Component
isEnabledItself
in interface Component
public void requestFocus()
Component
requestFocus
in interface Component
public float getHeight()
Component
Component.getHeightUnits()
public int getHeightUnits()
Component
Component.UNITS_PIXELS
, Component.UNITS_PERCENTAGE
getHeightUnits
in interface Component
public void setHeight(java.lang.String height)
Component
Component.getHeightUnits()
public float getWidth()
Component
Component.getWidthUnits()
public int getWidthUnits()
Component
Component.UNITS_PIXELS
, Component.UNITS_PERCENTAGE
getWidthUnits
in interface Component
public void setWidth(java.lang.String width)
Component
Component.getWidthUnits()
public Component.Alignment getAlignment()
getAlignment
in interface Component
public void setAlignment(Component.Alignment alignment)
setAlignment
in interface Component
public java.lang.String getStyleName()
Component
getStyleName
in interface Component
public void setStyleName(java.lang.String styleName)
Component
setStyleName
in interface Component
styleName
- one or more style names separated by space.public void addStyleName(java.lang.String styleName)
Component
addStyleName
in interface Component
styleName
- one or more style names separated by space.public void removeStyleName(java.lang.String styleName)
Component
removeStyleName
in interface Component
styleName
- one or more style names separated by space.public <X> X unwrap(java.lang.Class<X> internalComponentClass)
Component
com.vaadin.ui.TextField vTextField = textField.unwrap(com.vaadin.ui.TextField.class);
public <X> X unwrapComposition(java.lang.Class<X> internalCompositionClass)
Component
com.vaadin.ui.Layout vLayout = table.unwrapComposition(com.vaadin.ui.Layout.class);
unwrapComposition
in interface Component
X
- type of internal classinternalCompositionClass
- class of underlying composition implementation based on Vaadin or Swing