com.vaadin.ui
Interface HasComponents
- All Superinterfaces:
- ClientConnector, Component, com.vaadin.shared.Connector, java.lang.Iterable<Component>, RpcTarget, java.io.Serializable, Sizeable
- All Known Subinterfaces:
- ComponentContainer, Layout
- All Known Implementing Classes:
- AbsoluteLayout, AbstractComponentContainer, AbstractLayout, AbstractOrderedLayout, AbstractSplitPanel, Accordion, CssLayout, CustomComponent, CustomField, CustomLayout, DragAndDropWrapper, Form, FormLayout, GridLayout, HorizontalLayout, HorizontalSplitPanel, LoginForm, Navigator.EmptyView, Navigator.SimpleViewDisplay, Panel, PopupView, Table, TabSheet, TreeTable, UI, UI.LegacyWindow, VerticalLayout, VerticalSplitPanel, Window
public interface HasComponents
- extends Component, java.lang.Iterable<Component>
Interface that must be implemented by all Components that contain
other Components.
- Since:
- 7.0.0
- Author:
- Vaadin Ltd
| Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, attach, getCaption, getIcon, getId, getLocale, getParent, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setReadOnly, setStyleName, setVisible |
| Methods inherited from interface com.vaadin.server.ClientConnector |
beforeClientResponse, detach, encodeState, getExtensions, getStateType, handleConnectorRequest, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setParent |
| Methods inherited from interface com.vaadin.shared.Connector |
getConnectorId |
| Methods inherited from interface java.lang.Iterable |
iterator |
getComponentIterator
@Deprecated
java.util.Iterator<Component> getComponentIterator()
- Deprecated. Use
Iterable.iterator() instead.
- Gets an iterator to the collection of contained components. Using this
iterator it is possible to step through all components contained in this
container.
- Returns:
- the component iterator.
isComponentVisible
boolean isComponentVisible(Component childComponent)
- Checks if the child component is visible. This method allows hiding a
child component from updates and communication to and from the client.
This is useful for components that show only a limited number of its
children at any given time and want to allow updates only for the
children that are visible (e.g. TabSheet has one tab open at a time).
Note that this will prevent updates from reaching the child even though
the child itself is set to visible. Also if a child is set to invisible
this will not force it to be visible.
- Parameters:
childComponent - The child component to check
- Returns:
- true if the child component is visible to the user, false
otherwise
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.