Panel - a simple single component container.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.ui.AbstractComponent -> com.itmill.toolkit.ui.AbstractComponentContainer -> com.itmill.toolkit.ui.Panel
Parameters
layout
The layout used in the panel.
Create new empty panel with given layout. Layout must be non-null.
Parameters
caption
The caption used in the panel.
Create new empty panel with caption. Ordered layout is used.
Parameters
caption
The caption of the panel.
layout
The layout used in the panel.
Create new empty panel with caption.
Parameters
c
The component to be added.
Add a component into this container.
Pass the events from underlying layout forwards.
Pass the events from underlying layout forwards.
Parameters
Iterator of the components inside the container.
Get component container iterator for going trough all the components in the container.
Parameters
height of the object in units specified by heightUnits property.
Get height of the object. Negative number implies unspecified size (terminal is free to set the size).
Parameters
units used in height property.
getHeightUnits()
Get height property units.
Parameters
Horizontal scrolling position in pixels.
Get scroll X offset.
Scrolling offset is the number of pixels this scrollable has been scrolled to left.
Parameters
Vertical scrolling position in pixels.
Get scroll Y offset.
Scrolling offset is the number of pixels this scrollable has been scrolled to down.
Parameters
width of the object in units specified by widthUnits property.
Get width of the object. Negative number implies unspecified size (terminal is free to set the size).
Parameters
units used in width property.
getWidthUnits()
Get width property units.
Parameters
True iff the scrolling is allowed.
Is the scrolling enabled.
Enabling scrolling allows the user to scroll the scrollable view interactively
Parameters
event
PaintEvent.
Exceptions
PaintException
The paint operation failed.
Paint the content of this component.
Parameters
c
The component to be added.
Remove a component from this container.
Parameters
height
The height to set
Sets the height in pixels. Use negative value to let the client decide the height.
setHeightUnits(int)
Set height units. Panel supports only Sizeable.UNITS_PIXELS and this is ignored.
Parameters
layout
New layout of the panel.
Set the layout of the panel. All the components are moved to new layout.
Parameters
isScrollingEnabled
True iff the scrolling is allowed.
Enable or disable scrolling..
Enabling scrolling allows the user to scroll the scrollable view interactively
Parameters
xOffset.
Set scroll X offset.
Scrolling offset is the number of pixels this scrollable has been scrolled to left.
Parameters
yOffset.
Set scroll Y offset.
Scrolling offset is the number of pixels this scrollable has been scrolled to down.
Parameters
width
The width to set
Sets the width in pixels. Use negative value to allow the client decide the width.
setWidthUnits(int)
Set width units. Panel supports only Sizeable.UNITS_PIXELS, and this is ignored.