|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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 |
|---|
void setContent(java.lang.String content)
setContent in interface XContentHolder
content - the new contentsjava.awt.Component getComponent(int i)
i - the index of the child within the container
void add(java.awt.Component c,
java.lang.Object constraint)
c - the child componentconstraint - the layout constraintvoid remove(java.awt.Component c)
c - the child componentvoid doLayout()
void setup(java.lang.String name,
int preferredWidth,
int preferredHeight,
java.util.Hashtable params)
name - set the container namepreferredWidth - the desired widthpreferredHeight - the desired heightparams - a table of extra properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||