|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oktiva.mogno.Component com.oktiva.mogno.Visual com.oktiva.mogno.additional.Template
Template - Component for adding free text
This component will be used to insert free text inside your web page. It will substitute text enclosed by [# and #] with the key setted in the vars Hashtable.
Field Summary | |
java.lang.String |
evOnLoad
Event dispatched when this frame is loaded. |
java.lang.String |
source
This property indicates the full path to the source file to be printed or if the type is string, the code itself. |
java.lang.String |
type
file or string. |
protected java.util.Hashtable |
vars
This property contains the variables to be substituted. |
Fields inherited from class com.oktiva.mogno.Visual |
evOnShow, evOnSyntaxError, gridHeight, gridWeightX, gridWeightY, gridWidth, id, lastError, left, parent, problematic, style, styleClass, title, top |
Fields inherited from class com.oktiva.mogno.Component |
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName |
Constructor Summary | |
Template()
|
Method Summary | |
java.lang.String |
getEvOnLoad()
|
java.lang.String |
getSource()
|
java.lang.String |
getType()
|
void |
receiveRequest(javax.servlet.http.HttpServletRequest request)
Receive the request and rebuild the properties using the data that the user has filled in. |
void |
setEvOnLoad(java.lang.String evOnLoad)
|
void |
setSource(java.lang.String source)
|
void |
setType(java.lang.String type)
|
void |
setVars(java.util.Hashtable vars)
Define the variables that will be used for substitution in the template. |
java.lang.String |
show()
Fills in the template and return it. |
Methods inherited from class com.oktiva.mogno.Component |
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOrderedChildNames, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, nonAttributeGetters, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String type
public java.lang.String source
protected java.util.Hashtable vars
public java.lang.String evOnLoad
Constructor Detail |
public Template()
Method Detail |
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getSource()
public void setSource(java.lang.String source)
public java.lang.String getEvOnLoad()
public void setEvOnLoad(java.lang.String evOnLoad)
public void receiveRequest(javax.servlet.http.HttpServletRequest request)
Visual
receiveRequest
in class Visual
request
- HttpServletRequestpublic java.lang.String show() throws java.lang.Exception
show
in class Visual
java.lang.Exception
public void setVars(java.util.Hashtable vars)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |