gnu.kawa.models

Class Box

Implemented Interfaces:
java.io.Serializable, Viewable
Known Direct Subclasses:
Column, Row

public abstract class Box
extends Model
implements Viewable, java.io.Serializable

A container that lays out its components in a column or row.
See Also:
Serialized Form

Method Summary

void
add(Viewable component)
abstract int
getAxis()
Return 0 for a horizontal box; 1 for a vertical box.
Viewable
getCellSpacing()
Viewable
getComponent(int i)
int
getComponentCount()
void
makeView(Display display, Object where)
void
setCellSpacing(Object cellSpacing)

Methods inherited from class gnu.kawa.models.Model

addListener, addListener, notifyListeners

Method Details

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)
Specified by:
makeView in interface Viewable

setCellSpacing

public void setCellSpacing(Object cellSpacing)