gnu.kawa.models

Class Box

public abstract class Box extends Model implements Viewable, Serializable

A container that lays out its components in a column or row.
Method Summary
voidadd(Viewable component)
abstract intgetAxis()
Return 0 for a horizontal box; 1 for a vertical box.
ViewablegetCellSpacing()
ViewablegetComponent(int i)
intgetComponentCount()
voidmakeView(Display display, Object where)
voidsetCellSpacing(Object cellSpacing)

Method Detail

add

public void add(Viewable component)

getAxis

public abstract int getAxis()
Return 0 for a horizontal box; 1 for a vertical box.

getCellSpacing

public Viewable getCellSpacing()

getComponent

public final Viewable getComponent(int i)

getComponentCount

public final int getComponentCount()

makeView

public void makeView(Display display, Object where)

setCellSpacing

public void setCellSpacing(Object cellSpacing)