|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.Container echopoint.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 FormField Summary |
Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
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(nextapp.echo.Component comp,
java.lang.Object constraints)
Adds a child component to the LayoutManageable container with the specified contraints object. |
void |
add(nextapp.echo.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 nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate |
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 HtmlContainerMethod Detail |
public void add(nextapp.echo.Component comp, java.lang.Object constraints)
LayoutManageable
The contraints object is allowed to be null.
add
in interface LayoutManageable
LayoutManageable.add(nextapp.echo.Component, java.lang.Object)
public void add(nextapp.echo.Component comp, java.lang.Object constraints, int index)
LayoutManageable
This method would then inform any LayoutManager that is present.
The contraints object is allowed to be null.
add
in interface LayoutManageable
LayoutManageable.add(nextapp.echo.Component, java.lang.Object, int)
public LayoutManager getLayoutManager()
LayoutManageable
getLayoutManager
in interface LayoutManageable
LayoutManageable.getLayoutManager()
public void setLayoutManager(LayoutManager newLayoutManager)
LayoutManageable
setLayoutManager
in interface LayoutManageable
LayoutManageable.setLayoutManager(echopoint.layout.LayoutManager)
public CompilationUnit compileDataSource() throws java.io.IOException
java.io.IOException
HtmlTemplateLayoutManager.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.IOException
HtmlTemplateLayoutManager.setTemplate(File)
public void setTemplate(java.io.File templateFile, java.lang.String encoding) throws java.io.IOException
java.io.IOException
HtmlTemplateLayoutManager.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.IOException
HtmlTemplateLayoutManager.setTemplate(URL)
public void setTemplate(java.net.URL templateURL, java.lang.String encoding) throws java.io.IOException
java.io.IOException
HtmlTemplateLayoutManager.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 ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |