com.vaadin.ui
Class ExpandLayout
java.lang.Object
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
com.vaadin.ui.AbstractOrderedLayout
com.vaadin.ui.OrderedLayout
com.vaadin.ui.ExpandLayout
- All Implemented Interfaces:
- LayoutEvents.LayoutClickNotifier, MethodEventSource, Paintable, Sizeable, VariableOwner, Component, ComponentContainer, Layout, Layout.AlignmentHandler, Layout.MarginHandler, Layout.SpacingHandler, Serializable, EventListener
Deprecated. Deprecated in favor of the new OrderedLayout
@Deprecated
public class ExpandLayout
- extends OrderedLayout
A layout that will give one of it's components as much space as possible,
while still showing the other components in the layout. The other components
will in effect be given a fixed sized space, while the space given to the
expanded component will grow/shrink to fill the rest of the space available -
for instance when re-sizing the window.
Note that this layout is 100% in both directions by default ({link
AbstractComponent.setSizeFull()
). Remember to set the units if you want to specify a
fixed size. If the layout fails to show up, check that the parent layout is
actually giving some space.
- See Also:
- Serialized Form
Fields inherited from interface com.vaadin.terminal.Sizeable |
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout |
addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, removeListener, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacing |
Methods inherited from class com.vaadin.ui.AbstractComponentContainer |
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth |
Methods inherited from class com.vaadin.ui.AbstractComponent |
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.terminal.Sizeable |
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidth, setWidthUnits |
ExpandLayout
public ExpandLayout()
- Deprecated.
ExpandLayout
public ExpandLayout(int orientation)
- Deprecated.
expand
public void expand(Component c)
- Deprecated.
- Parameters:
c
- Component which container will be maximized
addComponent
public void addComponent(Component c,
int index)
- Deprecated.
- Description copied from class:
AbstractOrderedLayout
- Adds a component into indexed position in this container.
- Overrides:
addComponent
in class AbstractOrderedLayout
- Parameters:
c
- the component to be added.index
- the index of the component position. The components currently
in and after the position are shifted forwards.
addComponent
public void addComponent(Component c)
- Deprecated.
- Description copied from class:
AbstractOrderedLayout
- Add a component into this container. The component is added to the right
or under the previous component.
- Specified by:
addComponent
in interface ComponentContainer
- Overrides:
addComponent
in class AbstractOrderedLayout
- Parameters:
c
- the component to be added.- See Also:
ComponentContainer.addComponent(Component)
addComponentAsFirst
public void addComponentAsFirst(Component c)
- Deprecated.
- Description copied from class:
AbstractOrderedLayout
- Adds a component into this container. The component is added to the left
or on top of the other components.
- Overrides:
addComponentAsFirst
in class AbstractOrderedLayout
- Parameters:
c
- the component to be added.
removeComponent
public void removeComponent(Component c)
- Deprecated.
- Description copied from class:
AbstractOrderedLayout
- Removes the component from this container.
- Specified by:
removeComponent
in interface ComponentContainer
- Overrides:
removeComponent
in class AbstractOrderedLayout
- Parameters:
c
- the component to be removed.- See Also:
ComponentContainer.removeComponent(Component)
replaceComponent
public void replaceComponent(Component oldComponent,
Component newComponent)
- Deprecated.
- Description copied from interface:
ComponentContainer
- Replaces the component in the container with another one without changing
position.
This method replaces component with another one is such way that the new
component overtakes the position of the old component. If the old
component is not in the container, the new component is added to the
container. If the both component are already in the container, their
positions are swapped. Component attach and detach events should be taken
care as with add and remove.
- Specified by:
replaceComponent
in interface ComponentContainer
- Overrides:
replaceComponent
in class AbstractOrderedLayout
- Parameters:
oldComponent
- the old component that will be replaced.newComponent
- the new component to be replaced.
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.