|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Container
echopoint.HtmlContainer
public class HtmlContainer
HtmlContainer is a component that can contain a HTML
fragment. This class is very simialir to HtmlTemplatePanel except
that it is not a very simply component, without all the methods that
the ScrollablePanel imposes.
For a full outline on using HTML fragments in Echo, see
HtmlTemplateLayoutManager,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface echopoint.layout.LayoutManageable |
|---|
LAYOUT_MANAGED_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
HtmlContainer()
Constructs a HtmlContainer with an empty template |
|
HtmlContainer(java.lang.String htmlFragment)
Constructs a HtmlContainer with the specified htmlFragment
as its content. |
|
| Method Summary | |
|---|---|
void |
add(Component comp,
java.lang.Object constraints)
Adds a child component to the LayoutManageable container with the specified contraints object. |
void |
add(Component comp,
java.lang.Object constraints,
int index)
Adds a child component to the LayoutManageable container with the specified contraints object, at the specified index. |
CompilationUnit |
compileDataSource()
|
DataSource |
getDataSource()
|
LayoutManager |
getLayoutManager()
Returns the LayoutManager of the LayoutManageable container, or null if one is not present. |
TextSubstitution |
getTextSubstitution()
|
boolean |
isLoudErrorsUsed()
|
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setLayoutManager(LayoutManager newLayoutManager)
Sets a new LayoutManager into the LayoutManageable container. |
void |
setLoudErrorsUsed(boolean b)
|
void |
setTemplate(DataSource source)
|
void |
setTemplate(java.io.File templateFile)
|
void |
setTemplate(java.io.File templateFile,
java.lang.String encoding)
|
void |
setTemplate(java.lang.String templateString)
|
void |
setTemplate(java.net.URL templateURL)
|
void |
setTemplate(java.net.URL templateURL,
java.lang.String encoding)
|
void |
setTextSubstitution(TextSubstitution newTextSubstitution)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.layout.LayoutManageable |
|---|
add, add, remove, remove |
| Constructor Detail |
|---|
public HtmlContainer()
HtmlContainer with an empty template
public HtmlContainer(java.lang.String htmlFragment)
HtmlContainer with the specified htmlFragment
as its content.
htmlFragment - - the new content of the HtmlContainer| Method Detail |
|---|
public void add(Component comp,
java.lang.Object constraints)
LayoutManageableThe contraints object is allowed to be null.
add in interface LayoutManageableLayoutManageable.add(nextapp.echo.Component, java.lang.Object)
public void add(Component comp,
java.lang.Object constraints,
int index)
LayoutManageableThis method would then inform any LayoutManager that is present.
The contraints object is allowed to be null.
add in interface LayoutManageableLayoutManageable.add(nextapp.echo.Component, java.lang.Object, int)public LayoutManager getLayoutManager()
LayoutManageable
getLayoutManager in interface LayoutManageableLayoutManageable.getLayoutManager()public void setLayoutManager(LayoutManager newLayoutManager)
LayoutManageable
setLayoutManager in interface LayoutManageableLayoutManageable.setLayoutManager(echopoint.layout.LayoutManager)
public CompilationUnit compileDataSource()
throws java.io.IOException
java.io.IOExceptionHtmlTemplateLayoutManager.compileDataSource()public DataSource getDataSource()
HtmlTemplateLayoutManager.getDataSource()public TextSubstitution getTextSubstitution()
HtmlTemplateLayoutManager.getTextSubstitution()public boolean isLoudErrorsUsed()
HtmlTemplateLayoutManager.isLoudErrorsUsed()public void setLoudErrorsUsed(boolean b)
HtmlTemplateLayoutManager.setLoudErrorsUsed(boolean)public void setTemplate(DataSource source)
HtmlTemplateLayoutManager.setTemplate(DataSource)
public void setTemplate(java.io.File templateFile)
throws java.io.IOException
java.io.IOExceptionHtmlTemplateLayoutManager.setTemplate(File)
public void setTemplate(java.io.File templateFile,
java.lang.String encoding)
throws java.io.IOException
java.io.IOExceptionHtmlTemplateLayoutManager.setTemplate(File, String)public void setTemplate(java.lang.String templateString)
HtmlTemplateLayoutManager.setTemplate(String)
public void setTemplate(java.net.URL templateURL)
throws java.io.IOException
java.io.IOExceptionHtmlTemplateLayoutManager.setTemplate(URL)
public void setTemplate(java.net.URL templateURL,
java.lang.String encoding)
throws java.io.IOException
java.io.IOExceptionHtmlTemplateLayoutManager.setTemplate(URL, String)public void setTextSubstitution(TextSubstitution newTextSubstitution)
HtmlTemplateLayoutManager.setTextSubstitution(TextSubstitution)
public java.lang.Object set(java.lang.reflect.Field field,
java.lang.Object newValue)
throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception {
Object oldValue = f.get(this);
f.set(this,newValue);
return oldValue;
}
set in interface ReflectionSetterfield - - the field to be setnewValue - - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ExceptionReflectionSetter.set(Field, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||