org.wings
Interface SLayoutManager

All Superinterfaces:
Renderable, SConstants, Serializable
All Known Implementing Classes:
SAbstractLayoutManager, SBorderLayout, SBoxLayout, SCardLayout, SFlowDownLayout, SFlowLayout, SGridBagLayout, SGridLayout, SNullLayout, SRootLayout, SScrollPaneLayout, STemplateLayout

public interface SLayoutManager
extends SConstants, Serializable, Renderable

For layout managers.

Author:
Armin Haaf

Field Summary
 
Fields inherited from interface org.wings.SConstants
BASELINE, BLOCK_ALIGN, BOTTOM, BOTTOM_ALIGN, CENTER, CENTER_ALIGN, HORIZONTAL, JUSTIFY, LEFT, LEFT_ALIGN, NO_ALIGN, RIGHT, RIGHT_ALIGN, TOP, TOP_ALIGN, UID_DIVIDER, VERTICAL
 
Method Summary
 void addComponent(SComponent c, Object constraint, int index)
          Adds a component to the layout manager
 int getBorder()
           
 SContainer getContainer()
          Returns the corresponding container
 void removeComponent(SComponent c)
          Removes a component from the layout manager
 void setBorder(int pixel)
           
 void setContainer(SContainer c)
          Sets the corresponding container
 void updateCG()
          Notification from the CGFactory that the L&F has changed.
 void write(Device s)
          Writes the layouted container to the given device.
 

Method Detail

addComponent

void addComponent(SComponent c,
                  Object constraint,
                  int index)
Adds a component to the layout manager

Parameters:
c - The new component
constraint - A (sometimes optional) constraint object

removeComponent

void removeComponent(SComponent c)
Removes a component from the layout manager

Parameters:
c - The new component

setContainer

void setContainer(SContainer c)
Sets the corresponding container

Parameters:
c - The container

getContainer

SContainer getContainer()
Returns the corresponding container

Returns:
The container

write

void write(Device s)
           throws IOException
Writes the layouted container to the given device.

Specified by:
write in interface Renderable
Parameters:
s - The output device
Throws:
IOException

updateCG

void updateCG()
Notification from the CGFactory that the L&F has changed.

See Also:
updateCG()

setBorder

void setBorder(int pixel)

getBorder

int getBorder()


wingS Swings ;-)