: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw
Interface LayoutContainer

All Superinterfaces:
Layoutable, Validationable
All Known Subinterfaces:
LwComposite, LwContainer, LwDesktop, LwLayer

public interface LayoutContainer
extends Layoutable

This is basic interface for components that can contain Layoutable components as its children. The lightweight layout managers are defined for a component that implements the interface. Actually, layout managers are used to layout the layout container child components.


Method Summary
 int count()
          Returns the number of child elements in this container.
 Layoutable get(int index)
          Gets the child element at the given index.
 java.awt.Point getLayoutOffset()
          Returns the offset.
 
Methods inherited from interface org.zaval.lw.Layoutable
getBounds, getHeight, getInsets, getLocation, getPreferredSize, getSize, getWidth, getX, getY, isVisible, setLocation, setSize
 
Methods inherited from interface org.zaval.util.Validationable
invalidate, isValid, validate
 

Method Detail

get

public Layoutable get(int index)
Gets the child element at the given index.
Parameters:
index - the index of the child to be returned.
Returns:
a child element at the specified index.

count

public int count()
Returns the number of child elements in this container.
Returns:
a number of child elements in this container.

getLayoutOffset

public java.awt.Point getLayoutOffset()
Returns the offset. The offset can be used with a layout manager to offset child components locations of the container according to the offset values. The offset is represented with java.awt.Point class, the x is offset for x-coordinates and y is offset for y-coordinates. The ability to offset child components with a layout manager is used with the library to organize scrolling.
Returns:
an offset to move children.


: up