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
- extends OrderedLayout
@Deprecated
public class ExpandLayout
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:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
Nested classes/interfaces inherited from interface com.vaadin.ui.Layout |
---|
Layout.AlignmentHandler, Layout.MarginHandler, Layout.MarginInfo, Layout.SpacingHandler |
Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer |
---|
ComponentContainer.ComponentAttachEvent, ComponentContainer.ComponentAttachListener, ComponentContainer.ComponentDetachEvent, ComponentContainer.ComponentDetachListener |
Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
---|
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener |
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable |
---|
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener |
Field Summary |
---|
Fields inherited from class com.vaadin.ui.OrderedLayout |
---|
ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL |
Fields inherited from class com.vaadin.ui.AbstractOrderedLayout |
---|
ALIGNMENT_DEFAULT, components |
Fields inherited from class com.vaadin.ui.AbstractLayout |
---|
margins |
Fields inherited from interface com.vaadin.ui.Layout.AlignmentHandler |
---|
ALIGNMENT_BOTTOM, ALIGNMENT_HORIZONTAL_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, ALIGNMENT_TOP, ALIGNMENT_VERTICAL_CENTER |
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 |
Constructor Summary | |
---|---|
ExpandLayout()
Deprecated. |
|
ExpandLayout(int orientation)
Deprecated. |
Method Summary | |
---|---|
void |
addComponent(Component c)
Deprecated. Add a component into this container. |
void |
addComponent(Component c,
int index)
Deprecated. Adds a component into indexed position in this container. |
void |
addComponentAsFirst(Component c)
Deprecated. Adds a component into this container. |
void |
expand(Component c)
Deprecated. |
void |
removeComponent(Component c)
Deprecated. Removes the component from this container. |
void |
replaceComponent(Component oldComponent,
Component newComponent)
Deprecated. Replaces the component in the container with another one without changing position. |
Methods inherited from class com.vaadin.ui.OrderedLayout |
---|
getOrientation, paintContent, setOrientation, setOrientation |
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.AbstractLayout |
---|
changeVariables, fireClick, getMargin, setMargin, setMargin, setMargin |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.ComponentContainer |
---|
addListener, addListener, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll |
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.Paintable |
---|
addListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugId |
Methods inherited from interface com.vaadin.terminal.VariableOwner |
---|
isImmediate |
Methods inherited from interface com.vaadin.terminal.Sizeable |
---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidth, setWidthUnits |
Constructor Detail |
---|
ExpandLayout
public ExpandLayout()
Deprecated.
ExpandLayout
public ExpandLayout(int orientation)
Deprecated.
Method Detail |
---|
expand
public void expand(Component c)
- Parameters:
c
- Component which container will be maximized
Deprecated.
addComponent
public void addComponent(Component c,
int index)
- Overrides:
addComponent
in classAbstractOrderedLayout
- 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.
Deprecated.
Description copied from class: AbstractOrderedLayout
Adds a component into indexed position in this container.
addComponent
public void addComponent(Component c)
- Specified by:
addComponent
in interfaceComponentContainer
- Overrides:
addComponent
in classAbstractOrderedLayout
- Parameters:
c
- the component to be added.- See Also:
ComponentContainer.addComponent(Component)
Deprecated.
Description copied from class: AbstractOrderedLayout
Add a component into this container. The component is added to the right or under the previous component.
addComponentAsFirst
public void addComponentAsFirst(Component c)
- Overrides:
addComponentAsFirst
in classAbstractOrderedLayout
- Parameters:
c
- the component to be added.
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.
removeComponent
public void removeComponent(Component c)
- Specified by:
removeComponent
in interfaceComponentContainer
- Overrides:
removeComponent
in classAbstractOrderedLayout
- Parameters:
c
- the component to be removed.- See Also:
ComponentContainer.removeComponent(Component)
Deprecated.
Description copied from class: AbstractOrderedLayout
Removes the component from this container.
replaceComponent
public void replaceComponent(Component oldComponent,
Component newComponent)
- Specified by:
replaceComponent
in interfaceComponentContainer
- Overrides:
replaceComponent
in classAbstractOrderedLayout
- Parameters:
oldComponent
- the old component that will be replaced.newComponent
- the new component to be replaced.
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.