|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ContentHolder
An interface for adding content to a component. Used by the component factories to add content to newly created components.
Copyright (c) Formaria Ltd., 2008
License: see license.txt
$Revision: 1.3 $
| Method Summary | |
|---|---|
void |
add(java.lang.Object c,
java.lang.Object constraint)
Add a child component |
void |
doLayout()
Do the container layout |
java.lang.Object |
getChildComponent(int i)
Get a child component |
java.lang.String |
getName()
Get the name of the content holder |
void |
remove(java.lang.Object c)
Remove a child component |
void |
setContent(java.lang.String content)
Set the content for the component |
void |
setNextAttributes(java.lang.Object attribs)
Set the attributes for the next component being added |
void |
setup(java.lang.String name,
int preferredWidth,
int preferredHeight,
java.util.Hashtable params)
Setup the container |
| Method Detail |
|---|
void setNextAttributes(java.lang.Object attribs)
attribs - a table of attributesvoid setContent(java.lang.String content)
content - the new contentsjava.lang.Object getChildComponent(int i)
i - the index of the child within the container
void add(java.lang.Object c,
java.lang.Object constraint)
c - the child componentconstraint - the layout constraintvoid remove(java.lang.Object 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 propertiesjava.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||