Modifier and Type | Field and Description |
---|---|
protected String |
fromText |
protected String |
hiliteText |
protected String |
toText |
Constructor and Description |
---|
OATemplate() |
OATemplate(String htmlTemplate) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_generate(com.viaoa.util.OATemplate.TreeNode rootNode,
OAObject obj,
Hub hub,
StringBuilder sb,
OAProperties props,
int cntStop) |
protected com.viaoa.util.OATemplate.TreeNode |
createTree(String doc) |
protected boolean |
generate(com.viaoa.util.OATemplate.TreeNode rootNode,
OAObject obj,
Hub hub,
StringBuilder sb,
OAProperties props,
int cntStop)
Returns false if it did not complete (stopProcessing was called)
|
protected String |
getIncludeText(String name)
This is called to get the text for any include tags.
|
protected String |
getOutputText(String s)
Called to be able to convert before adding to output string.
|
protected Object |
getProperty(OAObject oaObj,
String propertyName)
Method that is called to get an object property value.
|
String |
getTemplate() |
protected String |
getValue(OAObject obj,
String propertyName,
int width,
String fmt,
OAProperties props,
boolean bUseFormat) |
protected void |
parse(com.viaoa.util.OATemplate.TreeNode root) |
protected ArrayList<com.viaoa.util.OATemplate.Token> |
parseTokens(String doc) |
protected String |
preprocess(String doc) |
protected String |
preprocess(String doc,
ArrayList<String> alInclude) |
String |
process(F objRoot) |
String |
process(F objRoot1,
F objRoot2) |
String |
process(F objRoot1,
F objRoot2,
Hub<F> hubRoot,
OAProperties props) |
String |
process(F objRoot1,
F objRoot2,
OAProperties props) |
String |
process(F objRoot1,
Hub<F> hubRoot,
OAProperties props) |
String |
process(F objRoot,
OAProperties props) |
String |
process(Hub<F> hub) |
String |
process(Hub<F> hub,
OAProperties props) |
void |
setHiliteOutputText(String text)
Used by getOutPutText to call OAString.hilite(text)
|
void |
setOutputTextConversion(String fromText,
String toText)
Used by getOutPutText to call OAString.convert(value, from, to)
|
void |
setProperty(String name,
Object value)
Set a property, that is then referenced using <%=$name%> in the html.
|
void |
setTemplate(String temp) |
void |
stopProcessing()
Used to have a a call to getHtml stopped.
|
protected String fromText
protected String toText
protected String hiliteText
public OATemplate()
public OATemplate(String htmlTemplate)
public void setTemplate(String temp)
public String getTemplate()
public String process(F objRoot1, F objRoot2, OAProperties props)
public String process(F objRoot, OAProperties props)
public String process(Hub<F> hub, OAProperties props)
public void stopProcessing()
public String process(F objRoot1, Hub<F> hubRoot, OAProperties props)
public void setProperty(String name, Object value)
name
- name used in html tag, without the '$' prefix. Note: it will remove '$' prefix if it is included.protected com.viaoa.util.OATemplate.TreeNode createTree(String doc)
protected String getIncludeText(String name)
protected void parse(com.viaoa.util.OATemplate.TreeNode root)
protected boolean generate(com.viaoa.util.OATemplate.TreeNode rootNode, OAObject obj, Hub hub, StringBuilder sb, OAProperties props, int cntStop)
protected boolean _generate(com.viaoa.util.OATemplate.TreeNode rootNode, OAObject obj, Hub hub, StringBuilder sb, OAProperties props, int cntStop)
protected String getOutputText(String s)
public void setOutputTextConversion(String fromText, String toText)
public void setHiliteOutputText(String text)
protected String getValue(OAObject obj, String propertyName, int width, String fmt, OAProperties props, boolean bUseFormat)
Copyright © 1999–2019 ViaOA. All rights reserved.