incubator.net.xoetrope.xui
Interface XContentHolder

All Superinterfaces:
XContentHolder

public interface XContentHolder
extends XContentHolder

    

An interface for adding content to a component. Used by the component factories to add content to newly created components.

Copyright (c) Xoetrope Ltd., 2002-2003

License: see license.txt

$Revision: 1.3 $


Method Summary
 void add(java.awt.Component c, java.lang.Object constraint)
          Add a child component
 void doLayout()
          Do the container layout
 java.awt.Component getComponent(int i)
          Get a child component
 void remove(java.awt.Component c)
          Remove a child component
 void setContent(java.lang.String content)
          Set the content for the component
 void setup(java.lang.String name, int preferredWidth, int preferredHeight, java.util.Hashtable params)
          Setup the container
 

Method Detail

setContent

void setContent(java.lang.String content)
Set the content for the component

Specified by:
setContent in interface XContentHolder
Parameters:
content - the new contents

getComponent

java.awt.Component getComponent(int i)
Get a child component

Parameters:
i - the index of the child within the container
Returns:
the child component

add

void add(java.awt.Component c,
         java.lang.Object constraint)
Add a child component

Parameters:
c - the child component
constraint - the layout constraint

remove

void remove(java.awt.Component c)
Remove a child component

Parameters:
c - the child component

doLayout

void doLayout()
Do the container layout


setup

void setup(java.lang.String name,
           int preferredWidth,
           int preferredHeight,
           java.util.Hashtable params)
Setup the container

Parameters:
name - set the container name
preferredWidth - the desired width
preferredHeight - the desired height
params - a table of extra properties