gnu.kawa.models
Class Box

java.lang.Object
  extended by gnu.kawa.models.Model
      extended by gnu.kawa.models.Box
All Implemented Interfaces:
Viewable, java.io.Serializable
Direct Known 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

Constructor Summary
Box()
           
 
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, java.lang.Object where)
           
 void setCellSpacing(java.lang.Object cellSpacing)
           
 
Methods inherited from class gnu.kawa.models.Model
addListener, addListener, notifyListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Box

public Box()
Method Detail

getCellSpacing

public Viewable getCellSpacing()

setCellSpacing

public void setCellSpacing(java.lang.Object cellSpacing)

getAxis

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


getComponentCount

public final int getComponentCount()

getComponent

public final Viewable getComponent(int i)

add

public void add(Viewable component)

makeView

public void makeView(Display display,
                     java.lang.Object where)
Specified by:
makeView in interface Viewable