|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.htmlutil.CachedHTMLTemplate
CachedHTMLTemplate is a pre-parsed representation of an HTML template. It contains a list of TemplateAction objects representing actions to perform for the template output. Currently there are two types of TemplateAction: MethodAction for invoking methods, and TextAction for outputting static text.
Field Summary | |
private long |
lastModified
Deprecated. |
private Vector |
parsedData
Deprecated. |
Constructor Summary | |
CachedHTMLTemplate()
Deprecated. Default Constructor, creates the parsedData Vector and initializes lastModified. |
Method Summary | |
void |
addAction(TemplateAction ta)
Deprecated. Add a TemplateAction to the list |
void |
execute(OutputStream out)
Deprecated. Execute the parsed template on the given output stream |
void |
execute(OutputStream out,
Object context,
Locale locale)
Deprecated. Execute the parsed template on the given output stream, context, and locale |
void |
execute(OutputStream out,
Object context,
Locale locale,
boolean includeLocale)
Deprecated. Execute the parsed template on the given output stream, context, locale, and specify whether the locale should be used |
TemplateAction |
getAction(int index)
Deprecated. Get the action at a certain index |
long |
getLastModified()
Deprecated. Get when the template for this parsed data was last modified |
void |
insertActionAt(TemplateAction ta,
int index)
Deprecated. Insert an action after a certain point |
void |
removeActionAt(int index)
Deprecated. Remove a TemplateAction at a certain point |
void |
setLastModified(long lastModified)
Deprecated. Set when the template for this parsed data was last modified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vector parsedData
private long lastModified
Constructor Detail |
public CachedHTMLTemplate()
Method Detail |
public long getLastModified()
public void setLastModified(long lastModified)
lastModified
- The new date, as a longpublic void addAction(TemplateAction ta)
ta
- The TemplateAction instancepublic void removeActionAt(int index)
index
- The index of the action to removepublic void insertActionAt(TemplateAction ta, int index)
ta
- The actionindex
- The index to insert it afterpublic TemplateAction getAction(int index)
index
- The index from which to get the action
public void execute(OutputStream out) throws WTException, IOException
out
- The OutputStream to write to
WTException
IOException
public void execute(OutputStream out, Object context, Locale locale) throws WTException, IOException
out
- The OutputStream to write tocontext
- The object to invoke methods onlocale
- The locale to pass into the invocations
WTException
IOException
public void execute(OutputStream out, Object context, Locale locale, boolean includeLocale) throws WTException, IOException
out
- The OutputStream to write tocontext
- The object to invoke methods onlocale
- The locale to pass into the invocationsincludeLocale
- A flag specifyin whether to use the locale or not
WTException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |