public interface ContainerWrapper

ExtendsComponentWrapper

A class that wraps a container that contains components.

Methods

public abstract ComponentWrapper[] getComponents()Returns the components of the container that wrapper is wrapping.
public abstract int getComponentCount()Returns the number of components that this parent has.
public abstract Object getLayout()Returns the LayoutHandler (in Swing terms) that is handling the layout of this container.
public abstract boolean isLeftToRight()Returns if this container is using left-to-right component ordering.
public abstract void paintDebugCell(int x, int y, int width, int height)Paints a cell to indicate where it is.

Inherited fields

Inherited methods

Method details

getComponents

public abstract ComponentWrapper[] getComponents()
Returns the components of the container that wrapper is wrapping.

Returns

The components of the container that wrapper is wrapping. Never null.

getComponentCount

public abstract int getComponentCount()
Returns the number of components that this parent has.

Returns

The number of components that this parent has.

getLayout

public abstract Object getLayout()
Returns the LayoutHandler (in Swing terms) that is handling the layout of this container. If there exist no such class the method should return the same as #getComponent(), which is the container itself.

Returns

The layout handler instance. Never null.

isLeftToRight

public abstract boolean isLeftToRight()
Returns if this container is using left-to-right component ordering.

Returns

If this container is using left-to-right component ordering.

paintDebugCell

public abstract void paintDebugCell(int x, int y, int width, int height)
Paints a cell to indicate where it is.

Parameters

x int
The x coordinate to start the drwaing.
y int
The x coordinate to start the drwaing.
width int
The width to draw/fill
height int
The height to draw/fill