|
||||||||||
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.Container com.oktiva.mogno.XmlContainer
The superclass for containers that knows how to get the XML from some resource, with nice defaults.
Field Summary | |
java.lang.String |
evOnUncaughtError
Event dispatched when some exception is not caught in the inner components. |
Fields inherited from class com.oktiva.mogno.Container |
afterEnd, content |
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 | |
XmlContainer()
|
Method Summary | |
void |
checkSyntax()
Check the syntax for this component. |
protected void |
checkSyntax(java.util.Vector fields)
This function is overrided to check the syntax of owned components. |
protected java.util.Vector |
checkSyntaxFields()
List the components that need to be checked for syntax errors. |
void |
dispatchAll()
Dispatch all the events in the event queue in all child components and in this one. |
void |
freeChildComponent(java.lang.String name)
Convenience method equivalent to freeChild. |
Component |
getChildComponent(java.lang.String name)
Convenience method equivalent to getChild. |
java.lang.Class |
getChildComponentClass(java.lang.String name)
Convenience method equivalent to getChildClass. |
java.lang.String |
getEvOnUncaughtError()
Event dispatched when some exception is not caught in the inner components. |
protected java.io.InputStream |
getXmlInputStream()
Obtain a InputStream from wich we will get the XML. |
protected java.lang.String |
getXmlResourceName()
Gets the ResourceName that will be used at getXmlResourceName() |
void |
initialize(java.util.Hashtable params)
Initializes this components. |
java.util.Vector |
nonAttributeGetters()
Method used to define what methods started with "get" or "is" are not component attributes getter methods. |
void |
onReceiveRequest()
Event dispatched when the request is received. |
void |
receiveRequest(javax.servlet.http.HttpServletRequest request)
Receive the request and rebuild the properties using the data that the user has filled in. |
protected Component |
selectParentComponent()
The parent component: this one or his owner. |
void |
setEvOnUncaughtError(java.lang.String evOnUncaughtError)
Event dispatched when some exception is not caught in the inner components. |
java.lang.String |
show()
Write down my serialized bag if there is elements there, then call super.show(); |
Methods inherited from class com.oktiva.mogno.Container |
addChildsVector, betweenColumns, betweenRows, endColumn, endContainer, endRow, getChildsVector, getContent, getFullComponentsVector, getOrderedChildNames, getOrderedChildsVector, orderChildsVector, setContent, startColumn, startContainer, startRow |
Methods inherited from class com.oktiva.mogno.Component |
attribsHash, createOwnedComponents, dispatch, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOwner, initialize, initialize, initialize, isDesigning, listChilds, 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 evOnUncaughtError
Constructor Detail |
public XmlContainer()
Method Detail |
public void initialize(java.util.Hashtable params) throws InitializeException
initialize
in class Component
params
- This instance's attributes.
InitializeException
- If the resource is not found or the initialization fails.Component.initialize()
public Component getChildComponent(java.lang.String name)
initialize(Hashtable)
,
Component.getChild(String)
public java.lang.Class getChildComponentClass(java.lang.String name)
initialize(Hashtable)
,
Component.getChildClass(String)
public void freeChildComponent(java.lang.String name)
initialize(Hashtable)
,
Component.freeChild(String)
protected java.io.InputStream getXmlInputStream()
getXmlResourceName()
getXmlResourceName()
protected java.lang.String getXmlResourceName()
getXmlResourceName()
public java.util.Vector nonAttributeGetters()
Component
Vector v = super.nonAttributeGetters();
return v;
nonAttributeGetters
in class Container
protected Component selectParentComponent()
Container
selectParentComponent
in class Container
(Component)owner==null?this:owner
public void receiveRequest(javax.servlet.http.HttpServletRequest request)
receiveRequest
in class Visual
request
- The HttpServletRequest object.public void dispatchAll() throws java.lang.Exception
dispatchAll
in class Component
java.lang.Exception
public java.lang.String getEvOnUncaughtError()
public void setEvOnUncaughtError(java.lang.String evOnUncaughtError)
public void checkSyntax() throws SyntaxErrorException
For default, call checkSyntax of the components listed in
checkSyntaxFields()
.
checkSyntax
in class Visual
SyntaxErrorException
- if any of the components don't pass the check.protected java.util.Vector checkSyntaxFields()
The default value is the list of all children of this component.
protected void checkSyntax(java.util.Vector fields) throws SyntaxErrorException
fields
- A Vector with the name of the components to be tested
SyntaxErrorException
- if any of the components don't pass the check.public java.lang.String show() throws java.lang.Exception
super.show();
show
in class Container
java.lang.Exception
public void onReceiveRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |