com.vaadin.ui
Interface HasComponents

All Superinterfaces:
ClientConnector, Component, com.vaadin.shared.Connector, java.lang.Iterable<Component>, java.io.Serializable, Sizeable
All Known Subinterfaces:
ComponentContainer, Layout, SelectiveRenderer, SingleComponentContainer
All Known Implementing Classes:
AbsoluteLayout, AbstractComponentContainer, AbstractLayout, AbstractOrderedLayout, AbstractSingleComponentContainer, AbstractSplitPanel, Accordion, ColorPickerHistory, ColorPickerPopup, ColorPickerPreview, ColorPickerSelect, CssLayout, CustomComponent, CustomField, CustomLayout, DragAndDropWrapper, Form, FormLayout, GridLayout, HorizontalLayout, HorizontalSplitPanel, LegacyWindow, LoginForm, Navigator.EmptyView, Panel, PopupView, Table, TabSheet, TreeTable, UI, 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

Nested Class Summary
static interface HasComponents.ComponentAttachDetachNotifier
          Interface for HasComponents implementations that support sending attach and detach events for components.
static class HasComponents.ComponentAttachEvent
          Component attach event sent when a component is attached to container.
static interface HasComponents.ComponentAttachListener
          Component attach listener interface.
static class HasComponents.ComponentDetachEvent
          Component detach event sent when a component is detached from container.
static interface HasComponents.ComponentDetachListener
          Component detach listener interface.
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
Sizeable.Unit
 
Field Summary
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Method Summary
 java.util.Iterator<Component> iterator()
          Gets an iterator to the collection of contained components.
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
 

Method Detail

iterator

java.util.Iterator<Component> iterator()
Gets an iterator to the collection of contained components. Using this iterator it is possible to step through all components contained in this container.

Specified by:
iterator in interface java.lang.Iterable<Component>
Returns:
the component iterator.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.