|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
public abstract class AbstractComponentContainer
Extension to AbstractComponent
that defines the default
implementation for the methods in ComponentContainer
. Basic UI
components that need to contain other components inherit this class to easily
qualify as a component container.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents |
---|
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener |
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 class com.vaadin.ui.AbstractComponent |
---|
DESIGN_ATTR_PLAIN_TEXT |
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 |
Constructor Summary | |
---|---|
AbstractComponentContainer()
Constructs a new component container. |
Method Summary | |
---|---|
void |
addComponent(Component c)
This only implements the events and component parent calls. |
void |
addComponentAttachListener(HasComponents.ComponentAttachListener listener)
Listens the component attach events. |
void |
addComponentDetachListener(HasComponents.ComponentDetachListener listener)
Listens the component detach events. |
void |
addComponents(Component... components)
Adds the components in the given order to this component container. |
void |
addListener(HasComponents.ComponentAttachListener listener)
Deprecated. As of 7.0, replaced by #addComponentAttachListener(com.vaadin.ui.ComponentContainer.ComponentAttachListener) |
void |
addListener(HasComponents.ComponentDetachListener listener)
Deprecated. As of 7.0, replaced by #addComponentDetachListener(com.vaadin.ui.ComponentContainer.ComponentDetachListener) |
protected void |
fireComponentAttachEvent(Component component)
Fires the component attached event. |
protected void |
fireComponentDetachEvent(Component component)
Fires the component detached event. |
java.util.Iterator<Component> |
getComponentIterator()
Deprecated. As of 7.0, use HasComponents.iterator() instead. |
void |
moveComponentsFrom(ComponentContainer source)
Moves all components from an another container into this container. |
void |
removeAllComponents()
Removes all components from the container. |
void |
removeComponent(Component c)
This only implements the events and component parent calls. |
void |
removeComponentAttachListener(HasComponents.ComponentAttachListener listener)
Stops the listening component attach events. |
void |
removeComponentDetachListener(HasComponents.ComponentDetachListener listener)
Stops the listening component detach events. |
void |
removeListener(HasComponents.ComponentAttachListener listener)
Deprecated. As of 7.0, replaced by #removeComponentAttachListener(com.vaadin.ui.ComponentContainer.ComponentAttachListener) |
void |
removeListener(HasComponents.ComponentDetachListener listener)
Deprecated. As of 7.0, replaced by #removeComponentDetachListener(com.vaadin.ui.ComponentContainer.ComponentDetachListener) |
void |
setHeight(float height,
Sizeable.Unit unit)
Sets the height of the object. |
void |
setWidth(float width,
Sizeable.Unit unit)
Sets the width of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.ComponentContainer |
---|
getComponentCount, replaceComponent |
Methods inherited from interface com.vaadin.ui.HasComponents |
---|
iterator |
Methods inherited from interface com.vaadin.ui.Component |
---|
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign |
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, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthUndefined |
Constructor Detail |
---|
public AbstractComponentContainer()
Method Detail |
---|
public void addComponents(Component... components)
ComponentContainer
addComponents
in interface ComponentContainer
components
- The components to add.public void removeAllComponents()
removeAllComponents
in interface ComponentContainer
public void moveComponentsFrom(ComponentContainer source)
ComponentContainer
source
.
moveComponentsFrom
in interface ComponentContainer
source
- the container which contains the components that are to be
moved to this container.public void addComponentAttachListener(HasComponents.ComponentAttachListener listener)
HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener
in interface HasComponents.ComponentAttachDetachNotifier
listener
- the listener to add.@Deprecated public void addListener(HasComponents.ComponentAttachListener listener)
#addComponentAttachListener(com.vaadin.ui.ComponentContainer.ComponentAttachListener)
addListener
in interface ComponentContainer
public void removeComponentAttachListener(HasComponents.ComponentAttachListener listener)
HasComponents.ComponentAttachDetachNotifier
removeComponentAttachListener
in interface HasComponents.ComponentAttachDetachNotifier
listener
- the listener to removed.@Deprecated public void addListener(HasComponents.ComponentDetachListener listener)
#addComponentDetachListener(com.vaadin.ui.ComponentContainer.ComponentDetachListener)
addListener
in interface ComponentContainer
public void addComponentDetachListener(HasComponents.ComponentDetachListener listener)
HasComponents.ComponentAttachDetachNotifier
addComponentDetachListener
in interface HasComponents.ComponentAttachDetachNotifier
@Deprecated public void removeListener(HasComponents.ComponentAttachListener listener)
#removeComponentAttachListener(com.vaadin.ui.ComponentContainer.ComponentAttachListener)
removeListener
in interface ComponentContainer
public void removeComponentDetachListener(HasComponents.ComponentDetachListener listener)
HasComponents.ComponentAttachDetachNotifier
removeComponentDetachListener
in interface HasComponents.ComponentAttachDetachNotifier
@Deprecated public void removeListener(HasComponents.ComponentDetachListener listener)
#removeComponentDetachListener(com.vaadin.ui.ComponentContainer.ComponentDetachListener)
removeListener
in interface ComponentContainer
protected void fireComponentAttachEvent(Component component)
component
- the component that has been added to this container.protected void fireComponentDetachEvent(Component component)
component
- the component that has been removed from this container.public void addComponent(Component c)
addComponent
in interface ComponentContainer
c
- the component to be added.ComponentContainer.addComponent(Component)
public void removeComponent(Component c)
removeComponent
in interface ComponentContainer
c
- the component to be removed.ComponentContainer.removeComponent(Component)
public void setWidth(float width, Sizeable.Unit unit)
Sizeable
setWidth
in interface Sizeable
setWidth
in class AbstractComponent
width
- the width of the object.unit
- the unit used for the width.public void setHeight(float height, Sizeable.Unit unit)
Sizeable
setHeight
in interface Sizeable
setHeight
in class AbstractComponent
height
- the height of the object.unit
- the unit used for the width.@Deprecated public java.util.Iterator<Component> getComponentIterator()
HasComponents.iterator()
instead.
getComponentIterator
in interface ComponentContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |