fi.hut.tml.xsmiles.mlfc.xframes
Class StackableComponent

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xframes.StackableComponent

public class StackableComponent
extends java.lang.Object

A Stackable component object to ease creation of xframes The main function is to utilize static borders or resizable borders. (JSplitPane, or BoxLayout)

Author:
juha

Field Summary
static int DYNAMIC
           
static int HORIZONTAL
           
static int STATIC
           
static int TABBED
           
static int VERTICAL
           
 
Constructor Summary
StackableComponent(int s, int o)
           
StackableComponent(int s, int o, XFramesMLFC mlfc)
           
 
Method Summary
 void add(java.awt.Component c)
          Add a component to the end of the stack
 void add(java.awt.Component c, java.lang.String id)
           
 java.awt.Component getComponent()
           
 int getOrientation()
           
 void setBorderWidth(int width)
          Set the width of the border, doesn't do anything yet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATIC

public static int STATIC

DYNAMIC

public static int DYNAMIC

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

TABBED

public static final int TABBED
See Also:
Constant Field Values
Constructor Detail

StackableComponent

public StackableComponent(int s,
                          int o)
Parameters:
s - style (STATIC, DYNAMIC)
o - orientation (HORIZONTAL, VERTICAL)

StackableComponent

public StackableComponent(int s,
                          int o,
                          XFramesMLFC mlfc)
Method Detail

add

public void add(java.awt.Component c,
                java.lang.String id)

add

public void add(java.awt.Component c)
Add a component to the end of the stack


setBorderWidth

public void setBorderWidth(int width)
Set the width of the border, doesn't do anything yet


getComponent

public java.awt.Component getComponent()

getOrientation

public int getOrientation()


X-Smiles 1.2