Package gnu.kawa.models
Class Box
- java.lang.Object
-
- gnu.kawa.models.Model
-
- gnu.kawa.models.Box
-
- All Implemented Interfaces:
Viewable
,Serializable
public abstract class Box extends Model implements Viewable, Serializable
A container that lays out its components in a column or row.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Box()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
getCellSpacing
public Viewable getCellSpacing()
-
setCellSpacing
public void setCellSpacing(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)
-
-