Class OrderedLayout

Ordered layout. Ordered layout is a component container, which shows the subcomponents in the order of their addition in specified orientation.

OrderedLayout()

Create a new ordered layout. The order of the layout is ORIENTATION_VERTICAL.

OrderedLayout(int)

Parameters

orientation

Orientation of the layout.

Create a new ordered layout. The orientation of the layout is given as parameters.

ORIENTATION_HORIZONTAL

Components are to be layed out horizontally.

ORIENTATION_VERTICAL

Components are to be layed out vertically.

addComponent(Component)

Parameters

c

The component to be added.

Add a component into this container. The component is added to the right or under the previous component.

addComponent(Component, int)

Parameters

c

The component to be added.

index

Index of the component position. The components currently in and after the position are shifted forwards.

Add a component into indexed position in this container.

addComponentAsFirst(Component)

Parameters

c

The component to be added.

Add a component into this container. The component is added to the left or on top of the other components.

getComponentIterator()

Parameters

return

Iterator of the components inside the container.

Get component container iterator for going trough all the components in the container.

getOrientation()

Parameters

return

Value of property orientation.

Get the orientation of the container.

getTag()

Parameters

return

Component UIDL tag as string.

Get component UIDL tag.

paintContent(PaintTarget)

Parameters

event

PaintEvent.

Exceptions

PaintException

The paint operation failed.

Paint the content of this component.

removeComponent(Component)

Parameters

c

The component to be removed.

Remove a component from this container.

setOrientation(int)

Parameters

orientation

New value of property orientation.

Set the orientation of the container.