super();
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * com.vaadin.ui.ComponentContainer#addComponents(com.vaadin.ui.Component[])
+ */
+ @Override
+ public void addComponents(Component... components) {
+ for (Component c : components) {
+ addComponent(c);
+ }
+ }
+
/**
* Removes all components from the container. This should probably be
* re-implemented in extending classes for a more powerful implementation.
}
- /**
- * Adds the given components in the given order to the container.
- *
- * @param components
- * The components to add.
- */
- public void addComponents(Component... components) {
- for (Component c : components) {
- addComponent(c);
- }
- }
-
/**
* Adds a component into indexed position in this container.
*
import com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier;
/**
- * Extension to the {@link Component} interface which adds to it the capacity to
- * contain other components. All UI elements that can have child elements
- * implement this interface.
+ * A special type of parent which allows the user to add and remove components
+ * to it. Typically does not have any restrictions on the number of children it
+ * can contain.
*
* @author Vaadin Ltd.
* @since 3.0
*/
public void addComponent(Component c);
+ /**
+ * Adds the components in the given order to this component container.
+ *
+ * @param components
+ * The components to add.
+ */
+ public void addComponents(Component... components);
+
/**
* Removes the component from this container.
*
}
}
- /**
- * Adds the given components into this container. Each component is added to
- * the right or below the previous component.
- *
- * @param components
- * The components to add.
- */
- public void addComponents(Component... components) {
- for (Component c : components) {
- addComponent(c);
- }
- }
-
/**
* Adds a component into this container. The component is added to the left
* or on top of the other components.
markAsDirty();
}
- /**
- * Adds the given components to the grid starting from the current cursor
- * position.
- *
- * @param components
- * Components to add.
- */
- public void addComponents(Component... components) {
- for (Component c : components) {
- this.addComponent(c);
- }
- }
-
/**
* Tests if the given area overlaps with any of the items already on the
* grid.